[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in getaddrinfo module
From: |
Eric Blake |
Subject: |
bug in getaddrinfo module |
Date: |
Thu, 22 Sep 2005 23:39:23 +0000 |
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 in getaddrinfo module,
Eric Blake <=