coreutils CVS head now fails to compile on cygwin due to a recent
import of the latest gnulib getaddrinfo.  Sure enough, running
gnulib-tool --test getaddrinfo
dies with the following:

make[2]: Entering directory `/home/eblake/gnulib/testdir3556/build/lib'
gcc -DHAVE_CONFIG_H -I. -I../../lib -I..     -g -O2 -c ../../lib/getaddrinfo.c
../../lib/getaddrinfo.c: In function `getaddrinfo':
../../lib/getaddrinfo.c:112: error: invalid application of `sizeof' to 
incomplete type `sockaddr_in' 
../../lib/getaddrinfo.c:148: warning: initialization from incompatible pointer 
type
../../lib/getaddrinfo.c:151: error: dereferencing pointer to incomplete type
../../lib/getaddrinfo.c:153: error: dereferencing pointer to incomplete type
../../lib/getaddrinfo.c:156: error: dereferencing pointer to incomplete type
make[2]: *** [getaddrinfo.o] Error 1

AFAICT, POSIX only requires this type to exist in <netinet/in.h>, which is the
only place where cygwin provides a full declaration, but lib/getaddrinfo.[hc]
is not including that header.

--
Eric Blake


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to