After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 345338 - building pygtk-2.9.1/2 fails on gtkmodule.c
building pygtk-2.9.1/2 fails on gtkmodule.c
Status: RESOLVED NOTABUG
Product: pygtk
Classification: Bindings
Component: gtk
2.9.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-19 17:34 UTC by Stef van der Made
Modified: 2006-06-19 17:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Stef van der Made 2006-06-19 17:34:57 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.
Comment 1 Gustavo Carneiro 2006-06-19 17:47:18 UTC
could you attach config.log?
Comment 2 Stef van der Made 2006-06-19 17:58:16 UTC
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