Resolving dependencies... Configuring network-2.2.1.7... checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 Building network-2.2.1.7... Preprocessing library network-2.2.1.7... Network/BSD.hsc:1:12: Warning: -fglasgow-exts is deprecated: Use individual extensions instead Network/Socket/Internal.hsc:1:12: Warning: -fglasgow-exts is deprecated: Use individual extensions instead Network/Socket.hsc:1:12: Warning: -fglasgow-exts is deprecated: Use individual extensions instead Network/URI.hs:1:16: Warning: -fglasgow-exts is deprecated: Use individual extensions instead [1 of 5] Compiling Network.URI ( Network/URI.hs, dist/build/Network/URI.o ) [2 of 5] Compiling Network.Socket.Internal ( dist/build/Network/Socket/Internal.hs, dist/build/Network/Socket/Internal.o ) Network/Socket/Internal.hsc:562:5: Could not deduce (Eq a) arising from a use of `throwErrnoIfMinus1RetryMayBlock' from the context (Num a) bound by the type signature for throwSocketErrorIfMinus1RetryMayBlock :: Num a => String -> IO b -> IO a -> IO a at Network/Socket/Internal.hsc:(550,8)-(554,11) Possible fix: add (Eq a) to the context of the type signature for throwSocketErrorIfMinus1RetryMayBlock :: Num a => String -> IO b -> IO a -> IO a In the expression: throwErrnoIfMinus1RetryMayBlock name act on_block In an equation for `throwSocketErrorIfMinus1RetryMayBlock': throwSocketErrorIfMinus1RetryMayBlock name on_block act = throwErrnoIfMinus1RetryMayBlock name act on_block Network/Socket/Internal.hsc:564:33: Could not deduce (Eq a) arising from a use of `throwErrnoIfMinus1Retry' from the context (Num a) bound by the type signature for throwSocketErrorIfMinus1Retry :: Num a => String -> IO a -> IO a at Network/Socket/Internal.hsc:(539,8)-(541,11) Possible fix: add (Eq a) to the context of the type signature for throwSocketErrorIfMinus1Retry :: Num a => String -> IO a -> IO a In the expression: throwErrnoIfMinus1Retry In an equation for `throwSocketErrorIfMinus1Retry': throwSocketErrorIfMinus1Retry = throwErrnoIfMinus1Retry Network/Socket/Internal.hsc:566:29: Could not deduce (Eq a) arising from a use of `throwErrnoIfMinus1_' from the context (Num a) bound by the type signature for throwSocketErrorIfMinus1_ :: Num a => String -> IO a -> IO () at Network/Socket/Internal.hsc:(529,8)-(531,12) Possible fix: add (Eq a) to the context of the type signature for throwSocketErrorIfMinus1_ :: Num a => String -> IO a -> IO () In the expression: throwErrnoIfMinus1_ In an equation for `throwSocketErrorIfMinus1_': throwSocketErrorIfMinus1_ = throwErrnoIfMinus1_ Network/Socket/Internal.hsc:649:1: Unacceptable argument type in foreign declaration: CInt When checking declaration: foreign import ccall unsafe "static string.h memset" memset :: Ptr a -> CInt -> CSize -> IO () Network/Socket/Internal.hsc:649:1: Unacceptable argument type in foreign declaration: CSize When checking declaration: foreign import ccall unsafe "static string.h memset" memset :: Ptr a -> CInt -> CSize -> IO () Failed to install network-2.2.1.7 cabal: Error: some packages failed to install: hslogger-1.1.1 depends on network-2.2.1.7 which failed to install. network-2.2.1.7 failed during the building phase. The exception was: ExitFailure 1