building ghc-6.8.2 network library fails under gcc43

Jens Petersen petersen at haskell.org
Fri Feb 15 02:08:48 EST 2008


(I know gcc-4.3 is still under development, but it is expected to be
the version of gcc in Fedora 9 which will be released around the end
of April.)

Has anyone tried or managed to build ghc with gcc-4.3?  I tried
yesterday in the Fedora buildsystem and got to:

Socket.hsc: In function 'main':
Socket.hsc:1144: error: invalid application of 'sizeof' to incomplete
type 'struct ucred'
Socket.hsc:1144: error: invalid application of 'sizeof' to incomplete
type 'struct ucred'
Socket.hsc:1144: error: invalid application of 'sizeof' to incomplete
type 'struct ucred'
Socket.hsc:1150: error: invalid use of undefined type 'struct ucred'
Socket.hsc:1151: error: invalid use of undefined type 'struct ucred'
Socket.hsc:1152: error: invalid use of undefined type 'struct ucred'
Socket.hsc:2419: error: 'NI_MAXHOST' undeclared (first use in this function)
Socket.hsc:2419: error: (Each undeclared identifier is reported only once
Socket.hsc:2419: error: for each function it appears in.)
Socket.hsc:2420: error: 'NI_MAXSERV' undeclared (first use in this function)
compiling dist/build/Network/Socket_hsc_make.c failed
command was: gcc -c -D__GLASGOW_HASKELL__=608
-I/builddir/build/BUILD/ghc-6.8.2/includes
-I/builddir/build/BUILD/ghc-6.8.2/gmp/gmpbuild
-D__GLASGOW_HASKELL__=608 -DCALLCONV=ccall -Iinclude
dist/build/Network/Socket_hsc_make.c -o
dist/build/Network/Socket_hsc_make.o
Preprocessing library network-2.1.0.0...

The full buildlog is at
http://koji.fedoraproject.org/koji/getfile?taskID=425959&name=build.log

Before investigating further I just wondered if anyone has already
looked at this and might have a patch or workaround?

Jens


More information about the Glasgow-haskell-users mailing list