Subject: | make test fails; t/03-packet.t test 2 fails and later tests die. |
Hi there,
I'm trying to install Net::SSH::Perl version 1.25 on Perl 5.6.1 via the CPAN shell, and make fails in t/03-packet.t test 2 and a later test dies. About a dozen prerequisite modules were installed just before this module so most of the modules it directly depends on should be up to date.
Perl -V:
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=solaris, osvers=2.8, archname=sun4-solaris
uname='sunos burke 5.8 generic_108528-12 sun4u sparc '
config_args='-Dcc=gcc -B/usr/ccs/bin/ -Dprefix=/usr/local/depot/perl-5.6.1'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='gcc -B/usr/ccs/bin/', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers='solaris2.7'
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib '
libpth=/usr/local/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
uname -a:
SunOS relay 5.9 Generic_112233-04 sun4u sparc
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under solaris
Compiled at May 29 2002 11:19:16
@INC:
/usr/local/depot/perl-5.6.1/lib/5.6.1/sun4-solaris
/usr/local/depot/perl-5.6.1/lib/5.6.1
/usr/local/depot/perl-5.6.1/lib/site_perl/5.6.1/sun4-solaris
/usr/local/depot/perl-5.6.1/lib/site_perl/5.6.1
/usr/local/depot/perl-5.6.1/lib/site_perl
.
Short error messages:
PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/depot/perl-5.6.1/lib/5.6.1/sun4-solaris -I/usr/local/depot/perl-5.6.1/lib/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/01-compile.....ok
t/02-buffer......ok
t/03-packet......ok 1/10syswrite() on unopened filehandle FH at blib/lib/Net/SSH/Perl/Packet.pm line 276.
Use of uninitialized value in numeric eq (==) at blib/lib/Net/SSH/Perl/Packet.pm line 52.
Connection closed by remote host. at t/03-packet.t line 44
# Looks like you planned 10 tests but only ran 1.
# Looks like your test died just after 1.
t/03-packet......dubious
Test returned status 255 (wstat 65280, 0xff00)
Prototype mismatch: sub Test::Harness::_LARGEFILE_SOURCE vs () at (eval 25) line 1.
DIED. FAILED tests 2-10
Failed 9/10 tests, 10.00% okay
t/04-config......ok
t/05-cipher......ok
t/06-circular....ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/03-packet.t 255 65280 10 9 90.00% 2-10
Failed 1/6 test scripts, 83.33% okay. 9/104 subtests failed, 91.35% okay.
Long error messages (changed TEST_VERBOSE in MAkefile to 1):
PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/depot/perl-5.6.1/lib/5.6.1/sun4-solaris -I/usr/local/depot/perl-5.6.1/lib/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t
t/01-compile.....1..1
ok 1 - use Net::SSH::Perl;
ok
t/02-buffer......1..19
ok 1 - make a buffer
ok 2 - buffer length is 7
ok 3 - get_str returns "foo"
ok 4 - offset is 7
ok 5 - get_str returns 0
ok 6 - get_int32 returns 999,99,999
ok 7 - get_int8 returns 2
ok 8 - get_char returns "a"
ok 9 - get_mp_int returns very large number
ok 10 - offset is 0 after empty()
ok 11 - length is 0 after empty()
ok 12 - bytes is "" after empty()
ok 13 - length is 6 after append
ok 14 - bytes is "foobar" after append
ok 15 - length is 0 after empty() again
ok 16 - dump returns ""
ok 17 - get_int16 returns 129
ok 18 - dump returns "00 81"
ok 19 - dump(1) returns "81"
ok
t/03-packet......1..10
ok 1 - created a packet
syswrite() on unopened filehandle FH at blib/lib/Net/SSH/Perl/Packet.pm line 276.
Use of uninitialized value in numeric eq (==) at blib/lib/Net/SSH/Perl/Packet.pm line 52.
Connection closed by remote host. at t/03-packet.t line 44
# Looks like you planned 10 tests but only ran 1.
# Looks like your test died just after 1.
dubious
Test returned status 255 (wstat 65280, 0xff00)
Prototype mismatch: sub Test::Harness::_LARGEFILE_SOURCE vs () at (eval 25) line 1.
DIED. FAILED tests 2-10
Failed 9/10 tests, 10.00% okay
t/04-config......1..25
ok 1 - created config object
ok 2 - port is 10000
ok 3 - port was set to 5000
ok 4 - got identity_files config
ok 5 - got two entries
ok 6 - first entry is "identity"
ok 7 - second entry is "identity2"
ok 8 - cipher is IDEA after merge
ok 9 - create a new config with an overridden option
ok 10 - port is 22
ok 11 - auth_rhosts is false
ok 12 - host is "dummy"
ok 13 - port is 5000
ok 14 - interactive is true
ok 15 - make a new SSH object
ok 16 - object has config
ok 17 - port for object is 10000
ok 18 - hostname is foo.bar.com
ok 19 - host key in object is foo.bar.com
ok 20 - port is 22 after override in SSH constructor
ok 21 - port is 22 after override via "options"
ok 22 - auth_rhosts is false
ok 23 - interactive is true
ok 24 - user is "bar"
ok 25 - user is "bar" after ->login
ok
t/05-cipher......1..48
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok 33
ok 34
ok 35
ok 36
ok 37
ok 38
ok 39
ok 40
ok 41
ok 42
ok 43
ok 44
ok 45
ok 46
ok 47
ok 48
ok
t/06-circular....1..1
ok 1
ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/03-packet.t 255 65280 10 9 90.00% 2-10
Failed 1/6 test scripts, 83.33% okay. 9/104 subtests failed, 91.35% okay.
Hopefully there's enough information here to help you identify the bug; if you need more information or tests performed just let me know.