Simon Marlow <marlo...@gmail.com> writes: > On 09/04/2010 15:40, Andy Stewart wrote: >> Simon Marlow<marlo...@gmail.com> writes: >> >>> On 09/04/2010 15:28, Andy Stewart wrote: >>>> Simon Marlow<marlo...@gmail.com> writes: >>>> >>>>> On 09/04/2010 15:03, Andy Stewart wrote: >>>>>> Simon Marlow<marlo...@gmail.com> writes: >>>>>> >>>>>>> On 09/04/2010 14:25, Andy Stewart wrote: >>>>>>>> Simon Marlow<marlo...@gmail.com> writes: >>>>>>>> >>>>>>>>> On 09/04/2010 13:38, Andy Stewart wrote: >>>>>>>>>> Hi Simon, >>>>>>>>>> >>>>>>>>>> Simon Marlow<marlo...@gmail.com> writes: >>>>>>>>>> >>>>>>>>>>> On 08/04/2010 17:12, Andy Stewart wrote: >>>>>>>>>>>> Simon Marlow<marlo...@gmail.com> writes: >>>>>>>>>>>> >>>>>>>>>>>>> On 08/04/2010 16:26, Simon Marlow wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> I did 'make clean', re-configured with --disable-split-objs, and >>>>>>>>>>>>>> I still >>>>>>>>>>>>>> see the same error. Any more ideas? >>>>>>>>>>>>>> >>>>>>>>>>>>>> gtk/Graphics/UI/Gtk.hs.pp:295:0: >>>>>>>>>>>>>> Failed to load interface for >>>>>>>>>>>>>> `Graphics.UI.Gtk.General.AccelGroup': >>>>>>>>>>>>>> Use -v to see a list of the files searched for. >>>>>>>>>>>>> >>>>>>>>>>>>> I just noticed there is an earlier error that didn't cause the >>>>>>>>>>>>> build to >>>>>>>>>>>>> stop, but perhaps this is the real problem: >>>>>>>>>>>>> >>>>>>>>>>>>> ./tools/c2hs/c2hsLocal +RTS -RTS -iglib:cairo::gtk >>>>>>>>>>>>> --precomp=gtk/gtk.precomp -o gtk/Graphics/UI/Gtk/Entry/Entry.hs >>>>>>>>>>>>> gtk/Graphics/UI/Gtk/Entry/Entry.chs >>>>>>>>>>>>> c2hsLocal: Errors during expansion of binding hooks: >>>>>>>>>>>>> >>>>>>>>>>>>> gtk/Graphics/UI/Gtk/Entry/Entry.chs.pp:255: (column 8) [ERROR] >>>>>>>>>>>>> >>> Unknown identifier! >>>>>>>>>>>>> Cannot find a definition for `EntryIconPosition' in the >>>>>>>>>>>>> header file. >>>>>>>>>>>> Hmm, it's a problem Enum `IconPosition` that never wrap >>>>>>>>>>>> `#if GTK_CHECK_VERSION(2,16,0) ... #endif` >>>>>>>>>>>> >>>>>>>>>>>> Because Gtk+ Reference manual haven't add version information for >>>>>>>>>>>> Enum, >>>>>>>>>>>> so it's hard to find this error when i update APIs. >>>>>>>>>>>> >>>>>>>>>>>> I have push new patch, can you test again? >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> There are more, it seems: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> ./tools/c2hs/c2hsLocal +RTS -RTS -iglib:cairo::gtk >>>>>>>>>>> --precomp=gtk/gtk.precomp -o >>>>>>>>>>> gtk/Graphics/UI/Gtk/General/Selection.hs >>>>>>>>>>> gtk/Graphics/UI/Gtk/General/Selection.chs >>>>>>>>>>> c2hsLocal: Errors during expansion of binding hooks: >>>>>>>>>>> >>>>>>>>>>> gtk/Graphics/UI/Gtk/General/Selection.chs.pp:510: (column 32) >>>>>>>>>>> [ERROR] >>>>>>>>>>> >>> Unknown identifier! >>>>>>>>>>> Cannot find a definition for `selection_data_get_selection' >>>>>>>>>>> in the header file. >>>>>>>>>>> gtk/Graphics/UI/Gtk/General/Selection.chs.pp:517: (column 29) >>>>>>>>>>> [ERROR] >>>>>>>>>>> >>> Unknown identifier! >>>>>>>>>>> Cannot find a definition for `selection_data_get_data' in >>>>>>>>>>> the header file. >>>>>>>>>>> gtk/Graphics/UI/Gtk/General/Selection.chs.pp:524: (column 32) >>>>>>>>>>> [ERROR] >>>>>>>>>>> >>> Unknown identifier! >>>>>>>>>>> Cannot find a definition for `selection_data_get_data_type' >>>>>>>>>>> in the header file. >>>>>>>>>>> gtk/Graphics/UI/Gtk/General/Selection.chs.pp:530: (column 46) >>>>>>>>>>> [ERROR] >>>>>>>>>>> >>> Unknown identifier! >>>>>>>>>>> Cannot find a definition for `selection_data_get_display' in >>>>>>>>>>> the header file. >>>>>>>>>>> gtk/Graphics/UI/Gtk/General/Selection.chs.pp:536: (column 40) >>>>>>>>>>> [ERROR] >>>>>>>>>>> >>> Unknown identifier! >>>>>>>>>>> Cannot find a definition for `selection_data_get_format' in >>>>>>>>>>> the header file. >>>>>>>>>> I have check Gtk+ Reference Manual, and add version tag in source >>>>>>>>>> code. >>>>>>>>>> All new APIs since 2.16 (include 2.18) should be okay. >>>>>>>>>> But i'm not sure, i haven't old gtk+ library for test. >>>>>>>>>> >>>>>>>>>> Please tell me if you still have problem. >>>>>>>>> >>>>>>>>> Latest error: >>>>>>>>> >>>>>>>>> ./tools/c2hs/c2hsLocal +RTS -RTS -iglib:cairo::gtk >>>>>>>>> --precomp=gtk/gtk.precomp -o >>>>>>>>> gtk/Graphics/UI/Gtk/General/Enums.hs >>>>>>>>> gtk/Graphics/UI/Gtk/General/Enums.chs >>>>>>>>> c2hsLocal: Errors during expansion of binding hooks: >>>>>>>>> >>>>>>>>> gtk/Graphics/UI/Gtk/General/Enums.chs.pp:106: (column 8) [ERROR] >>>>>>>>> >>> Unknown identifier! >>>>>>>>> Cannot find a definition for `ArrowPlacement' in the header >>>>>>>>> file. >>>>>>>> I push new patch now, please test again. >>>>>>>> >>>>>>>>> >>>>>>>>>> BTW, you should update your gtk+ library, really old. >>>>>>>>> >>>>>>>>> Maybe, but I'd probably have to update the whole OS on this machine >>>>>>>>> and that would be quite >>>>>>>>> disruptive right now. Thanks for your help so far anyway! >>>>>>>> I see. >>>>>>>> >>>>>>>> I'm so sorry for inconvenience. >>>>>>>> Because ApiGen don't generate version information for Enum, and so many >>>>>>>> old code is written by hand, so it's hard to merge patch when udpate >>>>>>>> APIs. >>>>>>>> >>>>>>>> Please report if have any problem. >>>>>>> >>>>>>> Next one: >>>>>>> >>>>>>> c2hsLocal: Errors during expansion of binding hooks: >>>>>>> >>>>>>> gtk/Graphics/UI/Gtk/General/IconInfo.chs.pp:77: (column 20) [ERROR] >>>>>>> >>> Unknown identifier! >>>>>>> Cannot find a definition for `gtk_icon_info_new_for_pixbuf' in the >>>>>>> header file. >>>>>> I notify this function define in gtk+ 2.14 >>>>>> So your gtk+ library lower than Gtk+ 2.14 ? >>>>>> >>>>>> Which your gtk+ version ? >>>>>> I need confirm this, otherwise i'm waste your time. >>>>> >>>>> I have 2.12. I can see this is going to take a long time, so instead >>>>> I'll try to make the >>> changes >>>>> myself and send you a patch. Once again, thanks for your time. >>>> Okay, i will check all 2.14 APIs, i will reply when i finish patch. >>> >>> Don't worry, I'm fixing it. >> Please don't fixing yourself. >> Those errors are all my fault, i must fix it now. >> I can fix those in 20 minutes. >> >>> >>> BTW, while doing this I found: >>> >>> drawWffscreenWindowGetPixmap :: DrawWindowClass self => self -> IO Pixmap >>> >>> and a few other "Wffscreen" functions, which look wrong, and they aren't >>> exported. >> Aha, it's looks typo, thanks for your report. I fix those now. >> >> So please wait my patch, otherwise we do duplicate work. > > Well, there are a few errors you probably won't find without actually > compiling against 2.12, so > here's my patch anyway. Okay, i will merge your patch after i finish my patch.
> > Now I have a different problem: > > /home/simonmar/fp/bin/x86_64-unknown-linux/ghc-6.12.1.20100330 +RTS -RTS -c > soegtk/Graphics/SOE/Gtk.hs -o soegtk/Graphics/SOE/Gtk.o -O -isoegtk > -package-conf > package.conf.inplace -hide-all-packages -ignore-package soegtk -package > base-4.2.0.1 -package > old-time-1.0.0.4 -package mtl-1.1.0.2 -package glib-0.10.1 -package > gtk-0.10.1 -package cairo-0.10.1 > -package-name soegtk-0.10.1 '-#include<gtk/hsgtk.h>' -I/usr/include/glib-2.0 > -I/usr/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 > -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 > -I/usr/lib64/gtk-2.0/include > -I/usr/include/cairo -I/usr/include/atk-1.0 -I. > <command line>: cannot satisfy -package gtk-0.10.1: > gtk-0.10.1 is unusable due to missing or recursive dependencies: > gio-0.10.1 > (use -v for more information) > make[1]: *** [soegtk/Graphics/SOE/Gtk.o] Error 1 > > I presume I need to build gio, and it's not being built because I don't have > the development library > installed? gio development library include in gtk+ development library, example in Debain base system, is package libgtk2.0-dev If resuly is: "gio yes" when you ./configure, gio development should be installed. But you still got above problem, maybe it's a new bug for dependency. I will finish patch very soon, then you compile again, we try to fix it if you still got above error. Cheers, -- Andy ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel