GNOME Bugzilla – Bug 345338
building pygtk-2.9.1/2 fails on gtkmodule.c
Last modified: 2006-06-19 17:58:16 UTC
While building garnome-2.15.3 I get the following error: ccache cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/python2.4 -I/usr/test/garnome/include/pygtk-2.0 -I/usr/test/garnome/include/glib-2.0 -I/usr/test/garnome/lib/glib-2.0/include -I/usr/test/garnome/include -I/usr/test/garnome/include/gtk-2.0 -I/usr/test/garnome/lib/gtk-2.0/include -I/usr/test/garnome/include/atk-1.0 -I/usr/test/garnome/include/cairo -I/usr/test/garnome/include/pango-1.0 -I/usr/test/garnome/include -I/usr/test/garnome/include/glib-2.0 -I/usr/test/garnome/lib/glib-2.0/include -I/usr/local/include -I/usr/X11R6/include -g -I/usr/test/garnome/include -L/usr/test/garnome/lib -O2 -pipe -m3dnow -mtune=athlon-tbird -Wall -std=c9x -fno-strict-aliasing -MT _gtk_la-gtkmodule.lo -MD -MP -MF .deps/_gtk_la-gtkmodule.Tpo -c gtkmodule.c -fPIC -DPIC -o .libs/_gtk_la-gtkmodule.o gtkmodule.c:33:22: error: pycairo.h: No such file or directory gtkmodule.c:34: error: syntax error before '*' token gtkmodule.c:34: warning: type defaults to 'int' in declaration of 'Pycairo_CAPI' gtkmodule.c:34: warning: data definition has no type or storage class gtkmodule.c: In function 'init_pycairo': gtkmodule.c:201: error: 'Pycairo_IMPORT' undeclared (first use in this function) gtkmodule.c:201: error: (Each undeclared identifier is reported only once gtkmodule.c:201: error: for each function it appears in.) make[3]: *** [_gtk_la-gtkmodule.lo] Error 1 make[3]: Leaving directory `/usr/download/garnome-2.15.3/bindings/pygtk/work/main.d/pygtk-2.9.2/gtk' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/download/garnome-2.15.3/bindings/pygtk/work/main.d/pygtk-2.9.2' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/download/garnome-2.15.3/bindings/pygtk/work/main.d/pygtk-2.9.2' make: *** [build-work/main.d/pygtk-2.9.2/Makefile] Error 2 I've tried upgrading to pygtk-2.9.2 and installing pycairo-1.0.2 but to no avail.
could you attach config.log?
I just solved the issue by doing a make clean and then make install :-( Sorry to bother you. I guess I needed to install pycairo 1.0.2 or pycairo 1.1.6