develooper Front page | perl.perl5.porters | Postings from March 2000

danger of %vd

Thread Next
From:
Hugo
Date:
March 17, 2000 05:32
Subject:
danger of %vd
Message ID:
200003171338.NAA00350@crypt.compulink.co.uk
I forgot I had reset the current perl version to 5.005_03, and tried to
rebuild a module. That gave a couple of problems, of which significantly
it said:

/usr/bin/perl "-I/opt/perl-5.6.0-RC1.64bit/lib/5.6.0/i686-linux-64int" "-I/opt/perl-5.6.0-RC1.64bit/lib/5.6.0" Makefile.PL 
Perl lib version (v5.6.0) doesn't match executable version (v%vd) at /opt/perl-5.6.0-RC1.64bit/lib/5.6.0/i686-linux-64int/Config.pm line 18.

I don't know how big a problem this would be in practice, but it isn't
very clean. The full report gave:

crypt% ( cd Class ; perl Makefile.PL ; make ; make test)
Could not eval '
            package ExtUtils::MakeMaker::_version;
            no strict;

            local $VERSION;
            $VERSION=undef; do {
                our $VERSION = '0.01';
            }; $VERSION
        ' in Class.pm: Can't modify subroutine entry in scalar assignment at (eval 6) line 7, at EOF
Makefile out-of-date with respect to Makefile.PL
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean > /dev/null 2>&1 || /bin/sh -c true
/usr/bin/perl "-I/opt/perl-5.6.0-RC1.64bit/lib/5.6.0/i686-linux-64int" "-I/opt/perl-5.6.0-RC1.64bit/lib/5.6.0" Makefile.PL 
Perl lib version (v5.6.0) doesn't match executable version (v%vd) at /opt/perl-5.6.0-RC1.64bit/lib/5.6.0/i686-linux-64int/Config.pm line 18.
BEGIN failed--compilation aborted at /opt/perl-5.6.0-RC1.64bit/lib/5.6.0/ExtUtils/MakeMaker.pm line 13.
BEGIN failed--compilation aborted at Makefile.PL line 1.
make: *** [Makefile] Error 255
make: *** No rule to make target `test'.  Stop.
crypt% 

Perhaps the MakeMaker scan for $VERSION needs also to check for, and
satisfy, the 'require 5.005_62' in the h2xs-generated .pm file? This
would at least allow a cleaner bailout than the 'could not eval' above.

Hugo

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About