[Koha] Problems building "perl -MCPAN -e 'install "Net::Z3950"'"

Hennie Rautenbach hennie at sabinet.co.za
Wed Sep 19 20:23:04 NZST 2007


Mason James wrote:
>
> On 19/09/2007, at 12:41 AM, Hennie Rautenbach wrote:
>
>> Thanks, but didn't work. I suspect its an issue with ZOOM. Is there a 
>> way I can update ZOOM to a newer version ?
>>
>
> Hi Hennie,
>
> I remember having this problem too...
>
> Try this instead,  sudo perl -MCPAN -e 'install "Net::Z3950::ZOOM"' 
>
> Cheers, Mason

Nope. Also give errors:

root at ns2:/tmp# perl -MCPAN -e 'install "Net::Z3950::ZOOM"'
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Mon, 17 Sep 2007 22:36:44 GMT
Running install for module Net::Z3950::ZOOM
Running make for M/MI/MIRK/Net-Z3950-ZOOM-1.19.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for 
/root/.cpan/sources/authors/id/M/MI/MIRK/Net-Z3950-ZOOM-1.19.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Net-Z3950-ZOOM-1.19/
Net-Z3950-ZOOM-1.19/samples/
Net-Z3950-ZOOM-1.19/samples/zoom/
Net-Z3950-ZOOM-1.19/samples/zoom/trivial-async.pl
Net-Z3950-ZOOM-1.19/samples/zoom/zdump.pl
Net-Z3950-ZOOM-1.19/samples/zoom/async.pl
Net-Z3950-ZOOM-1.19/samples/zoom/zhello.pl
Net-Z3950-ZOOM-1.19/samples/zoom/zoomtst1.pl
Net-Z3950-ZOOM-1.19/samples/zoom/zselect
Net-Z3950-ZOOM-1.19/samples/zoom/update.pl
Net-Z3950-ZOOM-1.19/samples/zoom/zoomtst3.pl
Net-Z3950-ZOOM-1.19/samples/README
Net-Z3950-ZOOM-1.19/samples/net-z3950/
Net-Z3950-ZOOM-1.19/samples/net-z3950/zoomtst1.pl
Net-Z3950-ZOOM-1.19/samples/records/
Net-Z3950-ZOOM-1.19/samples/records/esdd0006.grs
Net-Z3950-ZOOM-1.19/samples/ccl/
Net-Z3950-ZOOM-1.19/samples/ccl/default.bib
Net-Z3950-ZOOM-1.19/samples/cql/
Net-Z3950-ZOOM-1.19/samples/cql/pqf.properties
Net-Z3950-ZOOM-1.19/samples/net-z3950-zoom/
Net-Z3950-ZOOM-1.19/samples/net-z3950-zoom/async.pl
Net-Z3950-ZOOM-1.19/samples/net-z3950-zoom/zoomtst1.pl
Net-Z3950-ZOOM-1.19/samples/net-z3950-zoom/zoomtst3.pl
Net-Z3950-ZOOM-1.19/README
Net-Z3950-ZOOM-1.19/Changes
Net-Z3950-ZOOM-1.19/META.yml
Net-Z3950-ZOOM-1.19/MANIFEST
Net-Z3950-ZOOM-1.19/ZOOM.xs
Net-Z3950-ZOOM-1.19/MANIFEST.SKIP
Net-Z3950-ZOOM-1.19/Makefile.PL
Net-Z3950-ZOOM-1.19/t/
Net-Z3950-ZOOM-1.19/t/29-events.t
Net-Z3950-ZOOM-1.19/t/11-option-callback.t
Net-Z3950-ZOOM-1.19/t/15-scan.t
Net-Z3950-ZOOM-1.19/t/16-packages.t
Net-Z3950-ZOOM-1.19/t/13-resultset.t
Net-Z3950-ZOOM-1.19/t/24-sorting.t
Net-Z3950-ZOOM-1.19/t/17-logging.t
Net-Z3950-ZOOM-1.19/t/20-options.t
Net-Z3950-ZOOM-1.19/t/12-query.t
Net-Z3950-ZOOM-1.19/t/10-options.t
Net-Z3950-ZOOM-1.19/t/1-Net-Z3950-ZOOM.t
Net-Z3950-ZOOM-1.19/t/22-query.t
Net-Z3950-ZOOM-1.19/t/27-logging.t
Net-Z3950-ZOOM-1.19/t/25-scan.t
Net-Z3950-ZOOM-1.19/t/19-events.t
Net-Z3950-ZOOM-1.19/t/14-sorting.t
Net-Z3950-ZOOM-1.19/t/28-charset.t
Net-Z3950-ZOOM-1.19/t/23-resultset.t
Net-Z3950-ZOOM-1.19/t/26-packages.t
Net-Z3950-ZOOM-1.19/t/18-charset.t
Net-Z3950-ZOOM-1.19/t/2-ZOOM.t
Net-Z3950-ZOOM-1.19/t/21-option-callback.t
Net-Z3950-ZOOM-1.19/typemap
Net-Z3950-ZOOM-1.19/lib/
Net-Z3950-ZOOM-1.19/lib/ZOOM.pm
Net-Z3950-ZOOM-1.19/lib/ZOOM.pod
Net-Z3950-ZOOM-1.19/lib/Net/
Net-Z3950-ZOOM-1.19/lib/Net/Z3950/
Net-Z3950-ZOOM-1.19/lib/Net/Z3950/ZOOM.pm
Net-Z3950-ZOOM-1.19/lib/Net/Z3950.pm
Removing previously used /root/.cpan/build/Net-Z3950-ZOOM-1.19

  CPAN.pm: Going to build M/MI/MIRK/Net-Z3950-ZOOM-1.19.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Net::Z3950::ZOOM
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp  -typemap 
/usr/share/perl/5.8/ExtUtils/typemap -typemap typemap  ZOOM.xs > 
ZOOM.xsc && mv ZOOM.xsc ZOOM.c
Running Mkbootstrap for Net::Z3950::ZOOM ()
cp lib/Net/Z3950/ZOOM.pm blib/lib/Net/Z3950/ZOOM.pm
cp lib/ZOOM.pm blib/lib/ZOOM.pm
cp lib/ZOOM.pod blib/lib/ZOOM.pod
cp lib/Net/Z3950.pm blib/lib/Net/Z3950.pm
cp samples/zoom/zselect blib/script/zselect
chmod 644 ZOOM.bs
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/zselect
cp ZOOM.bs blib/arch/auto/Net/Z3950/ZOOM/ZOOM.bs
chmod 644 blib/arch/auto/Net/Z3950/ZOOM/ZOOM.bs
cc -c  -pthread -DYAZ_POSIX_THREADS=1 -I/usr/local/include 
-DYAZ_HAVE_XML2=1 -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE 
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   
-DVERSION=\"1.19\" -DXS_VERSION=\"1.19\" -fPIC 
"-I/usr/lib/perl/5.8/CORE"   ZOOM.c
rm -f blib/arch/auto/Net/Z3950/ZOOM/ZOOM.so
LD_RUN_PATH="/usr/local/lib" cc  -shared -L/usr/local/lib ZOOM.o  -o 
blib/arch/auto/Net/Z3950/ZOOM/ZOOM.so      \
           -L/usr/local/lib -lyaz -lxml2 -lssl -lcrypto -lpthread       \

chmod 755 blib/arch/auto/Net/Z3950/ZOOM/ZOOM.so
Manifying blib/man3/Net::Z3950::ZOOM.3pm
Manifying blib/man3/ZOOM.3pm
  /usr/bin/make -j3 -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1-Net-Z3950-ZOOM......ok
t/10-options............ok
t/11-option-callback....ok
t/12-query..............ok
t/13-resultset..........ok
t/14-sorting............ok
t/15-scan...............ok 3/87
#   Failed test 'scan for 'ZOOM_query=SCALAR(0x8293834)''
#   in t/15-scan.t at line 126.
t/15-scan...............NOK 70
#   Failed test 'got 0 terms (expected 4)'
#   in t/15-scan.t at line 130.
t/15-scan...............NOK 72
#   Failed test 'seed-term is start of returned list'
#   in t/15-scan.t at line 72.
t/15-scan...............NOK 73Use of uninitialized value in 
concatenation (.) or string at t/15-scan.t line 74.

#   Failed test 'got last title term '' to use as seed'
#   in t/15-scan.t at line 74.
t/15-scan...............NOK 74# Looks like you failed 4 tests of 87.
t/15-scan...............dubious
        Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 70, 72-74
        Failed 4/87 tests, 95.40% okay
t/16-packages...........ok
t/17-logging............ok
t/18-charset............ok
t/19-events.............ok
t/2-ZOOM................ok
t/20-options............ok
t/21-option-callback....ok
t/22-query..............ok
t/23-resultset..........ok
t/24-sorting............ok
t/25-scan...............ok 48/87
#   Failed test 'scan for 'ZOOM::Query::CQL=HASH(0x8349944)''
t/25-scan...............NOK 70#   in t/25-scan.t at line 114.
Can't call method "size" on an undefined value at t/25-scan.t line 116.
# Looks like you planned 87 tests but only ran 70.
# Looks like you failed 1 test of 70 run.
# Looks like your test died just after 70.
t/25-scan...............dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 70-87
        Failed 18/87 tests, 79.31% okay
t/26-packages...........ok
t/27-logging............ok
t/28-charset............ok
t/29-events.............ok
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/15-scan.t    4  1024    87    4   4.60%  70 72-74
t/25-scan.t  255 65280    87   35  40.23%  70-87
Failed 2/22 test scripts, 90.91% okay. 22/712 subtests failed, 96.91% okay.
make: *** [test_dynamic] Error 255
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

Regards,

Hennie



More information about the Koha mailing list