[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dbi-dev
Subject:    Re: FYI: version check problem with perl5.002
From:       Tim Bunce <Tim.Bunce () ig ! co ! uk>
Date:       1996-02-20 10:53:38
[Download RAW message or body]


> From: Rick Tessner <rick@berlin.myra.com>
> 
> Hello Tim.
> 
> I've got perl 5.002gamma and was installing the DBI-0.65 when I ran across
> the following problem:
> 
> Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/min...............DBI object version 0.65 does not match DBI.pm $VERSION 
> 0.65  at /opt/BETA/lib/perl5/DynaLoader.pm line 153.
> FAILED tests 1-11
> 
> I've checked the archive and found the following msg re: 5.002 and module
> version numbers:
> 
> > > t/min...............DBI object version 0.65 does not match DBI.pm $VERSION
> > 1.48 at /home/student9/dswallow/local/lib/perl5/DynaLoader.pm line 150.
> > 
> > That's a problem, but easy to fix. Perl5.002 has a new module version
> > checking mechanism that requires a consistent version number to be used.
> > 
> > Anyone using the DBI and DBD::Oracle modules on Perl5.002 will need to
> > edit the .pm files to make $VERSION = ... have the same value as VERSION
> > in the Makefile.PL.
> > 
> > I will release an updated DBI and DBD::Oracle for 5.002 as soon as I have
> > time. Meanwhile the VERSION fix above should be all that's needed.
> 
> In my case, you'll notice it says 0.65 does not equal 0.65.  As it
> turns out, it's "0.65" does not equal "0.65 ".
>                                            ^
> I grabbed DBI-0.65 from ftp.mcqueen.com and the DBI.pm had the $VERSION
> number line as:
> 
> 	$VERSION = substr(q$Revision: 0.65 $, 10);
> 
> Removing the space so that the line reads as:
> 
> 	$VERSION = substr(q$Revision: 0.65$, 10);
> 
> resolved the problem.
> 
> This may be indicative of a deeper problem in the version checking module
> not removing whitespace prior to comparison.  Just thought you might like
> to be aware of this.

The copy on ftp.mcqueen.com is out of date. It should be removed and replaced
by a pointer to demon and the CPAN sites.

We're up to DBI-0.67 now.

Tim.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic