From: Jan C. <ja...@in...> - 2007-03-20 13:12:01
|
Am 20.03.2007 um 11:46 schrieb Duncan Coutts: > On Tue, 2007-03-20 at 10:07 +0000, Axel Simon wrote: >> On Tue, 2007-03-20 at 09:22 +0100, Jan Christiansen wrote: > >>> -> what are these parameters supposed to do? >> >> We get them from the pkg-config which tells us with what flags we're >> supposed to link against the various libraries. >> >> The -mt option says something about threading. The only package where >> threading creeps in on my Sun box is gconf: >> >> So could you send us your output of pkg-config --libs gconf-2.0 ? -mt -lgconf-2 -lORBit-2 -lgobject-2.0 -lresolv -lnsl -lsocket -lm - lgmodule-2.0 -lgthread-2.0 -lglib-2.0 I have replaced all occurrences of -mt in the Makefile by -threads. I still get ghc-6.4.1: can't find file `gtk/Graphics/UI/Gtk/Embedding/Embedding.hs' although the "invalid option" error vanished. It looks like the call of /home/haskell/bin/hsc2hs works properly but generates no .hs file??? > But this was compiling something in the gtk package, so we want to > look > for what pkg-config says about gtk: > > pkg-config --cflags --libs gtk+-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/ atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/ include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/ lib/glib-2.0/include -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 - lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 - lgobject-2.0 -lgmodule-2.0 -lglib-2.0 > Jan, could you send the output of the above command? My suspicion is > that this flag is actually coming in via the gthread package which we > now use. So try this one too: > > pkg-config --cflags --libs gthread-2.0 -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -mt - lgthread-2.0 -lglib-2.0 It looks like you are correct. > So in summary probably what is going on is that one of these pkg- > config > files contains flags that your current gcc doesn't grok. So there'd be > several ways to fix that: > * use a later gcc, some 3.x version would probably do I would like to try to avoid this. > * fix the pkg-config .pc file (that'd need write access which > probably means you'd have to be root) I could ask for this. > * override the flags we get from pkg-config by setting the > GTK_LIBS environment variable before running ./configure. > See ./configure --help for the full list of vars you can > override. Does this have the same affect as my search and replace in the Makefile? |