----- Original Message -----
From: "Dans Testorama" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, August 17, 2002 3:29 PM
Subject: FAIL List-Compare-0.13 i386-freebsd 4.0-current


> This is an error report generated automatically by CPANPLUS.
> Below is the error stack during 'make test':
>
> PERL_DL_NONLAZY=1
/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/libdata/perl/5.00503/mach -I/usr
/libdata/perl/5.00503 -e 'use Test::Harness qw(&runtests $verbose);
$verbose=0; runtests @ARGV;' t/*.t
> t/01_simple.........Can't locate warnings.pm in @INC (@INC contains:
blib/arch blib/lib /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/root/.cpanplus/build/List-Compare-0.13/blib/lib
/root/.cpanplus/build/List-Compare-0.13/blib/arch
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at blib/lib/List/Compare.pm line 5.
> BEGIN failed--compilation aborted at blib/lib/List/Compare.pm line 5.
> BEGIN failed--compilation aborted at t/01_simple.t line 11.
> dubious
> Test returned status 2 (wstat 512, 0x200)
> DIED. FAILED tests 1-151
> Failed 151/151 tests, 0.00% okay
> t/02_accelerated....Can't locate warnings.pm in @INC (@INC contains:
blib/arch
[snip]
> t/03_multiple.......Can't locate warnings.pm in @INC (@INC contains:
blib/arch
[snip]
> Failed Test  Status Wstat Total Fail  Failed  List of failed
> --------------------------------------------------------------------------
-----
> t/01_simple.t     2   512   151  151 100.00%  1-151
> t/02_accelerate   2   512   151  151 100.00%  1-151
> t/03_multiple.t   2   512   225  225 100.00%  1-225
> *** Error code 2
>
> Stop in /usr/home/smoke/.cpanplus500503/build/List-Compare-0.13.
> Failed 3/3 test scripts, 0.00% okay. 527/527 subtests failed, 0.00% okay.
>
>
> Additional comments:
>
> I noticed that the test suite seem to fail without these modules:
>
> warnings
> warnings
> warnings
>
> As such, adding the prerequisite module(s) to 'PREREQ_PM' in your
> Makefile.PL should solve this problem.  For example:
>
> WriteMakefile(
>     AUTHOR      => 'James E Keenan ([EMAIL PROTECTED])',
>     ... # other information
>     PREREQ_PM   => {
> 'warnings' => '0', # or a minimum workable version
> 'warnings' => '0', # or a minimum workable version
> 'warnings' => '0', # or a minimum workable version
>     }
> );
>
> If you are interested in making a more flexible Makefile.PL that can
> probe for missing dependencies and install them, ExtUtils::AutoInstall
> at <http://search.cpan.org/search?dist=ExtUtils-AutoInstall> may be
> worth a look.
>
> Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
>   Platform:
>     osname=freebsd, osvers=4.0-current, archname=i386-freebsd
>     uname='FreeBSD freefall.FreeBSD.org 4.0-current FreeBSD 4.0-current
#0: $Date$'
[snip]

List::Compare is my first CPAN module and yours is the first system on which
it has failed to install.  (Cf.
http://testers.cpan.org/search?request=dist&dist=List-Compare)  It has
installed on more recent versions of FreeBSD.  So I need some assistance in
interpreting the information you have provided.  Am I correct in thinking
that the problem seems to be this:  The older version of Perl (5.00503) with
which you are testing List::Compare did not support the warnings pragma.
That came into effect, AFAIK, with Perl 5.6.0.

Whenever I write Perl code, I always enable 'strict' and 'warnings'.  As you
will notice from the source code
(http://search.cpan.org/src/JKEENAN/List-Compare-0.13/Compare.pm), I did so
in writing List::Compare.  It would seem to me that this may be a situation
where since (a) List::Compare is now production code, and (b) I want to get
more backward compatibility, I should turn off 'warnings' (and perhaps
'strict') in the module and assume that the user is going to use it in the
script which invokes the module.  What do you think?

Jim Keenan

Reply via email to