darcs patch: s6_addr32 is undefined on darwin. Added an AC
check a...
Thomas Schilling
nominolo at googlemail.com
Wed Jun 27 07:43:30 EDT 2007
Uh. It might be that the autoconf check doesn't work, or is
implementod the wrong way. What is the output of configure?
Anyways, I think the safest approach would be to just check for
darwin. But I couldn't find out how to do that in a portable and
reliable way. Ideas?
/ Thomas
On 27 jun 2007, at 13.25, Ian Lynagh wrote:
> 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