[Hackage] #859: network doesn't build with 1.11.0

Hackage cvs-ghc at haskell.org
Tue Jun 28 14:41:51 CEST 2011


#859: network doesn't build with 1.11.0
----------------------------+-----------------------------------------------
  Reporter:  tibbe          |        Owner:      
      Type:  defect         |       Status:  new 
  Priority:  normal         |    Milestone:      
 Component:  Cabal library  |      Version:  HEAD
  Severity:  normal         |     Keywords:      
Difficulty:  unknown        |   Ghcversion:      
  Platform:                 |  
----------------------------+-----------------------------------------------
 The network package from http://github.com/haskell/network (the "stable"
 branch) doesn't build with the current HEAD but does build with 1.10.2.

 {{{
 $ ./Setup -V
 Cabal library version 1.11.0

 $ ./Setup configure --user -v
 Configuring network-2.3.0.4...
 Dependency base >=3 && <4.4: using base-4.3.1.0
 Dependency bytestring <1.0: using bytestring-0.9.1.10
 Dependency parsec >=2.0 && <3.2: using parsec-3.1.1
 Dependency unix ==2.*: using unix-2.4.2.0
 Using Cabal-1.11.0 compiled by ghc-7.0
 Using compiler: ghc-7.0.3
 Using install prefix: /home/tibell/.cabal
 Binaries installed in: /home/tibell/.cabal/bin
 Libraries installed in: /home/tibell/.cabal/lib/network-2.3.0.4/ghc-7.0.3
 Private binaries installed in: /home/tibell/.cabal/libexec
 Data files installed in: /home/tibell/.cabal/share/network-2.3.0.4
 Documentation installed in: /home/tibell/.cabal/share/doc/network-2.3.0.4
 Using alex version 2.3.1 found on system at: /home/tibell/bin/alex
 Using ar found on system at: /usr/bin/ar
 No c2hs found
 Using cpphs version 1.11 found on system at: /home/tibell/.cabal/bin/cpphs
 No ffihugs found
 Using gcc version 4.4.3 found on system at: /usr/bin/gcc
 Using ghc version 7.0.3 found on system at: /home/tibell/bin/ghc
 Using ghc-pkg version 7.0.3 found on system at: /home/tibell/bin/ghc-pkg
 No greencard found
 Using haddock version 2.9.2 found on system at: /home/tibell/bin/haddock
 Using happy version 1.18.2 found on system at: /home/tibell/bin/happy
 No hmake found
 Using hsc2hs version 0.67 found on system at: /home/tibell/bin/hsc2hs
 Using hscolour version 1.16 found on system at:
 /home/tibell/.cabal/bin/HsColour
 No hugs found
 No jhc found
 Using ld found on system at: /usr/bin/ld
 No lhc found
 No lhc-pkg found
 No nhc98 found
 Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config
 Using ranlib found on system at: /usr/bin/ranlib
 Using strip found on system at: /usr/bin/strip
 Using tar found on system at: /bin/tar
 No uhc found
 sh configure --with-compiler=ghc --with-gcc=/usr/bin/gcc
 configure: WARNING: unrecognized options: --with-compiler, --with-gcc
 checking build system type... x86_64-unknown-linux-gnu
 checking host system type... x86_64-unknown-linux-gnu
 checking for gcc... gcc
 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... no
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ISO C89... none needed
 checking for an ANSI C-conforming const... yes
 checking how to run the C preprocessor... gcc -E
 checking for grep that handles long lines and -e... /bin/grep
 checking for egrep... /bin/grep -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking fcntl.h usability... yes
 checking fcntl.h presence... yes
 checking for fcntl.h... yes
 checking limits.h usability... yes
 checking limits.h presence... yes
 checking for limits.h... yes
 checking for stdlib.h... (cached) yes
 checking for sys/types.h... (cached) yes
 checking for unistd.h... (cached) yes
 checking winsock2.h usability... no
 checking winsock2.h presence... no
 checking for winsock2.h... no
 checking ws2tcpip.h usability... no
 checking ws2tcpip.h presence... no
 checking for ws2tcpip.h... no
 checking wspiapi.h usability... no
 checking wspiapi.h presence... no
 checking for wspiapi.h... no
 checking arpa/inet.h usability... yes
 checking arpa/inet.h presence... yes
 checking for arpa/inet.h... yes
 checking netdb.h usability... yes
 checking netdb.h presence... yes
 checking for netdb.h... yes
 checking netinet/in.h usability... yes
 checking netinet/in.h presence... yes
 checking for netinet/in.h... yes
 checking netinet/tcp.h usability... yes
 checking netinet/tcp.h presence... yes
 checking for netinet/tcp.h... yes
 checking sys/socket.h usability... yes
 checking sys/socket.h presence... yes
 checking for sys/socket.h... yes
 checking sys/uio.h usability... yes
 checking sys/uio.h presence... yes
 checking for sys/uio.h... yes
 checking sys/un.h usability... yes
 checking sys/un.h presence... yes
 checking for sys/un.h... yes
 checking for readlink... yes
 checking for symlink... yes
 checking for struct msghdr.msg_control... yes
 checking for struct msghdr.msg_accrights... no
 checking for struct sockaddr.sa_len... no
 checking for in_addr_t in netinet/in.h... yes
 checking for SO_PEERCRED and struct ucred in sys/socket.h... yes
 checking for _head_libws2_32_a in -lws2_32... no
 checking for getaddrinfo... yes
 checking for gai_strerror... yes
 checking whether AI_ADDRCONFIG is declared... yes
 checking whether AI_ALL is declared... yes
 checking whether AI_NUMERICSERV is declared... yes
 checking whether AI_V4MAPPED is declared... yes
 checking for sendfile in sys/sendfile.h... yes
 checking for sendfile in sys/socket.h... no
 checking for gethostent... yes
 configure: creating ./config.status
 config.status: creating network.buildinfo
 config.status: creating include/HsNetworkConfig.h
 config.status: include/HsNetworkConfig.h is unchanged
 configure: WARNING: unrecognized options: --with-compiler, --with-gcc
 Reading parameters from ./network.buildinfo

 $ ./Setup build -v
 Reading parameters from ./network.buildinfo
 creating dist/build
 creating dist/build/autogen
 Building network-2.3.0.4...
 Preprocessing library network-2.3.0.4...
 creating dist/build/Network
 /home/tibell/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-fno-
 stack-protector --lflag=-fno-stack-protector
 --cflag=-D__GLASGOW_HASKELL__=700 --cflag=-Dlinux_BUILD_OS
 --cflag=-Dlinux_HOST_OS --cflag=-Dx86_64_BUILD_ARCH
 --cflag=-Dx86_64_HOST_ARCH --cflag=-Iinclude
 --cflag=-I/home/tibell/lib/ghc-7.0.3/unix-2.4.2.0/include
 --cflag=-Idist/build/autogen --cflag=-include
 --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen
 --cflag=-include --cflag=dist/build/autogen/cabal_macros.h
 --cflag=-Idist/build/autogen --cflag=-include
 --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen
 --cflag=-include --cflag=dist/build/autogen/cabal_macros.h
 --cflag=-I/home/tibell/lib/ghc-7.0.3/bytestring-0.9.1.10/include
 --cflag=-Idist/build/autogen --cflag=-include
 --cflag=dist/build/autogen/cabal_macros.h
 --cflag=-I/home/tibell/lib/ghc-7.0.3/base-4.3.1.0/include
 --cflag=-Idist/build/autogen --cflag=-include
 --cflag=dist/build/autogen/cabal_macros.h --cflag=-Idist/build/autogen
 --cflag=-include --cflag=dist/build/autogen/cabal_macros.h
 --cflag=-Idist/build/autogen --cflag=-include
 --cflag=dist/build/autogen/cabal_macros.h
 --cflag=-I/home/tibell/lib/ghc-7.0.3/include --cflag=-Idist/build/autogen
 --cflag=-include --cflag=dist/build/autogen/cabal_macros.h
 --cflag=-I/home/tibell/lib/ghc-7.0.3/include --cflag=-Idist/build/autogen
 --cflag=-include --cflag=dist/build/autogen/cabal_macros.h
 --lflag=-L/home/tibell/lib/ghc-7.0.3/unix-2.4.2.0
 --lflag=-Wl,-R,/home/tibell/lib/ghc-7.0.3/unix-2.4.2.0 --lflag=-lrt
 --lflag=-lutil --lflag=-ldl
 --lflag=-L/home/tibell/.cabal/lib/parsec-3.1.1/ghc-7.0.3
 --lflag=-Wl,-R,/home/tibell/.cabal/lib/parsec-3.1.1/ghc-7.0.3
 --lflag=-L/home/tibell/.cabal/lib/mtl-2.0.1.0/ghc-7.0.3
 --lflag=-Wl,-R,/home/tibell/.cabal/lib/mtl-2.0.1.0/ghc-7.0.3
 --lflag=-L/home/tibell/.cabal/lib/transformers-0.2.2.0/ghc-7.0.3
 --lflag=-Wl,-R,/home/tibell/.cabal/lib/transformers-0.2.2.0/ghc-7.0.3
 --lflag=-L/home/tibell/lib/ghc-7.0.3/bytestring-0.9.1.10
 --lflag=-Wl,-R,/home/tibell/lib/ghc-7.0.3/bytestring-0.9.1.10
 --lflag=-L/home/tibell/lib/ghc-7.0.3/base-4.3.1.0
 --lflag=-Wl,-R,/home/tibell/lib/ghc-7.0.3/base-4.3.1.0
 --lflag=-L/home/tibell/lib/ghc-7.0.3/integer-gmp-0.2.0.3
 --lflag=-Wl,-R,/home/tibell/lib/ghc-7.0.3/integer-gmp-0.2.0.3
 --lflag=-lgmp --lflag=-L/home/tibell/lib/ghc-7.0.3/ghc-prim-0.2.0.0
 --lflag=-Wl,-R,/home/tibell/lib/ghc-7.0.3/ghc-prim-0.2.0.0
 --lflag=-L/home/tibell/lib/ghc-7.0.3
 --lflag=-Wl,-R,/home/tibell/lib/ghc-7.0.3 --lflag=-lm --lflag=-lrt
 --lflag=-ldl --lflag=-L/home/tibell/lib/ghc-7.0.3
 --lflag=-Wl,-R,/home/tibell/lib/ghc-7.0.3 -o dist/build/Network/Socket.hs
 Network/Socket.hsc
 Socket.hsc: In function ‘main’:
 Socket.hsc:1033: error: invalid application of ‘sizeof’ to incomplete type
 ‘struct ucred’
 Socket.hsc:1033: error: invalid application of ‘sizeof’ to incomplete type
 ‘struct ucred’
 Socket.hsc:1033: error: invalid application of ‘sizeof’ to incomplete type
 ‘struct ucred’
 Socket.hsc:1039: error: invalid use of undefined type ‘struct ucred’
 Socket.hsc:1040: error: invalid use of undefined type ‘struct ucred’
 Socket.hsc:1041: error: invalid use of undefined type ‘struct ucred’
 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 -fno-stack-protector -fno-stack-
 protector -D__GLASGOW_HASKELL__=700 -Dlinux_BUILD_OS -Dlinux_HOST_OS
 -Dx86_64_BUILD_ARCH -Dx86_64_HOST_ARCH -Iinclude
 -I/home/tibell/lib/ghc-7.0.3/unix-2.4.2.0/include -Idist/build/autogen
 -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include
 dist/build/autogen/cabal_macros.h -Idist/build/autogen -include
 dist/build/autogen/cabal_macros.h -Idist/build/autogen -include
 dist/build/autogen/cabal_macros.h
 -I/home/tibell/lib/ghc-7.0.3/bytestring-0.9.1.10/include
 -Idist/build/autogen -include dist/build/autogen/cabal_macros.h
 -I/home/tibell/lib/ghc-7.0.3/base-4.3.1.0/include -Idist/build/autogen
 -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include
 dist/build/autogen/cabal_macros.h -Idist/build/autogen -include
 dist/build/autogen/cabal_macros.h -I/home/tibell/lib/ghc-7.0.3/include
 -Idist/build/autogen -include dist/build/autogen/cabal_macros.h
 -I/home/tibell/lib/ghc-7.0.3/include -Idist/build/autogen -include
 dist/build/autogen/cabal_macros.h -I/home/tibell/lib/ghc-7.0.3/include/
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/859>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list