cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Compiling libcurl from source Question

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 10 Jun 2004 14:30:32 -0700

On Thu, Jun 10, 2004 at 10:11:11AM -0400, Nicholas Parsons wrote:
> Hello Everyone,
>
> I am trying to compile the libcurl/curl 7.12.0 source code I downloaded
> from the curl web site and am receiving a error message from the
> configure script. The machine is a s26 box with UNIX_SV installed on
> it.
>
> >From the command line I typed:
> # ./configure --with-ssl --disable-shared
>
> And received the following tailed message:
> checking for gethostbyname... no
> checking for gethostbyname in -lnsl... no
> checking for gethostbyname in -lsocket... no
> checking for gethostbyname with both nsl and socket libs... yes
> checking for gethostbyname in ws2_32... no
> configure: error: couldn't find libraries for gethostbyname()
>
> I looked at the man page for gethostbyname() on the system and
> it told me that it belonged to the netdir library. I'm not exactly
> sure what this maps to on the system and how to inform the configure
> script of exactly where it should look for this...
>
> Any help on this would be greatly appreciated.

Try:
   env LDFLAGS="-lnetdir" ./configure --with-ssl --disable-shared
(or something similar using CFLAGS) as a brute-force way to try to get
the compiler to link programs with the netdir library.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2004-06-10