bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in getaddrinfo module


From: Simon Josefsson
Subject: Re: bug in getaddrinfo module
Date: Tue, 08 Nov 2005 20:21:31 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

address@hidden (Eric Blake) writes:

> gcc -DHAVE_CONFIG_H -I. -I../../lib -I..     -Wall -c ../../lib/canon-host.c
> ../../lib/canon-host.c: In function `canon_host_r':
> ../../lib/canon-host.c:71: warning: implicit declaration of function 
> `getaddrinfo'
> ../../lib/canon-host.c:77: warning: implicit declaration of function 
> `freeaddrinfo'
> ../../lib/canon-host.c: In function `ch_strerror':
> ../../lib/canon-host.c:89: warning: implicit declaration of function 
> `gai_strerror'
> ../../lib/canon-host.c:89: warning: return makes pointer from integer without 
> a cast
>
> Cygwin provides sys/socket.h and netdb.h, but has not yet
> provided an implementation for getaddrinfo, freeaddrinfo,
> or gai_strerror.  It looks like getaddrinfo.h is using
> #ifndef HAVE_DECL_GETADDRINFO, but AC_CHECK_DECLS
> uses #define HAVE_DECL_GETADDRINFO 0 in config.h.
>
> Fortunately, the implicit definition of these functions works on
> cygwin (all arguments are int or pointer, and cygwin uses 32-bit
> pointers), but it is a bug waiting to happen on a 64-bit platform.
>
> Fixed thusly:

Installed, thanks!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]