#2103: Some functions do not work on NetBSD
------------------------+---------------------------------------------------
Reporter: iquiw | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries/network
Version: 6.8.2 | Severity: normal
Keywords: | Testcase:
Architecture: Unknown | Os: NetBSD
------------------------+---------------------------------------------------
I found two problems in network library that occurs on NetBSD.[[BR]]
I created a patch to fix them. I tested it on NetBSD only.
(1) listenOn does not work with numerical port number.[[BR]]
This is caused by getAddrInfo used in listen' function.[[BR]]
On NetBSD, we need to specify addrSocketType of addrinfo hints for
getAddrInfo.[[BR]]
I think this bug happens on FreeBSD also though I did not confirm it.
(2) getNameInfo fails always.[[BR]]
This is because of difference of sockaddr structure.[[BR]]
struct sockaddr_* has its struct size as the first member of struct on
*BSD system, but pokeSockAddr does not poke it.[[BR]]
AFAIK, only NetBSD check this size strictly.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2103>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs