Hi Marty, I remeber having the same problem as you have when trying to install version 2.2.6 I got around it by installing perl -MCPAN -e 'install Net::Z3950::ZOOM' which gave me a different error: cc1: error: unrecognized option `-Wdeclaration-after-statement' make: *** [ZOOM.o] Error 1 So I went and commented out the line below # Use this to test for illegal code that GCC stupidly permits by default: and it installed fine hope this helps Robert Marty Jongepier wrote:
Hi all,
I get an error on make for Net::Z3950 (see below) Installation on Debian Sarge, perl 5.8.4
I tried to add include:'DEFINE' => '-D_GNU_SOURCE' in NET::Z3950'sMakefile.PL and yazwrap/Makefile.PL to no avail, and, what I was wondering about, editing these files in vi, after running Makefile.PL they return to their original version, e.i. without the 'DEFINE' => '-D_GNU_SOURCE'
Any ideas, anybody? I installed another version on an as far as I know identical computer without a glitch... and all the remaining Perl modules went flawlessly too...
CPAN.pm: Going to build M/MI/MIRK/Net-Z3950-0.49.tar.gz
Checking if your kit is complete... Looks good MakeMaker (v6.17) Writing Makefile for Net::Z3950::yazwrap Writing Makefile for Net::Z3950 cp Z3950/APDU.pm blib/lib/Net/Z3950/APDU.pm cp Z3950/Connection.pm blib/lib/Net/Z3950/Connection.pm cp Z3950/Manager.pm blib/lib/Net/Z3950/Manager.pm cp Z3950/ScanSet.pm blib/lib/Net/Z3950/ScanSet.pm cp Z3950/ResultSet.pm blib/lib/Net/Z3950/ResultSet.pm cp Z3950/Record.pm blib/lib/Net/Z3950/Record.pm cp Z3950/Tutorial.pm blib/lib/Net/Z3950/Tutorial.pm cp Z3950.pm blib/lib/Net/Z3950.pm AutoSplitting blib/lib/Net/Z3950.pm (blib/lib/auto/Net/Z3950) cd yazwrap && /usr/bin/make INC=-DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1 -I/usr/include/libxml2 LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="/usr" OPTIMIZE="-O2" PASTHRU_DEFINE="" PASTHRU_INC="-DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1 -I/usr/include/libxml2" /usr/bin/make: invalid option -- D /usr/bin/make: invalid option -- Y /usr/bin/make: invalid option -- A /usr/bin/make: invalid option -- Z /usr/bin/make: invalid option -- _ /usr/bin/make: invalid option -- H /usr/bin/make: invalid option -- A /usr/bin/make: invalid option -- V /usr/bin/make: invalid option -- E /usr/bin/make: invalid option -- _ /usr/bin/make: invalid option -- X /usr/bin/make: invalid option -- L /usr/bin/make: invalid option -- T /usr/bin/make: invalid option -- = /usr/bin/make: invalid option -- 1 /usr/bin/make: invalid option -- D /usr/bin/make: invalid option -- Y /usr/bin/make: invalid option -- A /usr/bin/make: invalid option -- Z /usr/bin/make: invalid option -- _ /usr/bin/make: invalid option -- H /usr/bin/make: invalid option -- A /usr/bin/make: invalid option -- V /usr/bin/make: invalid option -- E /usr/bin/make: invalid option -- _ /usr/bin/make: invalid option -- E /usr/bin/make: invalid option -- X /usr/bin/make: invalid option -- L /usr/bin/make: invalid option -- T /usr/bin/make: invalid option -- = /usr/bin/make: invalid option -- 1 Usage: make [options] [target] ... Options: -b, -m Ignored for compatibility. -B, --always-make Unconditionally make all targets. -C DIRECTORY, --directory=DIRECTORY Change to DIRECTORY before doing anything. -d Print lots of debugging information. --debug[=FLAGS] Print various types of debugging information. -e, --environment-overrides Environment variables override makefiles. -f FILE, --file=FILE, --makefile=FILE Read FILE as a makefile. -h, --help Print this message and exit. -i, --ignore-errors Ignore errors from commands. -I DIRECTORY, --include-dir=DIRECTORY Search DIRECTORY for included makefiles. -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg. -k, --keep-going Keep going when some targets can't be made. -l [N], --load-average[=N], --max-load[=N] Don't start multiple jobs unless load is below N. -n, --just-print, --dry-run, --recon Don't actually run any commands; just print them. -o FILE, --old-file=FILE, --assume-old=FILE Consider FILE to be very old and don't remake it. -p, --print-data-base Print make's internal database. -q, --question Run no commands; exit status says if up to date. -r, --no-builtin-rules Disable the built-in implicit rules. -R, --no-builtin-variables Disable the built-in variable settings. -s, --silent, --quiet Don't echo commands. -S, --no-keep-going, --stop Turns off -k. -t, --touch Touch targets instead of remaking them. -v, --version Print the version number of make and exit. -w, --print-directory Print the current directory. --no-print-directory Turn off -w, even if it was turned on implicitly. -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE Consider FILE to be infinitely new. --warn-undefined-variables Warn when an undefined variable is referenced.
This program built for i386-pc-linux-gnu Report bugs to <bug-make@gnu.org> make: *** [yazwrap/libyazwrap.a] Error 2 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Robert Lyon Katipo Communications