From: Christian M. <Chr...@df...> - 2010-05-28 09:27:40
|
Axel Simon schrieb: [...] >>>> 2. under a x86 Mac with a GTK-2.14 framework I got: >>>> >>>> Linking /tmp/gtk-0.11.025922/gtk-0.11.0/dist/setup/setup ... >>>> >>>> Configuring gtk-0.11.0... >>>> >>>> setup: ./Graphics/UI/Gtk/General/IconTheme.chs: invalid argument >>>> >>>> cabal: Error: some packages failed to install: >>>> >>>> gtk-0.11.0 failed during the building phase. The exception was: >>>> >>> >>> This bug occurs if you're running in anything else but UTF-8 locale. As >>> Andy said, this is fixed in darcs. >> >> Yes, it went through after changing my LANG environment variable, but I >> get a link error that I don't get without gtk and glade: >> >> ld: warning, duplicate dylib /opt/local/lib/libxml2.2.dylib >> ld: warning, duplicate dylib /opt/local/lib/libz.1.dylib >> ld: warning, duplicate dylib /opt/local/lib/libiconv.2.dylib >> ld: warning, duplicate dylib /opt/local/lib/libXrender.1.dylib >> ld: warning, duplicate dylib /opt/local/lib/libX11.6.dylib >> Undefined symbols: >> "_iconv_close", referenced from: >> _h_iconv_close in libHShaskeline-0.6.2.2.a(h_iconv.o) >> _hs_iconv_close in libHSbase-4.2.0.2.a(iconv.o) >> "_iconv_open", referenced from: >> _h_iconv_open in libHShaskeline-0.6.2.2.a(h_iconv.o) >> _hs_iconv_open in libHSbase-4.2.0.2.a(iconv.o) >> "_iconv", referenced from: >> _h_iconv in libHShaskeline-0.6.2.2.a(h_iconv.o) >> _hs_iconv in libHSbase-4.2.0.2.a(iconv.o) >> ld: symbol(s) not found >> collect2: ld returned 1 exit status >> > > This is a dreaded problem on Mac OS. Apple has it's iconv and > fink/MacPorts has it's iconv. And possibly your installer has some > iconv, too. Is it possible to take out /opt from your DYLD_LIBRARY_PATH > search path? /opt/local/lib was not in my DYLD_LIBRARY_PATH, but it was added to the library-dirs field when installing glib and cairo. Setting export PATH=/Library/Frameworks/GTK+.framework/Resources/bin:$PATH so that /Library/Frameworks/GTK+.framework/Resources/bin/pkg-config will be used and reinstalling all gtk2hs packages solved all linking problem (incl. warnings)! Thanks Christian [...] >>>> The GTK-2.14 framework is: >>>> http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/intel-mac/gtk2-framework.dmg >>>> >>>> >>>> and originally came from http://r.research.att.com/ [...] |