Can you not do a diff between the old Makefile.am and your new  
Makefile.am and see if you accidently changed things that affect glext?

Cheers,
Axel.

On Dec 9, 2009, at 20:07, Andy Stewart wrote:

> Axel Simon <axel.si...@ens.fr> writes:
>
>> On Dec 8, 2009, at 17:15, Andy Stewart wrote:
>>>
>>> But i got another error:
>>> ------------------------------> error start  
>>> <------------------------------
>>> /usr/bin/ld -r -x -o HSdbus.o dbus/System/DBus/GConnection.o dbus/
>>> System/DBus/GError.o dbus/System/DBus/GMessage.o dbus/System/DBus/
>>> GMethod.o dbus/System/DBus/GProxy.o dbus/System/DBus.o dbus/System/
>>> DBus/Types.o  dbus/System/DBus_stub.o
>>> /usr/bin/ld: dbus/System/DBus_stub.o: No such file: No such file  
>>> or directory
>>> ------------------------------> error end    
>>> <------------------------------
>>>
>>> With above error, looks i don't need DBus_stub.o file.
>>>
>>> Infact, i don't understand why need *_stub.o file, and when time  
>>> need
>>> *_stub.o file (such as `vte/Graphics/UI/Gtk/Vte/Vte_stub.o`)?
>>>
>>> If don't use *_stub.o file, just remove
>>>
>>> libHSdbus_a_LIBADD                  =               \
>>>     dbus/System/DBus_stub.o
>>>
>>> is okay?
>>
>> Yes. A _stub.o file is only created by ghc if the file contains a
>>
>> foreign import "wrapper"
>>
>> statement. In particular, you have to make sure that such a  
>> declaration is not between #ifdef
>> ... #endif since then one gets a  link error if the condition does  
>> not hold.
> Oh, I see, Thanks!
>
> Now haven't occur DBus error when `make`, but i got another error:
> ------------------------------> error start  
> <------------------------------
> gtkglext/Graphics/UI/Gtk/OpenGL.hs:44:0:
>     Failed to load interface for `Graphics.UI.Gtk.OpenGL.Config':
>       Use -v to see a list of the files searched for.
> ------------------------------> error end    
> <------------------------------
>
> I suppose some dependencies haven't updated yet, so i build a new  
> gtk2hs
> darcs directory to `make` again, still have this error.
>
> And this error just occur when i add my new patch, everything is  
> okay if
> i don't add new patch (I never touch any files under `gtkglext`)
>
> I have do `make distclean && make gtkglext/Graphics/UI/Gtk/OpenGL/ 
> Config.chs` for test,
> below is output:
>
> ------------------------------> output start  
> <------------------------------
> ./tools/c2hs/c2hsLocal +RTS -RTS -C-pthread -C-I/usr/include/ 
> glib-2.0 -C-I/usr/lib/glib-2.0/include -C-D_REENTRANT -C-I/usr/ 
> include/pango-1.0 -C-I/usr/include/glib-2.0 -C-I/usr/lib/glib-2.0/ 
> include -C-I/usr/include/gtk-2.0 -C-I/usr/lib/gtk-2.0/include -C-I/ 
> usr/include/cairo -C-I/usr/include/pixman-1 -C-I/usr/include/ 
> freetype2 -C-I/usr/include/directfb -C-I/usr/include/libpng12 -C-I/ 
> usr/include/atk-1.0 -C-D_REENTRANT -C-I/usr/include/gtkglext-1.0 -C- 
> I/usr/lib/gtkglext-1.0/include -C-I/usr/include/gtk-2.0 -C-I/usr/ 
> lib/gtk-2.0/include -C-I/usr/include/pango-1.0 -C-I/usr/include/ 
> cairo -C-I/usr/include/pixman-1 -C-I/usr/include/freetype2 -C-I/usr/ 
> include/directfb -C-I/usr/include/libpng12 -C-I/usr/include/ 
> glib-2.0 -C-I/usr/lib/glib-2.0/include -C-I/usr/include/atk-1.0 -- 
> cppopts='-include "gtk2hs-config.h"' --precomp=gtkglext/ 
> gtkglext.precomp
> Supply the header file followed by the binding file.
> The header file can be omitted if it is supplied in the binding file.
> The binding file can be omitted if the --precomp flag is given.
> Try the option `--help' on its own for more information.
> make: “gtkglext/Graphics/UI/Gtk/OpenGL/Config.chs” is newest.
> ------------------------------> output end    
> <------------------------------
>
> Looks Config.chs haven't any patch.
>
> Perhaps something wrong in Makefile.am, I have check my patch,  
> haven't found any problem.
> Below is patch file for DBus-Glib, can you help me check it?
>
> <DBusPatch.txt.zip>
> Thanks,
>
>   -- Andy


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to