Hi,<br /><br />The subject says it all really.<br /><br />Using:<br />network-2.2.1.5 from Cabal<br />Windows XP, Admin mode<br />Cygwin 1.6<br />The Glorious Glasgow Haskell Compilation System, version 6.12.0.20091010<br /><br />$ runhaskell Setup configure<br /><br />Setup.hs:3:0:<br />    Warning: In the use of `defaultUserHooks&#39;<br />             (imported from Distribution.Simple):<br />             Deprecated: &quot;Use simpleUserHooks or autoconfUserHooks, unless you n<br />eed Cabal-1.2<br />             compatibility in which case you must stick with defaultUserHooks&quot;<br />Warning: defaultUserHooks in Setup script is deprecated.<br />Configuring network-2.2.1.5...<br />checking build system type... i686-pc-cygwin<br />checking host system type... i686-pc-cygwin<br />checking for gcc... gcc<br />checking for C compiler default output file name... a.exe<br />checking whether the C compiler works... yes<br />checking whether we are cross compiling... no<br />checking for suffix of executables... .exe<br />checking for suffix of object files... o<br />checking whether we are using the GNU C compiler... yes<br />checking whether gcc accepts -g... yes<br />checking for gcc option to accept ISO C89... none needed<br />checking for an ANSI C-conforming const... yes<br />checking how to run the C preprocessor... gcc -E<br />checking for grep that handles long lines and -e... /usr/bin/grep<br />checking for egrep... /usr/bin/grep -E<br />checking for ANSI C header files... yes<br />checking for sys/types.h... yes<br />checking for sys/stat.h... yes<br />checking for stdlib.h... yes<br />checking for string.h... yes<br />checking for memory.h... yes<br />checking for strings.h... yes<br />checking for inttypes.h... yes<br />checking for stdint.h... yes<br />checking for unistd.h... yes<br />checking fcntl.h usability... yes<br />checking fcntl.h presence... yes<br />checking for fcntl.h... yes<br />checking limits.h usability... yes<br />checking limits.h presence... yes<br />checking for limits.h... yes<br />checking for stdlib.h... (cached) yes<br />checking for sys/types.h... (cached) yes<br />checking for unistd.h... (cached) yes<br />checking winsock2.h usability... no<br />checking winsock2.h presence... yes<br />configure: WARNING: winsock2.h: present but cannot be compiled<br />configure: WARNING: winsock2.h:     check for missing prerequisite headers?<br />configure: WARNING: winsock2.h: see the Autoconf documentation<br />configure: WARNING: winsock2.h:     section &quot;Present But Cannot Be Compiled&quot;<br />configure: WARNING: winsock2.h: proceeding with the preprocessor&#39;s result<br />configure: WARNING: winsock2.h: in the future, the compiler will take precedence<br /><br />configure: WARNING:     ## ------------------------------------ ##<br />configure: WARNING:     ## Report this to libraries@haskell.org ##<br />configure: WARNING:     ## ------------------------------------ ##<br />checking for winsock2.h... yes<br />checking ws2tcpip.h usability... no<br />checking ws2tcpip.h presence... yes<br />configure: WARNING: ws2tcpip.h: present but cannot be compiled<br />configure: WARNING: ws2tcpip.h:     check for missing prerequisite headers?<br />configure: WARNING: ws2tcpip.h: see the Autoconf documentation<br />configure: WARNING: ws2tcpip.h:     section &quot;Present But Cannot Be Compiled&quot;<br />configure: WARNING: ws2tcpip.h: proceeding with the preprocessor&#39;s result<br />configure: WARNING: ws2tcpip.h: in the future, the compiler will take precedence<br /><br />configure: WARNING:     ## ------------------------------------ ##<br />configure: WARNING:     ## Report this to libraries@haskell.org ##<br />configure: WARNING:     ## ------------------------------------ ##<br />checking for ws2tcpip.h... yes<br />checking wspiapi.h usability... no<br />checking wspiapi.h presence... no<br />checking for wspiapi.h... no<br />checking arpa/inet.h usability... no<br />checking arpa/inet.h presence... yes<br />configure: WARNING: arpa/inet.h: present but cannot be compiled<br />configure: WARNING: arpa/inet.h:     check for missing prerequisite headers?<br />configure: WARNING: arpa/inet.h: see the Autoconf documentation<br />configure: WARNING: arpa/inet.h:     section &quot;Present But Cannot Be Compiled&quot;<br />configure: WARNING: arpa/inet.h: proceeding with the preprocessor&#39;s result<br />configure: WARNING: arpa/inet.h: in the future, the compiler will take precedenc<br />e<br />configure: WARNING:     ## ------------------------------------ ##<br />configure: WARNING:     ## Report this to libraries@haskell.org ##<br />configure: WARNING:     ## ------------------------------------ ##<br />checking for arpa/inet.h... yes<br />checking netdb.h usability... no<br />checking netdb.h presence... yes<br />configure: WARNING: netdb.h: present but cannot be compiled<br />configure: WARNING: netdb.h:     check for missing prerequisite headers?<br />configure: WARNING: netdb.h: see the Autoconf documentation<br />configure: WARNING: netdb.h:     section &quot;Present But Cannot Be Compiled&quot;<br />configure: WARNING: netdb.h: proceeding with the preprocessor&#39;s result<br />configure: WARNING: netdb.h: in the future, the compiler will take precedence<br />configure: WARNING:     ## ------------------------------------ ##<br />configure: WARNING:     ## Report this to libraries@haskell.org ##<br />configure: WARNING:     ## ------------------------------------ ##<br />checking for netdb.h... yes<br />checking netinet/in.h usability... no<br />checking netinet/in.h presence... yes<br />configure: WARNING: netinet/in.h: present but cannot be compiled<br />configure: WARNING: netinet/in.h:     check for missing prerequisite headers?<br />configure: WARNING: netinet/in.h: see the Autoconf documentation<br />configure: WARNING: netinet/in.h:     section &quot;Present But Cannot Be Compiled&quot;<br />configure: WARNING: netinet/in.h: proceeding with the preprocessor&#39;s result<br />configure: WARNING: netinet/in.h: in the future, the compiler will take preceden<br />ce<br />configure: WARNING:     ## ------------------------------------ ##<br />configure: WARNING:     ## Report this to libraries@haskell.org ##<br />configure: WARNING:     ## ------------------------------------ ##<br />checking for netinet/in.h... yes<br />checking netinet/tcp.h usability... no<br />checking netinet/tcp.h presence... yes<br />configure: WARNING: netinet/tcp.h: present but cannot be compiled<br />configure: WARNING: netinet/tcp.h:     check for missing prerequisite headers?<br />configure: WARNING: netinet/tcp.h: see the Autoconf documentation<br />configure: WARNING: netinet/tcp.h:     section &quot;Present But Cannot Be Compiled&quot;<br />configure: WARNING: netinet/tcp.h: proceeding with the preprocessor&#39;s result<br />configure: WARNING: netinet/tcp.h: in the future, the compiler will take precede<br />nce<br />configure: WARNING:     ## ------------------------------------ ##<br />configure: WARNING:     ## Report this to libraries@haskell.org ##<br />configure: WARNING:     ## ------------------------------------ ##<br />checking for netinet/tcp.h... yes<br />checking sys/socket.h usability... no<br />checking sys/socket.h presence... yes<br />configure: WARNING: sys/socket.h: present but cannot be compiled<br />configure: WARNING: sys/socket.h:     check for missing prerequisite headers?<br />configure: WARNING: sys/socket.h: see the Autoconf documentation<br />configure: WARNING: sys/socket.h:     section &quot;Present But Cannot Be Compiled&quot;<br />configure: WARNING: sys/socket.h: proceeding with the preprocessor&#39;s result<br />configure: WARNING: sys/socket.h: in the future, the compiler will take preceden<br />ce<br />configure: WARNING:     ## ------------------------------------ ##<br />configure: WARNING:     ## Report this to libraries@haskell.org ##<br />configure: WARNING:     ## ------------------------------------ ##<br />checking for sys/socket.h... yes<br />checking sys/uio.h usability... no<br />checking sys/uio.h presence... yes<br />configure: WARNING: sys/uio.h: present but cannot be compiled<br />configure: WARNING: sys/uio.h:     check for missing prerequisite headers?<br />configure: WARNING: sys/uio.h: see the Autoconf documentation<br />configure: WARNING: sys/uio.h:     section &quot;Present But Cannot Be Compiled&quot;<br />configure: WARNING: sys/uio.h: proceeding with the preprocessor&#39;s result<br />configure: WARNING: sys/uio.h: in the future, the compiler will take precedence<br />configure: WARNING:     ## ------------------------------------ ##<br />configure: WARNING:     ## Report this to libraries@haskell.org ##<br />configure: WARNING:     ## ------------------------------------ ##<br />checking for sys/uio.h... yes<br />checking sys/un.h usability... no<br />checking sys/un.h presence... yes<br />configure: WARNING: sys/un.h: present but cannot be compiled<br />configure: WARNING: sys/un.h:     check for missing prerequisite headers?<br />configure: WARNING: sys/un.h: see the Autoconf documentation<br />configure: WARNING: sys/un.h:     section &quot;Present But Cannot Be Compiled&quot;<br />configure: WARNING: sys/un.h: proceeding with the preprocessor&#39;s result<br />configure: WARNING: sys/un.h: in the future, the compiler will take precedence<br />configure: WARNING:     ## ------------------------------------ ##<br />configure: WARNING:     ## Report this to libraries@haskell.org ##<br />configure: WARNING:     ## ------------------------------------ ##<br />checking for sys/un.h... yes<br />checking for readlink... yes<br />checking for symlink... yes<br />checking for struct msghdr.msg_control... yes<br />checking for struct msghdr.msg_accrights... no<br />checking for struct sockaddr.sa_len... no<br />checking for in_addr_t in netinet/in.h... yes<br />checking for SO_PEERCRED and struct ucred in sys/socket.h... yes<br />checking for _head_libws2_32_a in -lws2_32... yes<br />checking for getaddrinfo... no<br />checking for getaddrinfo if WINVER is 0x0501... no<br />checking for gai_strerror... no<br />checking whether AI_ADDRCONFIG is declared... no<br />checking whether AI_ALL is declared... no<br />checking whether AI_NUMERICSERV is declared... no<br />checking whether AI_V4MAPPED is declared... no<br />checking for sendfile in sys/sendfile.h... no<br />checking for sendfile in sys/socket.h... no<br />checking for gethostent... no<br />configure: creating ./config.status<br />config.status: creating network.buildinfo<br />config.status: creating include/HsNetworkConfig.h<br /><br />$ runhaskell Setup build<br /><br />Setup.hs:3:0:<br />    Warning: In the use of `defaultUserHooks&#39;<br />             (imported from Distribution.Simple):<br />             Deprecated: &quot;Use simpleUserHooks or autoconfUserHooks, unless you n<br />eed Cabal-1.2<br />             compatibility in which case you must stick with defaultUserHooks&quot;<br />Preprocessing library network-2.2.1.5...<br />Network\Socket.hsc: In function `main&#39;:<br />Network\Socket.hsc:994: error: invalid application of `sizeof&#39; to incomplete typ<br />e `ucred&#39;<br />Network\Socket.hsc:994: error: invalid application of `sizeof&#39; to incomplete typ<br />e `ucred&#39;<br />Network\Socket.hsc:994: error: invalid application of `sizeof&#39; to incomplete typ<br />e `ucred&#39;<br />Network\Socket.hsc:999: error: `SO_PEERCRED&#39; undeclared (first use in this funct<br />ion)<br />Network\Socket.hsc:999: error: (Each undeclared identifier is reported only once<br /><br />Network\Socket.hsc:999: error: for each function it appears in.)<br />Network\Socket.hsc:1000: error: dereferencing pointer to incomplete type<br />Network\Socket.hsc:1001: error: dereferencing pointer to incomplete type<br />Network\Socket.hsc:1002: error: dereferencing pointer to incomplete type<br />compiling dist\build\Network\Socket_hsc_make.c failed<br />command was: C:\ghc\ghc-6.12.0.20091010\mingw\bin\gcc.exe -c -BC:\ghc\ghc-6.12.0<br />.20091010\gcc-lib -IC:\ghc\ghc-6.12.0.20091010\include\mingw -D__GLASGOW_HASKELL<br />__=612 -Iinclude -DCALLCONV=ccall -DBASE4 -IC:\ghc\ghc-6.12.0.20091010\base-4.2.<br />0.0\include -IC:\ghc\ghc-6.12.0.20091010/include -IC:\ghc\ghc-6.12.0.20091010/in<br />clude -IC:/ghc/ghc-6.12.0.20091010/lib/include/ dist\build\Network\Socket_hsc_ma<br />ke.c -o dist\build\Network\Socket_hsc_make.o<br /><br />Thanks, Neil