Ticket #3513 (closed bug: invalid)
Network package does not work on Windows 2000
|Reported by:||guest||Owned by:|
|Type of failure:||Difficulty:||Unknown|
|Test Case:||Blocked By:|
I'm using GHC 6.10.4 on Windows 2000 SP4. I have this simple code:
import Network main = listenOn (PortNumber 12345) >> return ()
executing it with runhaskell fails:
>runhaskell test.hs test.hs: C:\ghc\ghc-6.10.4\network-22.214.171.124\HSnetwork-126.96.36.199.o: unknown symbol `_getnameinfo' test.hs: test.hs: unable to load package `network-188.8.131.52'
It can be compiled and linked successfully (ghc --make test.hs), however when run, it fails with this message box:
test.exe - Entry Point Not Found
The procedure entry point freeaddrinfo could not be located in the dynamic link library WS2_32.DLL.
It seems that the network package uses API functions: getaddrinfo, freeadrrinfo and getnameinfo. Those functions don't exist on Windows 2000 SP4.