unix package doesnt load in ghci on freebsd/amd64
When loading the "unix" package in ghci, the interpreter gives a link error:
$ ghci -package unix
GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help
Loading package base ... linking ... done.
Loading package old-locale-1.0.0.0 ... linking ... done.
Loading package old-time-1.0.0.0 ... linking ... done.
Loading package filepath-1.1.0.0 ... linking ... done.
Loading package directory-1.0.0.0 ... linking ... done.
Loading package unix-2.3.0.0 ... ghc-6.8.2: can't load .so/.DLL for: util (/usr/lib/libutil.so: Undefined symbol "__mb_sb_limit")
As noted above this is ghc-6.8.2. I built from sources. My machine is:
FreeBSD hpsux 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sat Mar 8 14:07:11 HST 2008 root@hpsux:/usr/obj/usr/src/sys/GENERIC amd64