cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Incompatibility with latest bind 9.2.2rc1

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 10 Jan 2003 09:55:16 +0100 (MET)

On Thu, 9 Jan 2003, Gavin Vess wrote:

(CC'ing my reply over to the curl-library list, please post follow-ups there)

> The following incompatiblity exists with the latest libcurl (7.10.3 pre 5)
> and the latest bind (9.2.2rc1). I believe all versions of bind 9 also
> exhibit the same problem, due to different numbers/types of arguments for
> gethostbyname_r() than those expected by libcurl. I haven't had time yet
> to determine the real cause for this incompatibility, but perhaps you
> already know about this ..

I am not aware of any problems such as the ones you describe.

I do however not understand what your bind version has to do with how curl is
built. curl does not use bind, the gethostbyname_r() curl uses is found in
glibc.

> Thus, anyone wishing to use a current release of bind, curl on Red Hat 7.2
> will probably see the following when running make:
>
> gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -g -O2 -MT hostip.lo -MD -MP -MF .deps/hostip.Tpo -c hostip.c -fPIC -DPIC -o .libs/hostip.lo
> In file included from hostip.c:41:
> /usr/include/netinet/in.h:133: warning: empty declaration
> hostip.c: In function `my_getaddrinfo':
> hostip.c:597: warning: passing arg 5 of `gethostbyname_r' from incompatible pointer type
> hostip.c:597: too few arguments to function `gethostbyname_r'
> hostip.c:597: warning: assignment makes pointer from integer without a cast
> make[2]: *** [hostip.lo] Error 1
> make[2]: Leaving directory `/home/admin/todo/curl-7.10.3-pre5/lib'

How many arguments did the configure script detect that your
gethostbyname_r() uses? How many *does* it actually use (for real)?

This looks as if you didn't run configure on your Linux but have re-used the
lib/config.h that was generated on a different platform (Solaris, IRIX or
something). hostip.c:597 is code for those platforms.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-01-10