[GHC] #3513: Network package does not work on Windows 2000

GHC trac at galois.com
Mon Sep 14 12:09:27 EDT 2009


#3513: Network package does not work on Windows 2000
--------------------+-------------------------------------------------------
Reporter:  guest    |          Owner:                   
    Type:  bug      |         Status:  new              
Priority:  normal   |      Component:  libraries (other)
 Version:  6.10.4   |       Severity:  major            
Keywords:           |       Testcase:                   
      Os:  Windows  |   Architecture:  x86              
--------------------+-------------------------------------------------------
 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-2.2.1.2\HSnetwork-2.2.1.2.o: unknown
 symbol `_getnameinfo'
 test.hs: test.hs: unable to load package `network-2.2.1.2'
 }}}
 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[[BR]]
 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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3513>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list