[Haskell-cafe] getAddrInfo: does not exist

Alexander Vasiliev alexvasiljev at gmail.com
Wed Feb 22 12:26:00 CET 2012


I use FreeBsd and get the following error during execution.
"mvz_server: getAddrInfo: does not exist (servname not supported for

System: FreeBsd 7.1; amd64.
Haskell: ghc-7.0.3; network-

The programm works well on Ubuntu and on Windows XP.
The piece of code is:

bindit :: String -> ServData -> IO()
bindit port sd@(mvzs, clnts) = withSocketsDo $
      addrinfos <- getAddrInfo
                   (Just (defaultHints {addrFlags = [AI_PASSIVE]}))
                   Nothing (Just port)

I googled that this error was solved in ghc 6.8. But i use ghc 7.0.3. Can
anyone help me?

Best Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120222/5320191b/attachment.htm>

More information about the Haskell-Cafe mailing list