cURL / Mailing Lists / curl-users / Single Mail

curl-users

install problem: configure couldn't find libz on Solaris

From: spage <spage_at_macromedia.com>
Date: Thu, 19 Feb 2004 12:09:44 -0800

Message "Re: compile problem"
http://curl.haxx.se/mail/archive-2003-10/0077.html discusses a
configure problem on Solaris. I got the same error:

checking size of off_t... configure: error: cannot compute sizeof
(off_t), 77

I got this on Solaris 5.6 and indeed it was an LD_LIBRARY_PATH issue,
but not with OpenSSL. Looking at config.log,

   configure:27472: gcc -o conftest -g -O2 conftest.c -lz -lssl
-lcrypto -ldl -lsocket -lnsl >&5
   configure:27475: $? = 0
   configure:27477: ./conftest
   ld.so.1: ./conftest: fatal: libz.so: open failed: No such file or
directory

I have a libz.so in /usr/local/lib. Setting
LD_LIBRARY_PATH=/usr/local/lib solved this problem. You might want to
add this suggestion to docs/INSTALL.

What's strange is that earlier configure seems to run another program
that depends on lz:
   configure:24970: checking for inflateEnd in -lz
   configure:25000: gcc -o conftest -g -O2 conftest.c -lz -lssl
-lcrypto -ldl -lsocket -lnsl >&5
   configure:25006: $? = 0
and that doesn't fail ("checking for inflateEnd in -lz... yes").

and also configure generates test programs with
     #define HAVE_LIBZ 1
in them.

So maybe there's a bug where configure finds /usr/local/lib/libz.so
even though it isn't in the loader library path. I'm no
autoconf/configure expert, but I'd be happy to track this down further
if it will make curl installation more robust.

Regards and thanks,

--
=S Page
Received on 2004-02-19