From: Eric K. <eri...@gm...> - 2008-02-18 22:59:21
|
Hi shelarcy and list, Any thoughts on this patch? I realise it undoes your partial undo, but maybe new build data from Malcolm might give us a clue where to go. Interestingly, it looks like like --enable-shared is the right way to go, and not --disable-shared like we have traditionally been telling everyone (I don't fully understand why either way). If this is so, all the better, I guess since --enable-shared tends to be default (?) Mon Feb 18 22:52:00 GMT 2008 Eric Kow <eri...@gm...> * (OS X) Skip intermediate step of compiling master.o (revisited!) I'm going to quote some mails from Malcolm Wallace on wxhaskel-users in early 2008-02. First message: > 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. Second message: > A correct build on MacOS 10.4.11 with ghc-6.6 requires that > wxWidgets is configured with --enable-shared, and that this patch: > > (OS X) Check architecture to use intermediate step of compiling > master.o or not. > > be darcs unpulled from your local repo. > > With these tweaks, wxHaskell builds, compiles, and runs the demo > programs. |