From: Malcolm W. <Mal...@cs...> - 2008-02-07 15:03:23
|
I'm attempting to install wxHaskell from the darcs repo at darcs.haskell.org, under ghc-6.6. on MacOS 10.4.11, with wxMac-2.6.4. The compilation of wxHaskell seems to proceed OK until the link stage: g++ -r -keep_private_externs -nostdlib -o out/wxc/master.o .... which failed because there is no -lstdc++-static on my machine. I found the place in the makefile to replace -lstdc++-static with the dynamic -lstdc++, and compilation proceeds further, but not much: g++ -dynamiclib -install_name /usr/local/wxhaskell/lib/libwxc-mac2.6.4-0.10.1.dylib -undefined suppress -flat_namespace -o out/wxc/libwxc-mac2.6.4-0.10.1.dylib out/wxc/master.o -lwx_macu_gl-2.6 -L/usr/local/lib -framework QuickTime -framework IOKit -framework Carbon -framework Cocoa -framework System -lwx_macu_media-2.6 -lwx_macu-2.6 ld: out/wxc/master.o undefined symbol 12387 (__ZTI10wxListBase) can't be a weak definition /usr/bin/libtool: internal link edit command failed The offending symbol __ZTI10wxListBase looks like it might be a z-encoded symbol from Haskell-land, but I'm not sure how to proceed. Regards, Malcolm |