cURL / Mailing Lists / curl-users / Single Mail


Re: install problem: configure couldn't find libz on Solaris

From: Daniel Stenberg <>
Date: Thu, 19 Feb 2004 23:13:56 +0100 (CET)

On Thu, 19 Feb 2004, spage wrote:

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


> configure:27472: gcc -o conftest -g -O2 conftest.c -lz -lssl
> -lcrypto -ldl -lsocket -lnsl >&5
> configure:27475: $? = 0
> configure:27477: ./conftest
> ./conftest: fatal: open failed: No such file or
> directory
> I have a in /usr/local/lib. Setting LD_LIBRARY_PATH=/usr/local/lib
> solved this problem. You might want to add this suggestion to docs/INSTALL.

You have any suggestion on how to put it?

> What's strange is that earlier configure seems to run another program
> that depends on lz:


> and that doesn't fail ("checking for inflateEnd in -lz... yes").

That's because the first test actually runs a program and thus uses the
run-time linker that needs the lib. This latter check only links a test file
to see if it can link, and that doesn't use LD_LIBRARY_PATH.

    Daniel Stenberg -- --
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-02-19