GHC bus error on Network.BSD.getHostByName

Hello all, Before I file a bug maybe someone might recognize the following error and knows if I should blame GHC or someone at Apple. When trying to use the Network.BSD.getHostByName function ghci exits with a bus error. The same thing happens with ghc --make and runghc.
ghci GHCi, version 6.10.4: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer ... linking ... done. Loading package base ... linking ... done. Prelude> :m Network.BSD Prelude Network.BSD> getHostByName "www.google.com" Loading package syb ... linking ... done. Loading package base-3.0.3.1 ... linking ... done. Loading package parsec-2.1.0.1 ... linking ... done. Loading package network-2.2.1.4 ... linking ... done. zsh: bus error ghci
I'm using a Mac running Snow Leopard and GHC 6.10.4 from the MacOSX platform installer together with network-2.2.1.4. Never had any problems with this function before my upgrade to Snow Leopard. All other GHC functionality seems to be ok. Should I file a bug or is this something already known? Thanks, -- Sebastiaan Visser

On Sun, Sep 13, 2009 at 02:49:43PM +0200, Sebastiaan Visser wrote:
I'm using a Mac running Snow Leopard and GHC 6.10.4 from the MacOSX platform installer together with network-2.2.1.4. Never had any problems with this function before my upgrade to Snow Leopard.
I can't reproduce it with an earlier OS X (using the GHC installer) either.
Should I file a bug or is this something already known?
If there isn't already a ticket about it, then please file a bug in the network trac: http://trac.haskell.org/network/ Thanks Ian

Sebastiaan Visser
Hello all,
Before I file a bug maybe someone might recognize the following error and knows if I should blame GHC or someone at Apple. When trying to use the Network.BSD.getHostByName function ghci exits with a bus error. The same thing happens with ghc --make and runghc.
Hey Sebastiaan!
Did you try "cabal install -O2 --global --reinstall network"?
I haven't tried GHC on Snow Leopard yet, but there was a thread on
haskell-cafe about which files you need to hack to tell Snow Leopard's
tools to build/link/etc in 32-bit mode. I suspect that might be the
issue here.
G
--
Gregory Collins
participants (3)
-
Gregory Collins
-
Ian Lynagh
-
Sebastiaan Visser