[GHC] #8918: Network package doesn't load under GHC 7.8 RC on windows (?)

kyra kyrab at mail.ru
Thu Apr 10 18:26:11 UTC 2014


Oh, I know what is going here.

This is a problem in either mingw-w64 (which goes bundled with GHC) or 
with network package (or both).

Ancient wsiapi functions (absent in all reasonable modern windozes) 
turned to be popped up.

One of the possible workarounds is thus: replace your <ghc installation 
root>\mingw\x86_64-w64-mingw32\include\wspiapi.h file with an empty file 
and reconfigure and rebuild the network package.

Cheers,
Kyra

On 4/10/2014 22:09, GHC wrote:
> #8918: Network package doesn't load under GHC 7.8 RC on windows (?)
> --------------------------------------+----------------------------------
>          Reporter:  dmcclean           |            Owner:
>              Type:  bug                |           Status:  new
>          Priority:  normal             |        Milestone:
>         Component:  libraries (other)  |          Version:  7.8.1-rc1
>        Resolution:                     |         Keywords:
> Operating System:  Windows            |     Architecture:  x86_64 (amd64)
>   Type of failure:  None/Unknown       |       Difficulty:  Unknown
>         Test Case:                     |       Blocked By:
>          Blocking:                     |  Related Tickets:
> --------------------------------------+----------------------------------
>
> Comment (by schernichkin):
>
>   Same problem in 7.8.1:
>   {{{
>   Loading package network-2.4.2.2 ... linking ... ghc.exe: unable to load
>   package `network-2.4.2.2'
>   ghc.exe: warning: WSACleanup from ws2_32 is linked instead of
>   __imp_WSACleanup
>   ghc.exe: warning: WSAStartup from ws2_32 is linked instead of
>   __imp_WSAStartup
>   ghc.exe: warning: WSACleanup from ws2_32 is linked instead of
>   __imp_WSACleanup
>   ghc.exe: warning: accept from ws2_32 is linked instead of __imp_accept
>   ghc.exe: warning: inet_ntoa from ws2_32 is linked instead of
>   __imp_inet_ntoa
>   ghc.exe: D:\Haskell\lib\x86_64-windows-
>   ghc-7.8.1\network-2.4.2.2\HSnetwork-2.4.2.2.o: unknown symbol
>   `WspiapiGetNameInfo'
>   }}}
>
> --
> Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8918#comment:1>
> GHC <http://www.haskell.org/ghc/>
> The Glasgow Haskell Compiler
> _______________________________________________
> ghc-tickets mailing list
> ghc-tickets at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-tickets
>



More information about the ghc-tickets mailing list