Hi,

I just attempted to update from 7.56.1 to 7.57.0 on a Linux CentOS 4.8 using 
gcc 4.8.5 but am now running into compile errors as below when compiling curl 
with the following configure command:

./configure LDFLAGS="-L"${libraryRoot}" -ldl" --prefix=${installDir} 
--with-ssl=${libraryRoot} --disable-ldaps --disable-ldap
--without-libidn --without-libnss --enable-shared=no 
--enable-ares=${libraryRoot}/cares


---SNIP---
CC       libcurl_la-dict.lo
CC       libcurl_la-if2ip.lo
In file included from urldata.h:86,
                 from sendf.c:31:
/usr/include/netinet/in.h:354: error: syntax error before '(' token
/usr/include/netinet/in.h:354: error: syntax error before "__u32"
/usr/include/netinet/in.h:355: error: syntax error before '(' token
/usr/include/netinet/in.h:355: error: syntax error before "__u16"
/usr/include/netinet/in.h:357: error: syntax error before '(' token
/usr/include/netinet/in.h:357: error: syntax error before "__u32"
/usr/include/netinet/in.h:359: error: syntax error before '(' token
/usr/include/netinet/in.h:359: error: syntax error before "__u16"
make[5]: *** [libcurl_la-sendf.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[3]: warning: jobserver unavailable: using -j1.  Add `+' to parent make 
rule.
Making install in lib
  CC       libcurl_la-sendf.lo
In file included from urldata.h:86,
                 from sendf.c:31:
/usr/include/netinet/in.h:354: error: syntax error before '(' token
/usr/include/netinet/in.h:354: error: syntax error before "__u32"
/usr/include/netinet/in.h:355: error: syntax error before '(' token
/usr/include/netinet/in.h:355: error: syntax error before "__u16"
/usr/include/netinet/in.h:357: error: syntax error before '(' token
/usr/include/netinet/in.h:357: error: syntax error before "__u32"
/usr/include/netinet/in.h:359: error: syntax error before '(' token
/usr/include/netinet/in.h:359: error: syntax error before "__u16"
make[4]: *** [libcurl_la-sendf.lo] Error 1
make[3]: *** [install-recursive] Error 1
---SNIP---

The lines in in.h are the following

extern uint32_t ntohl (uint32_t __netlong) __THROW __attribute__ ((__const__));
extern uint16_t ntohs (uint16_t __netshort)
     __THROW __attribute__ ((__const__));
extern uint32_t htonl (uint32_t __hostlong)
     __THROW __attribute__ ((__const__));
extern uint16_t htons (uint16_t __hostshort)
     __THROW __attribute__ ((__const__));

Was there an intentional drop in backwards compatibility in 7.57.0 ?

// Per

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to