id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
35,AI_NUMERICSERV issue when installing network with GHC 7 and OS 10.6,batterseapower,,"I've seen this problem on both of my OS X 10.6 machines now. I try to install network 2.3, and I get the error:

{{{
Preprocessing library network-2.2.1.10...
Socket.hsc: In function ‘main’:
Socket.hsc:1846: error: ‘AI_NUMERICSERV’ undeclared (first use in this function)
Socket.hsc:1846: error: (Each undeclared identifier is reported only once
Socket.hsc:1846: error: for each function it appears in.)
compiling dist/build/Network/Socket_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c dist/build/Network/Socket_hsc_make.c -o dist/build/Network/Socket_hsc_make.o -march=i686 -m32 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -fno-stack-protector -D__GLASGOW_HASKELL__=700 -Iinclude -DCALLCONV=ccall -DBASE4 -I/Library/Frameworks/GHC.framework/Versions/7.0.1.20101215-i386/usr/lib/ghc-7.0.1.20101215/base-4.3.1.0/include -I/Library/Frameworks/GHC.framework/Versions/7.0.1.20101215-i386/usr/lib/ghc-7.0.1.20101215/include -I/Library/Frameworks/GHC.framework/Versions/7.0.1.20101215-i386/usr/lib/ghc-7.0.1.20101215/include -I/Library/Frameworks/GHC.framework/Versions/7.0.1.20101215-i386/usr/lib/ghc-7.0.1.20101215/include/
}}}

I'm not really sure why this happens. The earlier configure check seems OK:
{{{
checking whether AI_NUMERICSERV is declared... yes
}}}

Removing the offending #ifdef solves the problem.",defect,closed,major,,network,,fixed,,
