the actual message is: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DHAVE_GNUC_VISIBILITY -DEXO_API_SUBJECT_TO_CHANGE -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fno-strict-aliasing -I/usr/include/python2.4 -march=athlon-xp -O2 -pipe -Wno-error -Wno-error -Wno-error -O0 -g3 -Werror -Wall -MT _exo_la-exomodule.lo -MD -MP -MF .deps/_exo_la-exomodule.Tpo -c exomodule.c -fPIC -DPIC -o .libs/_exo_la-exomodule.o exomodule.c:35: error: expected ')' before '->' token exomodule.c:36: error: expected ')' before '->' token exomodule.c:46: error: expected ')' before '->' token exomodule.c:61: error: expected ')' before '->' token make[4]: *** [_exo_la-exomodule.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/libexo-9999/work/libexo/python' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/libexo-9999/work/libexo/python' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/libexo-9999/work/libexo/python' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libexo-9999/work/libexo' make: *** [all] Error 2 now looking at the source around the lines 36-37 : GtkTreePath *pygtk_tree_path_from_pyobject (PyObject *object) G_GNUC_INTERNAL; PyObject *pygtk_tree_path_to_pyobject (GtkTreePath *path) G_GNUC_INTERNAL; extern PyMethodDef exo_functions[]; /* Unfortunately pygtk doesn't export the following functions, * that are required for the IconView, so we have to duplicate * them here. */ PyObject* pygtk_tree_path_to_pyobject (GtkTreePath *path) { .... now from pygtk.h (2.9.0): /* public functions */ #define pygdk_rectangle_from_pyobject (_PyGtk_API->rectangle_from_pyobject) #define pygtk_tree_path_to_pyobject (_PyGtk_API->tree_path_to_pyobject) #define pygtk_tree_path_from_pyobject (_PyGtk_API->tree_path_from_pyobject) So I'll attach a patch (although I'm not sure how correct it is) to ifndef this parts of code to avoid the redefinition
Created attachment 551 libexo-pygtk29.patch well it works here, but I'm not that sure if it is fully correct
Created attachment 552 How about this one? How about this patch? It simply checks whether the macros are already defined.
Works fine here, thanks.
Committed with revision 21703. 2006-05-16 Benedikt Meurer <benny@xfce.org> * python/: Update python bindings to support compilation with PyGTK 2.9.0 and newer. Bug #1815.