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.

Cheers,

  -- Andy


------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to