cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: LDFLAGS -ld -lc not detected automatically on Solaris x86

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 23 May 2012 08:58:06 +0200 (CEST)

On Tue, 22 May 2012, Alexander.Elgert_at_t-systems.com wrote:

Thanks for your help!

> On a solaris x86 box, the switches -lc and -ldl are needed, but not detected
> automatically by the configure script. (It would be nice to have this
> auto-detect feature in the future).

Can you help us and clarify for which functions you need -lc and -ldl
respectively?

> In file included from /usr/include/netinet/tcp.h:69,
> from tool_operate.c:45:
> /usr/include/netinet/ip.h:115: error: parse error before "ip_xhl"

Hm. curl includes netinet/tcp.h using the proper checks (from
src/tool_operate.c), but for some reason this isn't fine in that system. Can
you spot which other header file(s) it insists on having included before?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-23