Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Haskell-cafe] ghc socket weirdness

0 views
Skip to first unread message

Tim Newsham

unread,
Jul 24, 2008, 3:04:43 AM7/24/08
to haskel...@haskell.org
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?)

Tim Newsham
http://www.thenewsh.com/~newsham/
_______________________________________________
Haskell-Cafe mailing list
Haskel...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Ji YongGang

unread,
Jul 24, 2008, 3:33:42 AM7/24/08
to haskel...@haskell.org
Tim Newsham <new...@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

0 new messages