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. HTH -~nwn On Sun, Nov 29, 2009 at 6:01 AM, Antoine Latter <[email protected]> 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 > anyway. > > 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. > > Thanks, > Antoine > _______________________________________________ > Glasgow-haskell-users mailing list > [email protected] > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users > _______________________________________________ Glasgow-haskell-users mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
