Hi, I try to install Net::Z3950 : _** yaz is installed :*_ make[2]: Rien à faire pour `install-exec-am'. /bin/sh ./mkinstalldirs /usr/local/share/aclocal mkdir /usr/local/share/aclocal /usr/bin/install -c -m 644 ./yaz.m4 /usr/local/share/aclocal/yaz.m4 make[2]: Quitte le répertoire `/home/paul/archives/a_compiler/yaz-1.9.2' make[1]: Quitte le répertoire `/home/paul/archives/a_compiler/yaz-1.9.2' _** Perl Makefile.PL in Net::Z3950*_ [root@localhost Net-Z3950-0.31]# perl Makefile.PL Warning: prerequisite Event 0.77 not found. MakeMaker (v6.03) Writing Makefile for Net::Z3950::yazwrap Writing Makefile for Net::Z3950 What is Event 0.77 ? Is it mandatory. It doesn't seems ? _** make*_ [root@localhost Net-Z3950-0.31]# make cd yazwrap && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="/usr" OPTIMIZE="-O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce" PASTHRU_DEFINE="" PASTHRU_INC="" make[1]: Entre dans le répertoire `/home/paul/archives/a_compiler/Net-Z3950-0.31/yazwrap' gcc -c -Dbool=char -DHAS_BOOL -I/usr/local/include -Wall -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -DVERSION=\"\" -DXS_VERSION=\"\" -fpic "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" connect.c cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/op.h:480, from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2209, from ywpriv.h:5, from connect.c:12: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:602: field `_crypt_struct' has incomplete type In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:3368, from ywpriv.h:5, from connect.c:12: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:246: parse error before "off64_t" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: parse error before "Perl_do_sysseek" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: parse error before "off64_t" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: warning: type defaults to `int' in declaration of `Perl_do_sysseek' /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: warning: data definition has no type or storage class /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:249: parse error before "Perl_do_tell" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:249: warning: type defaults to `int' in declaration of `Perl_do_tell' /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:249: warning: data definition has no type or storage class /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1378: parse error before "Perl_PerlIO_tell" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1378: warning: type defaults to `int' in declaration of `Perl_PerlIO_tell' /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1378: warning: data definition has no type or storage class /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1379: parse error before "off64_t" make[1]: *** [connect.o] Erreur 1 make[1]: Quitte le répertoire `/home/paul/archives/a_compiler/Net-Z3950-0.31/yazwrap' make: *** [yazwrap/libyazwrap.a] Erreur 2 does someone have an idea to help me ??? -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
Hi Paul: I had some trouble installing Net::Z3950 too.
What is Event 0.77 ? Is it mandatory. It doesn't seems ?
I am almost certain that Event 0.77 is mandatory. It is kind of like IO::Select and allows your Perl program to sit and wait for input from a variety of handles, and work on them when there when there is data to read. Very useful for doing multiple things in parallel. You can find it here: http://www.cpan.org/modules/by-module/Event/ I would install Event, and then see if things still fail. //Ed -- Ed Summers aim: inkdroid web: http://www.inkdroid.org
Ed Summers a écrit:
Hi Paul: I had some trouble installing Net::Z3950 too.
What is Event 0.77 ? Is it mandatory. It doesn't seems ?
I am almost certain that Event 0.77 is mandatory. It is kind of like IO::Select and allows your Perl program to sit and wait for input from a variety of handles, and work on them when there when there is data to read. Very useful for doing multiple things in parallel. You can find it here:
http://www.cpan.org/modules/by-module/Event/ I would install Event, and then see if things still fail. //Ed
Event is now installed, but same failure :-( AutoSplitting blib/lib/Net/Z3950.pm (blib/lib/auto/Net/Z3950) cp Z3950/Connection.pm blib/lib/Net/Z3950/Connection.pm cp Z3950/Manager.pm blib/lib/Net/Z3950/Manager.pm cp Z3950/ResultSet.pm blib/lib/Net/Z3950/ResultSet.pm cd yazwrap && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="/usr" OPTIMIZE="-O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce" PASTHRU_DEFINE="" PASTHRU_INC="" make[1]: Entre dans le répertoire `/home/paul/archives/a_compiler/Net-Z3950-0.31/yazwrap' gcc -c -Dbool=char -DHAS_BOOL -I/usr/local/include -Wall -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -DVERSION=\"\" -DXS_VERSION=\"\" -fpic "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" connect.c cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/op.h:480, from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2209, from ywpriv.h:5, from connect.c:12: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:602: field `_crypt_struct' has incomplete type In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:3368, from ywpriv.h:5, from connect.c:12: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:246: parse error before "off64_t" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: parse error before "Perl_do_sysseek" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: parse error before "off64_t" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: warning: type defaults to `int' in declaration of `Perl_do_sysseek' /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:248: warning: data definition has no type or storage class /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:249: parse error before "Perl_do_tell" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:249: warning: type defaults to `int' in declaration of `Perl_do_tell' /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:249: warning: data definition has no type or storage class /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1378: parse error before "Perl_PerlIO_tell" /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1378: warning: type defaults to `int' in declaration of `Perl_PerlIO_tell' /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1378: warning: data definition has no type or storage class /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:1379: parse error before "off64_t" make[1]: *** [connect.o] Erreur 1 make[1]: Quitte le répertoire `/home/paul/archives/a_compiler/Net-Z3950-0.31/yazwrap' make: *** [yazwrap/libyazwrap.a] Erreur 2 -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
Paul: did you rerun perl Makefile.PL, before trying to remake? I don't know if that will help. I just looked at how my install went under Perl5.8 and noticed that my diagnostics differed at this point:
gcc -c -Dbool=char -DHAS_BOOL -I/usr/local/include -Wall -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -DVERSION=\"\" -DXS_VERSION=\"\" -fpic "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" connect.c cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/op.h:480, from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2209, from ywpriv.h:5, from connect.c:12:
Mine looked like: cc -c -Dbool=char -DHAS_BOOL -I/usr/local/include -Wall -O2 -DVERSION=\"\" -DXS_VERSION=\"\" -fpic "-I/usr/local/lib/perl5/5.8.0/i586-linux/CORE" connect.c which emitted no warnings, and went on its merry way. Note the difference here is I'm using cc instead of gcc as a C compiler. I wouldn't think this would be a significant difference though. If you have cc on your system, and want to try compiling with it instead of gcc try this: perl Makefile.PL CC=cc make //Ed -- Ed Summers aim: inkdroid web: http://www.inkdroid.org
participants (2)
-
Ed Summers -
paul POULAIN