Subject: | Test Fails with "Array found where operator expected" |
Running under AIX 4.3.3 ML.11-Post w/perl 5.10.0-aix-std. I tried using
CPAN and make-by-hand, but the tests fail the same both ways. Did not
see any extent bug reports or info along the lines of this problem.
I have nslookup, obviously, and a working DNS primary local to my net,
and the resolver library.
Here is the test output (perl -V info follows):
PERL_DL_NONLAZY=1 /usr/local/etc/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
t/Nslookup.t .. Array found where operator expected at (eval 3) line 2,
at end of line
(Do you need to predeclare Net::DNS::Nslookup?)
t/Nslookup.t .. 1/1
# Failed test 'use use Net::DNS::Nslookup;'
# at t/Nslookup.t line 3.
# Tried to use 'use Net::DNS::Nslookup'.
# Error: syntax error at (eval 3) line 2, near "Net::DNS::Nslookup @"
# Looks like you failed 1 test of 1.
t/Nslookup.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
Test Summary Report
-------------------
t/Nslookup.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=1, Tests=1, 4 wallclock secs ( 1.28 usr 0.11 sys + 1.42 cusr
0.44 csys = 3.25 CPU)
Result: FAIL
Failed 1/1 test programs. 1/1 subtests failed.
make[1]: *** [test_dynamic] Error 1
make[1]: Leaving directory
`/.cpan/build/Net-DNS-Nslookup-0.01-weJiSz/Net-DNS-Nslookup'
make: *** [subdirs-test] Error 2
perl -V info:
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=aix, osvers=4.3.3.0, archname=aix-stdio
uname='aix rowena 3 4 000059419100 unknown unknown aix '
config_args='-Dcc=gcc -Dprefix=/usr/local -Dinstallusrbinperl
-DDEBUGGING -Uusethreads -Uuselargefiles'
hint=previous, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=undef, d_sfio=undef, uselargefiles=undef, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-DUSE_NATIVE_DLOPEN -DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include',
optimize='-O -g',
cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-DUSE_NATIVE_DLOPEN -DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-DUSE_NATIVE_DLOPEN -DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-DUSE_NATIVE_DLOPEN -DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include'
ccversion='', gccversion='3.4.3', gccosandvers='aix4.3.3.0'
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=4
alignbytes=8, prototype=define
Linker and Libraries:
ld='ld', ldflags =' -Wl,-brtl -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lbind -lnsl -lgdbm -ldbm -ldl -lld -lm -lcrypt -lc -lbsd
perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lc -lbsd
libc=/usr/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Xlinker
-bE:/usr/local/lib/perl5/5.10.0/aix-stdio/CORE/perl.exp
-bE:/usr/local/lib/perl5/5.10.0/aix-stdio/CORE/perl.exp
-bE:/usr/local/lib/perl5/5.10.0/aix-stdio/CORE/perl.exp'
cccdlflags='-fpic', lddlflags=' -bhalt:4 -bexpall -G -bnoentry -lc
-L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING PERL_DONT_CREATE_GVSV
Built under aix
Compiled at Feb 25 2009 00:08:55
%ENV:
PERL="/usr/local/bin/perl"
@INC:
/usr/local/lib/perl5/5.10.0/aix-stdio
/usr/local/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/aix-stdio
/usr/local/lib/perl5/site_perl/5.10.0
/usr/local/lib/perl5/site_perl
.