Subject: | make test hangus up for Expect 1.15 |
This version builds on AIX 5.2.0.0, but it hangs up on the first test, which is a simple spawn of the perl -v command. I have communicated with the author about this problem and am hoping for a resolution.
This is how it hangs up:
make test
PERL_DL_NONLAZY=1 /pcom/perl/perl-5.8.4/bin/perl "-Iblib/lib" "-Iblib/arch"
test.pl
1..36
Basic tests...
If you look at test.pl, you'll see that it's hanging up at this line:
my $exp = Expect->spawn("$Perl -v");
I debugged the module and found that it is hanging up at line 124 in
Expect.pm. This is the line of code:
my $errstatus = sysread(STAT_RDR, $errno, 256);
Here's what happened at that line:
DB<3> print "$errno\n";
Use of uninitialized value in concatenation (.) or string at (eval 7)[/pcom/perl/perl-5.8.4/lib/5.8.4/perl5db.pl:619] line 2.
eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package Expect; $^D = $^D | $DB::db_stop;
print "$errno\\n";;
;' called at /pcom/perl/perl-5.8.4/lib/5.8.4/perl5db.pl line 619
DB::eval called at /pcom/perl/perl-5.8.4/lib/5.8.4/perl5db.pl line 3349
DB::DB called at blib/lib/Expect.pm line 124
Expect::spawn('Expect', '/pcom/perl/perl-5.8.4/bin/perl -v') called at test.pl line 37
I have seen other complaints about either test failures or hang ups
on bulletin boards. It seems a lot of people are having this problem, and not just on AIX.
The Tty and Stty Perl modules built installed just fine, as far as I can tell. I can provide the installation details if necessary. (They have been provided to the author.)
Here's the info from perl -V. 5.8.4 was built on AIX 5.2.0.0.
perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=aix, osvers=5.2.0.0, archname=aix
uname='aix silver 2 5 00037d0f4c00 '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1
-qnoansialias -DUSE_NATIVE_DLOPEN -q32 -D_LARGE_FILES -qlonglong',
optimize='-O',
cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias
-DUSE_NATIVE_DLOPEN'
ccversion='6.0.0.7', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='ld', ldflags =' -brtl -L/usr/local/lib -b32'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lc -lbsd
perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lc -lbsd
libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='
-bE:/pcom/perl/perl-5.8.4/lib/5.8.4/aix/CORE/perl.exp'
cccdlflags=' ', lddlflags=' -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp
-bE:$(BASEEXT).exp -bnoentry -lc -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under aix
Compiled at May 5 2004 13:49:53
@INC:
/pcom/perl/perl-5.8.4/lib/5.8.4/aix
/pcom/perl/perl-5.8.4/lib/5.8.4
/pcom/perl/perl-5.8.4/lib/site_perl/5.8.4/aix
/pcom/perl/perl-5.8.4/lib/site_perl/5.8.4
/pcom/perl/perl-5.8.4/lib/site_perl
.