[network] #5: getAddrInfo and addrFamily not in scope on
Windows GHC 6.8
network
libraries at haskell.org
Wed May 13 02:40:26 EDT 2009
#5: getAddrInfo and addrFamily not in scope on Windows GHC 6.8
----------------------+-----------------------------------------------------
Reporter: igloo | Owner: bos
Type: defect | Status: assigned
Priority: major | Milestone:
Component: network | Version:
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Changes (by bos):
* owner: => bos
* status: new => assigned
Comment:
This is really ugly to deal with. I've got tentative code that ''should''
(but doesn't) detect {{{getaddrinfo}}} on Windows properly. Easy, right?
The base problem is that a working version of the function wasn't
introduced until Windows XP, but there's a cheeeezy hack for ''some''
earlier releases that tries to find a half-working version in
{{{wship6.dll}}} via a runtime probe.
Gruesome details near the end of this page:
http://msdn.microsoft.com/en-us/library/ms738520(VS.85).aspx
Gruesome details, part deux, in this thread:
http://readlist.com/lists/lists.sourceforge.net/mingw-users/0/1544.html
Because autoconf goes out of its way to find a nice clean definition of a
function, it's not even straightforward to write a correct autoconf macro
to find {{{getaddrinfo}}} correctly on Windows. I'm trying to set the
{{{WINVER}}} macro to {{{0x0501}}} (aka {{{WindowsXP}}}), but autoconf is
undoing my work by deliberately doing a {{{#undef getaddrinfo}}}. It's all
rather confusing.
--
Ticket URL: <http://trac.haskell.org/network/ticket/5#comment:1>
network <http://projects.haskell.org/network/>
Networking-related facilities
More information about the Libraries
mailing list