curl-users
LDFLAGS -ld -lc not detected automatically on Solaris x86
Date: Tue, 22 May 2012 15:18:38 +0200
Hello,
I compiled curl on a bunch of systems, maybe you find it useful to hear about the different options I had to set.
Please pay (only) attention to the -lc and -ldl switches.
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).
I could not compile the version 7.25.0 on an ANCIENT AIX 4.3 machine, but the 7.24.0 did it without any problems.
I configured curl on the AIX with the following parameters:
curl-7.25.0/config.log:uname -m = 004640DA4C00
curl-7.25.0/config.log:uname -r = 3
curl-7.25.0/config.log:uname -s = AIX
curl-7.25.0/config.log:uname -v = 4
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/siux_share/ae/cc/laboru2/curl'\'' '\''--with-ssl=/siux_share/ae/cc/laboru2/curl'\''"'
if gcc -DHAVE_CONFIG_H -I../include/curl -I../include -I../include -I../lib -I../src -I../lib -I../src -I/compile/curl/include -I/compile/curl/include/openssl -g0 -O2 -Wno-system-headers -MT tool_operate.o -MD -MP -MF ".deps/tool_operate.Tpo" -c -o tool_operate.o tool_operate.c; \
then mv -f ".deps/tool_operate.Tpo" ".deps/tool_operate.Po"; else rm -f ".deps/tool_operate.Tpo"; exit 1; fi
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"
/usr/include/netinet/ip.h:121: error: parse error before '}' token
/usr/include/netinet/ip.h:128: error: parse error before '}' token
/usr/include/netinet/ip.h:131: error: field `ip_ff' has incomplete type
/usr/include/netinet/ip.h:144: error: field `ip_src' has incomplete type
/usr/include/netinet/ip.h:144: error: field `ip_dst' has incomplete type
/usr/include/netinet/ip.h:267: error: parse error before "ipt_xcode"
/usr/include/netinet/ip.h:274: error: parse error before '}' token
/usr/include/netinet/ip.h:284: error: field `ipt_addr' has incomplete type
/usr/include/netinet/ip.h:288: error: parse error before '}' token
In file included from tool_operate.c:45:
/usr/include/netinet/tcp.h:86: error: field `ip_ff' has incomplete type
/usr/include/netinet/tcp.h:176: error: field `host' has incomplete type
/usr/include/netinet/tcp.h:177: error: field `netmask' has incomplete type
gmake[2]: *** [tool_operate.o] Error 1
gmake[2]: Leaving directory `/compile/curl-7.25.0/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/compile/curl-7.25.0/src'
gmake: *** [all-recursive] Error 1
=============================================================
curl-7.25.0/config.log:uname -m = i686
curl-7.25.0/config.log:uname -r = 2.6.22.5-31-default
curl-7.25.0/config.log:uname -s = Linux
curl-7.25.0/config.log:uname -v = #1 SMP 2007/09/21 22:29:00 UTC
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\''"'
curl-7.25.0/config.log:uname -m = i86pc
curl-7.25.0/config.log:uname -r = 5.11
curl-7.25.0/config.log:uname -s = SunOS
curl-7.25.0/config.log:uname -v = snv_151a
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\'' '\''--disable-shared'\'' '\''LDFLAGS=-ldl -lc'\''"'
curl-7.25.0/config.log:uname -m = sun4u
curl-7.25.0/config.log:uname -r = 5.10
curl-7.25.0/config.log:uname -s = SunOS
curl-7.25.0/config.log:uname -v = Generic_142909-17
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\'' '\''--disable-shared'\'' '\''LDFLAGS=-ldl -lc'\''"'
curl-7.25.0/config.log:uname -m = i686
curl-7.25.0/config.log:uname -r = 2.6.18-194.el5
curl-7.25.0/config.log:uname -s = Linux
curl-7.25.0/config.log:uname -v = #1 SMP Tue Mar 16 21:52:43 EDT 2010
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\''"'
curl-7.25.0/config.log:uname -m = 9000/800
curl-7.25.0/config.log:uname -r = B.11.31
curl-7.25.0/config.log:uname -s = HP-UX
curl-7.25.0/config.log:uname -v = U
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\'' '\''--disable-shared'\''"'
curl-7.25.0/config.log:uname -m = i686
curl-7.25.0/config.log:uname -r = 2.6.37.6-0.9-default
curl-7.25.0/config.log:uname -s = Linux
curl-7.25.0/config.log:uname -v = #1 SMP 2011-10-19 22:33:27 +0200
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\''"'
curl-7.25.0/config.log:uname -m = i686
curl-7.25.0/config.log:uname -r = 1.7.14(0.260/5/3)
curl-7.25.0/config.log:uname -s = CYGWIN_NT-5.1
curl-7.25.0/config.log:uname -v = 2012-04-25 09:41
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl'\'' '\''--with-ssl=/opt/openssl'\''"'
curl-7.25.0/config.log:uname -m = i686
curl-7.25.0/config.log:uname -r = 2.6.32-220.7.1.el6.i686
curl-7.25.0/config.log:uname -s = Linux
curl-7.25.0/config.log:uname -v = #1 SMP Tue Mar 6 21:21:22 GMT 2012
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\'' '\''LDFLAGS=-ldl'\''"'
curl-7.25.0/config.log:uname -m = x86_64
curl-7.25.0/config.log:uname -r = 2.6.32-71.el6.x86_64
curl-7.25.0/config.log:uname -s = Linux
curl-7.25.0/config.log:uname -v = #1 SMP Fri May 20 03:51:51 BST 2011
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\'' '\''--disable-shared'\'' '\''LDFLAGS=-ldl'\''"'
curl-7.25.0/config.log:uname -m = 00C586C04C00
curl-7.25.0/config.log:uname -r = 3
curl-7.25.0/config.log:uname -s = AIX
curl-7.25.0/config.log:uname -v = 5
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\''"'
curl-7.25.0/config.log:uname -m = i686
curl-7.25.0/config.log:uname -r = 2.4.18-bf2.4
curl-7.25.0/config.log:uname -s = Linux
curl-7.25.0/config.log:uname -v = #1 Son Apr 14 09:53:28 CEST 2002
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\'' '\''--disable-shared'\'' '\''LDFLAGS=-ldl'\''"'
curl-7.25.0/config.log:uname -m = i686
curl-7.25.0/config.log:uname -r = 3.0.0-2-686-pae
curl-7.25.0/config.log:uname -s = Linux
curl-7.25.0/config.log:uname -v = #1 SMP Wed Nov 2 05:29:50 UTC 2011
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl/lib'\''"'
curl-7.25.0/config.log:uname -m = sun4u
curl-7.25.0/config.log:uname -r = 5.9
curl-7.25.0/config.log:uname -s = SunOS
curl-7.25.0/config.log:uname -v = Generic_117171-07
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\'' '\''--disable-shared'\'' '\''LDFLAGS=-ldl -lc'\''"'
curl-7.25.0/config.log:uname -m = i86pc
curl-7.25.0/config.log:uname -r = 5.10
curl-7.25.0/config.log:uname -s = SunOS
curl-7.25.0/config.log:uname -v = Generic_147441-01
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\'' '\''--disable-shared'\'' '\''--disable-lber'\'' '\''--disable-ldap'\'' '\''CFLAGS=-I/opt/curl/curl/include'\'' '\''LDFLAGS=-L/opt/curl/curl/lib -ldl -lc'\'' '\''CPPFLAGS=-I/opt/curl/curl/include'\''"'
curl-7.25.0/config.log:uname -m = 9000/800
curl-7.25.0/config.log:uname -r = B.11.11
curl-7.25.0/config.log:uname -s = HP-UX
curl-7.25.0/config.log:uname -v = U
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\''"'
curl-7.25.0/config.log:uname -m = i86pc
curl-7.25.0/config.log:uname -r = 5.10
curl-7.25.0/config.log:uname -s = SunOS
curl-7.25.0/config.log:uname -v = Generic_147441-01
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\'' '\''--disable-shared'\'' '\''LDFLAGS=-ldl -lc'\''"'
curl-7.25.0/config.log:uname -m = sun4u
curl-7.25.0/config.log:uname -r = 5.8
curl-7.25.0/config.log:uname -s = SunOS
curl-7.25.0/config.log:uname -v = Generic_108528-14
curl-7.25.0/config.log:CONFIGURE_OPTIONS='" '\''--prefix=/opt/curl/curl'\'' '\''--with-ssl=/opt/curl/curl'\''"'
=====
Greetings,
Alexander
-- Deutsche Telekom AG Seamless ICT Security Infrastructure & Management im Auftrag T-Systems International GmbH Dipl. Inf Alexander Elgert Langwadener Strasse 17 64625 Bensheim +49 176 22 717 661 (Mobil) +49 671 83419-12 (Tel) +49 671 83419-30 (Fax) E-Mail: alexander.elgert_at_gmx.de ------------------------------------------------------------------- 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.htmlReceived on 2012-05-22