cURL / Mailing Lists / curl-library / Single Mail


RE: configuration

From: Michael Mastroianni <>
Date: Tue, 6 Sep 2005 17:55:30 -0400

Here's the command line I used
./configure --without-zlib --without-ca_bundle --without-gnutils
--without-ssl --disable-ares --disable-ftp --disable-gopher
--disable-ldap --disable-telnet

configure:21117: checking for gethostbyname
configure:21174: icc -o conftest -g conftest.c >&5
configure:21180: $? = 0
configure:21183: test -z || test ! -s
configure:21186: $? = 0
configure:21189: test -s conftest
configure:21192: $? = 0
configure:21204: result: yes

configure:27547: checking if gethostbyname_r takes 3 arguments
configure:27575: icc -c -g conftest.c >&5
conftest.c(42): warning #274: declaration is not visible outside of
  gethostbyname_r(const char *, struct hostent *, struct hostent_data

conftest.c(42): warning #147: declaration is incompatible with "int
me_r(const char *restrict, struct hostent *restrict, char *restrict,
izet={unsigned int}}, struct hostent **restrict, int *restrict)"
(declared at l\
ine 165 of "/usr/include/netdb.h")
  gethostbyname_r(const char *, struct hostent *, struct hostent_data

conftest.c(47): error: incomplete type is not allowed
  struct hostent_data data;

compilation aborted for conftest.c (code 2)
configure:27581: $? = 2
configure: failed program was:
| /* confdefs.h. */

But the configuration output to STDOUT makes it look ok....

-----Original Message-----
[] On Behalf Of Daniel Stenberg
Sent: Tuesday, September 06, 2005 4:56 PM
To: libcurl development
Subject: RE: configuration

On Tue, 6 Sep 2005, Michael Mastroianni wrote:

> I did export CC=icc and export CXX=icc, did a configure, and when I
went to
> do a make, it had chosen the wrong form of gethostbyname.

And no configure option at all?

Can you show us the gethostbyname-related pieces of your config.log file
the failed detection?

What icc version are you using?

  Commercial curl and libcurl Technical Support:
Received on 2005-09-06