[Haskell-cafe] ghc socket weirdness

Ji YongGang jungleji at gmail.com
Thu Jul 24 03:33:15 EDT 2008


Tim Newsham <newsham at lava.net> writes:

> FreeBSD/7.0 amd64:
>
> GHCi, version 6.8.2: http://www.haskell.org/ghc/  :? for help
> Loading package base ... linking ... done.
> Prelude> :module +Network
> Prelude Network> listenOn $ PortNumber 8765
> Loading package parsec-2.1.0.0 ... linking ... done.
> Loading package network-2.1.0.0 ... linking ... done.
> *** Exception: getAddrInfo: does not exist (servname not supported for
> ai_socktype)
>
> (same error when compiled).
>
> Anyone seen this before?  I have multiple NICs, could that be
> confusing listenOn (does it not just bind on 0.0.0.0?)
>

ghc 6.8.2 has the same problem on NetBSD/i386, it fixed with ghc 6.8.3:

http://hackage.haskell.org/trac/ghc/ticket/2103


-- jungle


More information about the Haskell-Cafe mailing list