[Net-z3950] Installing Net::Z3950

Mike Taylor mike at indexdata.com
Wed Mar 2 10:10:31 CET 2005

> Date: Wed, 02 Mar 2005 13:04:40 +0700
> From: Don Robertson <don at robertson.net.nz>
> gcc  -shared -L/usr/local/lib Z3950.o  -o blib/arch/auto/Net/Z3950/Z3950.so yazwrap/libyazwrap.a  -lyaz -L/usr/lib -lxml2 -lz -lpthread -lm -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lwrap -lnsl
> /usr/bin/ld: cannot find -lcom_err
> collect2: ld returned 1 exit status
> make: *** [blib/arch/auto/Net/Z3950/Z3950.so] Error 1
>   /usr/bin/make  -- NOT OK


I'm sorry, I don't known whether I'm going to be able to help much
with this, as I don't have an FC2 machine to reproduce the problem on.

What's abundantly clear is that that the process of running "perl
Makefile.PL" has decided that the Perl-to-C linkage module needs to be
linked with a bunch of stuff that I know nothing about, and have never
seen involved in a Net::Z3950 build before.  Here is the equivalent
line in my own build (on RH9):

  LD_RUN_PATH="/usr/local/lib:/usr/lib" gcc  -shared -L/usr/local/lib Z3950.o  -o blib/arch/auto/Net/Z3950/Z3950.so yazwrap/libyazwrap.a  -L/usr/local/lib -lyaz -L/usr/lib -lxml2 -lz -lm  

So it looks like your link link is trying to include a whole swathe of
extra libraries that mine isn't:


The simple solution for you is to find out what FC2 RPM contain
libcom_err.co, install that, and re-run the build.  But I would be
interested to know why "perl Makefile.PL" on FC2 thinks it needs all
that junk.

 _/|_	 _______________________________________________________________
/o ) \/  Mike Taylor  <mike at indexdata.com>  http://www.miketaylor.org.uk
)_v__/\  "In the tea, my lord, the chrysanthemum tea!  An informal
	 variation on the normal recipe!" -- Steven Sondheim,
	 "Pacific Overtures"

Listen to free demos of soundtrack music for film, TV and radio

More information about the Net-z3950 mailing list