For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > November 2005 > CGI::Session install tests fail, can I ignore?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CGI::Session install tests fail, can I ignore?
usenet@isbd.co.uk

2005-11-23, 6:58 pm

I am trying to install CGI::Session on my Slackware Linux system using
cpan. It 'makes all the right noises' but fails some of the tests.

The perl reports as follows:-
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=linux, osvers=2.4.26, archname=i486-linux
uname='linux midas 2.4.26 #6 wed apr 14 16:31:11 pdt 2004 i686 unknown unknown gnulinux '

CPAN produces the following (just an excerpt):-

cpan> install CGI::Session
Running install for module CGI::Session
Running make for S/SH/SHERZODR/CGI-Session-4.03.tar.gz
Is already unwrapped into directory /root/.cpan/build/CGI-Session-4.03
Has already been processed within this session
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.4 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/api3_db_file..................NOK 10# Failed test (t/api3_db_file.t at line 46)
Can't call method "id" on an undefined value at t/api3_db_file.t line 48.
# Looks like you planned 14 tests but only ran 10.
# Looks like your test died just after 10.
t/api3_db_file..................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 10-14
Failed 5/14 tests, 64.29% okay
t/api3_db_file_freezethaw.......skipped
all skipped: FreezeThaw not available
t/api3_db_file_storable.........NOK 10# Failed test (t/api3_db_file_storable.t at line 47)
Can't call method "id" on an undefined value at t/api3_db_file_storable.t line 48.
# Looks like you planned 14 tests but only ran 10.
# Looks like your test died just after 10.
t/api3_db_file_storable.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 10-14
Failed 5/14 tests, 64.29% okay
t/api3_db_file_storable_incr....NOK 11# Failed test (t/api3_db_file_storable_incr.t at line 51)
Can't call method "id" on an undefined value at t/api3_db_file_storable_incr.t line 52.
# Looks like you planned 15 tests but only ran 11.
# Looks like your test died just after 11.
t/api3_db_file_storable_incr....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 11-15
Failed 5/15 tests, 66.67% okay
t/api3_file.....................ok
t/api3_file_freezethaw..........skipped
all skipped: FreezeThaw not available
t/api3_file_freezethaw_incr.....skipped
all skipped: FreezeThaw not available
t/api3_file_storable............ok
t/api3_file_storable_incr.......ok
t/api3_incr.....................ok
t/api3_obj_store................ok
t/api3_obj_store_db_file........Can't call method "id" on an undefined value at t/api3_obj_store_db_file.t line



Is there anything I can do (upgrade other modules maybe?) to get rid of
these errors, or can I ignore them?


--
Chris Green

usenet@DavidFilmer.com

2005-11-23, 6:58 pm

usenet@isbd.co.uk wrote:
> I am trying to install CGI::Session on my Slackware Linux system using
> cpan. It 'makes all the right noises' but fails some of the tests.

<snip>

Do you have BerkeleyDB installed?

usenet@isbd.co.uk

2005-11-24, 3:58 am

usenet@davidfilmer.com wrote:
> usenet@isbd.co.uk wrote:
> <snip>
>
> Do you have BerkeleyDB installed?
>

Well I do now even if I didn't before and the results are exactly the
same when installing CGI::Session.

--
Chris Green

Sisyphus

2005-11-24, 6:57 pm


<usenet@isbd.co.uk> wrote in message
..
..
> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl5.8.4 "-MExtUtils::Command::MM" "-e"

"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/api3_db_file..................NOK 10# Failed test (t/api3_db_file.t

at line 46)

Looks to me that lines 45 and 46 are:

my $s2 = new CGI::Session("driver:DB_File", $sid, {Directory=>'t'});
ok($s2);

If it were me, I would want to find out why $s2 is undef. Perhaps one of
those 3 arguments is invalid. Stick in a few 'print' statements that will
print out helpful information (eg 'print $sid;'). Is "driver:DB_File" a sane
argument in your environment ?
To run t/api3_db_file.t (without going through the whole rigmarole again)
just run 'perl -Mblib t\api3_db_file.t' from the build directory.

> Can't call method "id" on an undefined value at t/api3_db_file.t line 48.


That's just in response to line 48:

ok($s2->id() eq $sid);

I haven't checked the other errors, but I suspect it's the same issue(s)
that are causing the failures.

I wouldn't install the module until I either :
a) fixed the problem
or
b) verfified that the issue was irrelevant (in my particular case).

Or ... you could just install ... see what happens .... and investigate
further only if something breaks :-)

Cheers,
Rob


Sisyphus

2005-11-24, 6:57 pm


"Sisyphus" <sisyphus1@nomail.afraid.org> wrote in message
news:4386326f$0$26913$afc38c87@news.optusnet.com.au...
>
> <usenet@isbd.co.uk> wrote in message
> .
> .
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
(t/api3_db_file.t[color=darkred]
> at line 46)
>
> Looks to me that lines 45 and 46 are:
>
> my $s2 = new CGI::Session("driver:DB_File", $sid, {Directory=>'t'});
> ok($s2);
>
> If it were me, I would want to find out why $s2 is undef. Perhaps one of
> those 3 arguments is invalid. Stick in a few 'print' statements that will
> print out helpful information (eg 'print $sid;'). Is "driver:DB_File" a

sane
> argument in your environment ?


Just noticed that there was no problem with:

my $s = new CGI::Session("driver:DB_File", undef, {Directory=>"t"} );

which was executed at the begining. This would suggest that the problem lies
with $sid - unless, for some strange reason, the t really does need to be
surrounded by double quotes, as opposed to single quotes.

Cheers,
Rob


usenet@isbd.co.uk

2005-11-25, 7:56 am

Sisyphus <sisyphus1@nomail.afraid.org> wrote:
>
> "Sisyphus" <sisyphus1@nomail.afraid.org> wrote in message
> news:4386326f$0$26913$afc38c87@news.optusnet.com.au...
> (t/api3_db_file.t
> sane
>
> Just noticed that there was no problem with:
>
> my $s = new CGI::Session("driver:DB_File", undef, {Directory=>"t"} );
>
> which was executed at the begining. This would suggest that the problem lies
> with $sid - unless, for some strange reason, the t really does need to be
> surrounded by double quotes, as opposed to single quotes.
>

I worked around my proble by installing CGI::Session version 3.95
which installed without a murmur and does what TWiki needs.

Searching on Google suggests that version 4.03 produces this
installation error on lots of systems.

--
Chris Green

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com