On 5/3/10 23:46, Jason Dagit wrote:
This happened to a co-worker on her mac.  We used gdb to track the bus
errors to the network library.  Once we tracked it down to there, we did
some combination of deleting $HOME/.cabal, building/installing the
latest version of Network and then relinking cabal-install.  I've also
seen these errors with some versions of zlib (but, I think that was on
an old Solaris box that had lots of issues).

I just updated to the newest version and had problems with zlib:

ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture
(full error below)

The solution was:
# port install zlib +universal

I hope this is of use to someone. :-)

Martijn.



Full error:
(...)
[39 of 40] Compiling Distribution.Client.Install ( Distribution/Client/Install.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Install.o ) [40 of 40] Compiling Main ( Main.hs, dist/build/cabal/cabal-tmp/Main.o )
Linking dist/build/cabal/cabal ...
ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture
Undefined symbols:
  "_deflateEnd", referenced from:
      _deflateEnd$non_lazy_ptr in libHSzlib-0.5.2.0.a(Stream.o)
  "_inflateEnd", referenced from:
      _inflateEnd$non_lazy_ptr in libHSzlib-0.5.2.0.a(Stream.o)
  "_inflateInit2_", referenced from:
      _s4ug_info in libHSzlib-0.5.2.0.a(Stream.o)
  "_deflate", referenced from:
      _s4lq_info in libHSzlib-0.5.2.0.a(Stream.o)
  "_deflateInit2_", referenced from:
      _s4z5_info in libHSzlib-0.5.2.0.a(Stream.o)
  "_zlibVersion", referenced from:
      _r336_info in libHSzlib-0.5.2.0.a(Stream.o)
  "_inflate", referenced from:
      _s4om_info in libHSzlib-0.5.2.0.a(Stream.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
cabal: Error: some packages failed to install:
cabal-install-0.8.2 failed during the building phase. The exception was:
exit: ExitFailure 1
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to