cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: configuration

From: Michael Mastroianni <MMastroianni_at_choicestream.com>
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
conftest.err
configure:21186: $? = 0
configure:21189: test -s conftest
configure:21192: $? = 0
configure:21204: result: yes

#define HAVE_GETHOSTBYNAME 1
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
function
  gethostbyname_r(const char *, struct hostent *, struct hostent_data
*);
                                                         ^

conftest.c(42): warning #147: declaration is incompatible with "int
gethostbyna\
me_r(const char *restrict, struct hostent *restrict, char *restrict,
size_t={_S\
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-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] 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
after
the failed detection?

What icc version are you using?

-- 
  Commercial curl and libcurl Technical Support:
http://haxx.se/curl.html
Received on 2005-09-06