cURL / Mailing Lists / curl-library / Single Mail


Re: Daily builds for AIX

From: Tor Arntsen <>
Date: Wed, 4 Feb 2004 13:43:08 +0100

[No References: header, thus wrong threading. Sorry. This is because I found
the original message in the maillist archive, I never received it myself.]

Daniel Stenberg wrote:
>The hostip.c warning puzzles me. Do you understand why it complains on the
>pack_hostent function?

Daniel was referring to this warning:
../../curl/lib/hostip.c:90: warning: `pack_hostent' declared `static' but never defined

This only happens in the ipv6 build. It turns out that although the
static prototype is defined, the actual function only gets defined in
an ipv4-only build. Tentative fix appended.


Index: lib/hostip.c
RCS file: /repository/curl/lib/hostip.c,v
retrieving revision 1.117
diff -u -r1.117 hostip.c
--- lib/hostip.c 2 Feb 2004 16:00:31 -0000 1.117
+++ lib/hostip.c 4 Feb 2004 12:26:24 -0000
@@ -87,8 +87,10 @@
                                      int port,
                                      int *waitp);
 #if !defined(HAVE_GETHOSTBYNAME_R) || defined(USE_ARES)
+#if !defined(ENABLE_IPV6)
 static struct hostent* pack_hostent(char** buf, struct hostent* orig);
 void Curl_global_host_cache_init(void)

The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
Received on 2004-02-04