(patch seq: 5714) Disable IPv6 on Cygwin
Harold L Hunt II
huntharo@msu.edu
Fri Jul 25 15:34:00 GMT 2003
Marc Aurele La France wrote:
> On Fri, 25 Jul 2003, Harold L Hunt II wrote:
>
>
>>Patch is attached that does exactly what the subject says.
>
>
>>IPv6 is not currently supported on Cygwin.
>
>
> So Cygwin #define's AF_INET6? Otherwise, this patch is not needed.
>
socket.h in Cygwin has a #define for AF_INET6, even though that support
doesn't seem to have landed, and/or I have no way of working on it to
fix the build failures and actually verify that it works. So, until
then it needs to be disabled so that our tree will actually build again.
Harold
rm -f x11trans.o
gcc -c -O2 -fno-strength-reduce -Wall -Wpointer-arith -I../..
-I../../exports/include -D__i386__ -DWIN32_LEAN_AND_MEAN -DX_LOCALE
-D_X86_ -D__CYGWIN__ -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=199309L
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DNO_ALLOCA -DFUNCPROTO=15
-DNARROWPROTO -DXTHREADS -DXUSE_MTSAFE_API -DHAS_SNPRINTF
-DLIBX11 -DPOSTLOCALELIBDIR=\"lib\" -I../../lib/xtrans
-DTCPCONN -DUNIXCONN -DHAS_STICKY_DIR_BIT -DHAS_FCHOWN -DIPv6 -DX11_t
-DTRANS_CLIENT -D_DLL x11trans.c
In file included from x11trans.c:80:
../../lib/xtrans/Xtranssock.c: In function `_X11TransSocketINETGetAddr':
../../lib/xtrans/Xtranssock.c:305: storage size of `sockname' isn't known
../../lib/xtrans/Xtranssock.c:305: warning: unused variable `sockname'
../../lib/xtrans/Xtranssock.c: In function `_X11TransSocketINETGetPeerAddr':
../../lib/xtrans/Xtranssock.c:359: storage size of `sockname' isn't known
../../lib/xtrans/Xtranssock.c:359: warning: unused variable `sockname'
../../lib/xtrans/Xtranssock.c: At top level:
../../lib/xtrans/Xtranssock.c:1314: `MAXHOSTNAMELEN' undeclared here
(not in a function)
../../lib/xtrans/Xtranssock.c: In function `_X11TransSocketINETConnect':
../../lib/xtrans/Xtranssock.c:1328: storage size of `hints' isn't known
../../lib/xtrans/Xtranssock.c:1329: `INET6_ADDRSTRLEN' undeclared (first
use in this function)
../../lib/xtrans/Xtranssock.c:1329: (Each undeclared identifier is
reported only once
../../lib/xtrans/Xtranssock.c:1329: for each function it appears in.)
../../lib/xtrans/Xtranssock.c:1382: warning: implicit declaration of
function `freeaddrinfo'
../../lib/xtrans/Xtranssock.c:1399: warning: implicit declaration of
function `getaddrinfo'
../../lib/xtrans/Xtranssock.c:1403: warning: implicit declaration of
function `gai_strerror'
../../lib/xtrans/Xtranssock.c:1408: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1431: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1432: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1434: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1439: warning: implicit declaration of
function `inet_ntop'
../../lib/xtrans/Xtranssock.c:1439: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1466: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1471: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1484: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1631: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1674: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1328: warning: unused variable `hints'
../../lib/xtrans/Xtranssock.c:1329: warning: unused variable `ntopbuf'
In file included from x11trans.c:80:
../../lib/xtrans/Xtranssock.c: In function `UnixHostReallyLocal':
../../lib/xtrans/Xtranssock.c:1718: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1719: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1720: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1720: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1721: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1723: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1725: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1732: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1734: dereferencing pointer to incomplete type
../../lib/xtrans/Xtranssock.c:1736: dereferencing pointer to incomplete type
In file included from x11trans.c:85:
../../lib/xtrans/Xtrans.c: In function `_X11TransParseAddress':
../../lib/xtrans/Xtrans.c:328: warning: implicit declaration of function
`inet_pton'
In file included from x11trans.c:86:
../../lib/xtrans/Xtransutil.c: In function `_X11TransConvertAddress':
../../lib/xtrans/Xtransutil.c:142: warning: implicit declaration of
function `IN6_IS_ADDR_LOOPBACK'
../../lib/xtrans/Xtransutil.c:146: warning: implicit declaration of
function `IN6_IS_ADDR_V4MAPPED'
make[4]: *** [x11trans.o] Error 1
make[4]: Leaving directory `/home/harold/x-devel/build/std/lib/X11'
More information about the Cygwin-xfree
mailing list