cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: configure failure on Solaris9

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 22 Jun 2010 12:28:40 -0700

On Tue, Jun 22, 2010 at 02:52:28PM -0400, Alona Rossen wrote:
> configure:16853: checking for gethostbyname
> configure:16853: CC -o conftest -ldl conftest.c >&5
> Undefined first referenced
> symbol in file
> gethostbyname conftest.o
> ld: fatal: Symbol referencing errors. No output written to conftest

This test for gethostbyname, failed so configure tried again with -lnsl:

> configure:16858: checking for gethostbyname in -lnsl
> configure:16880: CC -o conftest -ldl conftest.c -lnsl >&5
> configure:16880: $? = 0
> configure:16889: result: yes

That succeeded, so it added -lnsl to the list of libraries to link against.
It then tested for the connecte() call:

> configure:17497: checking for connect in libraries
> configure:17524: CC -o conftest -ldl conftest.c -lnsl >&5
> Undefined first referenced
> symbol in file
> int connect(int,void*,int) conftest.o
> ld: fatal: Symbol referencing errors. No output written to conftest

This failed, so it tried again with -lsocket.

> configure:17524: CC -o conftest -ldl conftest.c -lsocket -lnsl >&5
> Undefined first referenced
> symbol in file
> int connect(int,void*,int) conftest.o
> ld: fatal: Symbol referencing errors. No output written to conftest

This failed again, and with no backup plan, configure failed.

> configure:17537: result: cannot find connect
> configure:17539: error: cannot find connect function in libraries.

You need to find why connect can't be linked like this on this box, and come
up with a strategy to make it work.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-22