darcs patch: s6_addr32 is undefined on darwin. Added an AC check a...

Ian Lynagh igloo at earth.li
Wed Jun 27 07:25:04 EDT 2007


On Sat, Jun 23, 2007 at 03:12:38PM -0700, Thomas Schilling wrote:
> Fri Jun 22 18:58:52 CEST 2007  Thomas Schilling <nominolo at gmail.com>
>   * s6_addr32 is undefined on darwin.  Added an AC check and a definition taken from the NetBSD sources.

This breaks the build on Debian amd64 Linux:

ifBuildable/ifBuildable network setup/Setup makefile -f GNUmakefile
Reading parameters from /home/ian/ghc/darcs/build2/libraries/network/network.bui
ldinfo
Preprocessing library network-2.0.1...
In file included from BSD.hsc:17:
include/HsNet.h:80:1: warning: "s6_addr32" redefined
In file included from include/HsNet.h:77,
                 from BSD.hsc:17:
/usr/include/netinet/in.h:203:1: warning: this is the location of the previous d
efinition
In file included from Socket.hsc:22:
include/HsNet.h:80:1: warning: "s6_addr32" redefined
In file included from include/HsNet.h:77,
                 from Socket.hsc:22:
/usr/include/netinet/in.h:203:1: warning: this is the location of the previous d
efinition
Socket.hsc: In function ‘main’:
Socket.hsc:431: error: ‘struct in6_addr’ has no member named ‘__u6_addr’
Socket.hsc:432: error: ‘struct in6_addr’ has no member named ‘__u6_addr’
Socket.hsc:433: error: ‘struct in6_addr’ has no member named ‘__u6_addr’
Socket.hsc:434: error: ‘struct in6_addr’ has no member named ‘__u6_addr’
Socket.hsc:438: error: ‘struct in6_addr’ has no member named ‘__u6_addr’
Socket.hsc:439: error: ‘struct in6_addr’ has no member named ‘__u6_addr’
Socket.hsc:440: error: ‘struct in6_addr’ has no member named ‘__u6_addr’
Socket.hsc:441: error: ‘struct in6_addr’ has no member named ‘__u6_addr’
compiling dist/build/Network/Socket_hsc_make.c failed
command was: gcc -c -D__GLASGOW_HASKELL__=607 -I/home/ian/ghc/darcs/build2/inclu
des -Iinclude -DCALLCONV=ccall dist/build/Network/Socket_hsc_make.c -o dist/buil
d/Network/Socket_hsc_make.o
make: *** [network/GNUmakefile] Error 1


Thanks
Ian



More information about the Libraries mailing list