Click here to get back home

'make test' strangeness ?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
'make test' strangeness ? Rob 08-18-2004
Posted by Rob on August 18, 2004, 4:10 am
Please log in for more thread options
All,

BSDi 4.2, perl 5.005_03.

Searching on the web for 'PERL5LIB' 'make test' yielded somewhat
unrelevant result.

To compile Archive:Zip 1.12_03, I needed later version of File/Spec,
Compress/Zlib, etc.

I compiled my later version of File/Spec, Compress/Zlib under
/usr/local/perl5lib/etc.. without doing UNINST=1. This is the policy on
compilaton at our company. The reason being that older scripts may still
reference the older version of it. Didn't want to break those things.


PERL5LIB="/usr/local/perl5lib/Compress/Zlib/1.33/lib:/usr/local/perl5lib/Fil
e/Temp/0.12/lib:/usr/local/perl5lib/File/Spec/0.82/lib"
export PERL5LIB

After setting PERL5LIB to the appropriate directory, I can do a perl
../Makefile.PL PREFIX=/usr/local/perl5lib/Archive/Zip/1.12 fine (without
complaning my lack of libs). Without PERL5LIB set, it will complain.

'make' doesn't give me any warning messages.

Surpsiringly, during 'make test', it somehow ignored my PERL5LIB env
var, and errored out due to the fact that it loaded older version of
File/Spec.

perl -V shows that my PERL5LIB is properly used and my later version
of File/Spec should take precendence.

Curiously, I decided to call the test scripts directly by issuing
separate commands (rather than 'make test'). perl ./t/testUpdate.t (and
other test scripts separately). All test scripts passed.

Anyone wants to comment on what else I need to set to prevent this
awkward calling of the test script directly.

Thanks,
Rob


-- one of the commands I issued (in place of make test)--
bash-2.02# perl ./t/testUpdate.t
1..12
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
Use of uninitialized value at /usr/libdata/perl5/5.00503/Test.pm line 68.
Use of uninitialized value at /usr/libdata/perl5/5.00503/Test.pm line 68.
Use of uninitialized value at /usr/libdata/perl5/5.00503/Test.pm line 68.
Use of uninitialized value at /usr/libdata/perl5/5.00503/Test.pm line 68.
ok 8
ok 9
ok 10
ok 11
ok 12




Posted by Jim Keenan on August 18, 2004, 5:31 pm
Please log in for more thread options
> All,
>
> BSDi 4.2, perl 5.005_03.
>
> PERL5LIB="/usr/local/perl5lib/Compress/Zlib/1.33/lib:/usr/local/perl5lib/Fil
> e/Temp/0.12/lib:/usr/local/perl5lib/File/Spec/0.82/lib"
> export PERL5LIB
>

My hunch is that you've misdefined PERL5LIB. This is only a hunch,
because I don't know BSD, though I have some familiarity with Linux
and Darwin and in the last few days had to mess with PERL5LIB on
Linux.

I installed Perl 5.8.5 under /usr/local/bin. Previously, Perl 5.6.0
was loaded under /usr/bin because that's the way it came from RedHat.
I had loaded many CPAN modules in relation to 5.6.0, and, out of
Laziness, I didn't want to have to reload them in relation to 5.8.5.
At the same time, if I had manually loaded a module in relation to
5.6.0 that later became part of the 5.8 core (e.g., Tie::File), I
wanted to make sure that the perl and perldoc executables found the
5.8 version first. So, as root I edited /etc/profile as follows:


PERL5LIB="/usr/local/lib/perl5/5.8.5/i686-linux:/usr/local/lib/perl5/5.8.5/i686-linux:/usr/local/lib/perl5/5.8.5:/usr/local/lib/perl5/site_perl/5.8.5/i686-linux:/usr/local/lib/perl5/site_perl/5.8.5/i686-linux:/usr/local/lib/perl5/site_perl/5.8.5:/usr/local/lib/perl5/site_perl/5.8.5/i686-linux:/usr/local/lib/perl5/site_perl/5.8.5:/usr/local/lib/perl5/site_perl:/usr/lib/perl5/5.6.0/i386-linux:/u
r/lib/perl5/5.6.0:/usr/lib/perl5/site_perl/5.6.0/i386-linux:/usr/lib/perl5/site_perl/5.6.0:/usr/lib/perl5/site_perl:."
export PERL5LIB

Note that in *none* of the above directories is the directory for any
specific Perl module mentioned. This is what leads me to guess that
your PERL5LIB is too 'deep' and therefore incorrect.

But since this is the first time I myself have successfully altered
PERL5LIB and since BSD may be different, I caution that this is only
my hunch. Perhaps more knowledgeable readers can comment.

jimk


Similar ThreadsPosted
Asking questions in 'make test' July 27, 2004, 12:55 am
GD make test problem November 23, 2004, 6:32 am
GD make test failure January 16, 2005, 5:11 pm
GD make test failed January 24, 2005, 9:37 am
Error in Make Test June 30, 2006, 11:09 am
Net_SSLeay.pm-1.25 make test problem July 19, 2005, 10:42 am
make test fails for XML::PARSER August 25, 2005, 11:48 am
DBD::ODBC make test fails in HPUX11.11 July 21, 2004, 5:58 am
CPAN make test error with XML::Encoding October 7, 2004, 11:28 am
CPAN make test error with XML::Encoding October 7, 2004, 11:28 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap