Subject: | our $VERSION="0.32" in Mechanize.pm causes build problem on FreeBSD 4.5 (perl 5.0005.3) |
Using Perl 5.005.3, I got the following on FreeBSD 4.5
goldenhorse# perl Makefile.PL Could not eval '
package ExtUtils::MakeMaker::_version;
no strict;
local $VERSION;
$VERSION=undef; do {
our $VERSION = "0.32";
}; $VERSION
' in lib/WWW/Mechanize.pm: Can't modify subroutine entry in scalar assignment at (eval 14) line 7, at EOF
# Looks like your test died before it could output anything.
=========End of Error Messages=============
It looks like the 'our $VERSION = "0.32";' caused the problem.
I removed the "our" and "perl Makefile.PL" works.
Thanks,
Kenny
goldenhorse# perl -v
This is perl, version 5.005_03 built for i386-freebsd
Copyright 1987-1999, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
goldenhorse# uname -a
FreeBSD goldenhorse.eng.gs-gs.com 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Sat Mar 23 11:10:55 MST 2002 root@goldenhorse.eng.gs-gs.com:/usr/obj/usr/src/sys/ERIC i386