GHC 6.12 + zlib + Mac OS 10.6
nonowarn at gmail.com
Sat Nov 28 16:54:42 EST 2009
I think you installed zlib without proper flags to link with 32-bit
libraries. configuring with ./Setup configure
--with-hsc2hs='--cc-flag=-m32 --ld-flag=-m32' should do the tricks.
See also http://hackage.haskell.org/trac/ghc/ticket/3681.
On Sun, Nov 29, 2009 at 6:01 AM, Antoine Latter <aslatter at gmail.com> wrote:
> Hello folks,
> Everything has been going beautifully with the latest versions of GHC
> 6.12, except that anything involving zlib dies at run-time. In ghci:
>> :m Codec.Compression.Zlib
>> :m +Data.ByteString.Lazy.Char8
>> :s -XOverloadedStrings
>> compress "hello"
> *** Exception: user error (Codec.Compression.Zlib: incompatible zlib version)
> I'm running OS X 10.6 on a 64-bit machine.
> I've heard of folks running into this with GHC 6.10 on OS X 10.6, who
> got rid of it by removing mac-ports. I tried that and it didn't change
> anything. My mac-ports install should have all been universal binaries
> I imagine I'm somehow building against a 64-bit version of the zlib
> library, but I'm not sure at what step I'm supposed to do things
> different, or what precisely I'm supposed to do different.
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
More information about the Libraries