GNOME Bugzilla – Bug 344957
broken 2.9.1 build
Last modified: 2006-06-15 12:21:05 UTC
fails with: if /bin/sh ../libtool --tag=CC --mode=compile i686-pld-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pycairo -I/usr/include/cairo -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/freetype2 -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -ggdb -Wall -std=c9x -MT _gtk_la-gtk.lo -MD -MP -MF ".deps/_gtk_la-gtk.Tpo" -c -o _gtk_la-gtk.lo `test -f 'gtk.c' || echo './'`gtk.c; \ then mv -f ".deps/_gtk_la-gtk.Tpo" ".deps/_gtk_la-gtk.Plo"; else rm -f ".deps/_gtk_la-gtk.Tpo"; exit 1; fi i686-pld-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pycairo -I/usr/include/cairo -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/freetype2 -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -ggdb -Wall -std=c9x -MT _gtk_la-gtk.lo -MD -MP -MF .deps/_gtk_la-gtk.Tpo -c gtk.c -fPIC -DPIC -o .libs/_gtk_la-gtk.o ./gtk.override: In function 'clipboard_request_rich_text_cb': ./gtk.override:6899: warning: pointer targets in passing argument 1 of 'PyString_FromString' differ in signedness gtk.c: In function '_wrap_gtk_entry_get_inner_border': gtk.c:37773: warning: assignment discards qualifiers from pointer target type gtk.c: In function '_wrap_gtk_tree_view_get_grid_lines': gtk.c:82633: warning: implicit declaration of function 'gtk_tree_view_get_grid_lines' gtk.c:82635: error: 'GTK_TYPE_TREE_VIEW_GRID_LINES' undeclared (first use in this function) gtk.c:82635: error: (Each undeclared identifier is reported only once gtk.c:82635: error: for each function it appears in.) gtk.c: In function '_wrap_gtk_tree_view_set_grid_lines': gtk.c:82642: error: 'GtkTreeViewGridLines' undeclared (first use in this function) gtk.c:82642: error: expected ';' before 'grid_lines' gtk.c:82647: error: 'GTK_TYPE_TREE_VIEW_GRID_LINES' undeclared (first use in this function) gtk.c:82647: error: 'grid_lines' undeclared (first use in this function) gtk.c:82650: warning: implicit declaration of function 'gtk_tree_view_set_grid_lines' gtk.c: In function '_wrap_gtk_tree_view_get_enable_tree_lines': gtk.c:82662: warning: implicit declaration of function 'gtk_tree_view_get_enable_tree_lines' gtk.c: In function '_wrap_gtk_tree_view_set_enable_tree_lines': gtk.c:82677: warning: implicit declaration of function 'gtk_tree_view_set_enable_tree_lines' gtk.c: In function '_wrap_gtk_print_operation_set_export_filename': gtk.c:88306: warning: implicit declaration of function 'gtk_print_operation_set_export_filename' gtk.c: In function '_wrap_gtk_print_operation_set_allow_async': gtk.c:88351: warning: implicit declaration of function 'gtk_print_operation_set_allow_async' gtk.c: In function '_wrap_gtk_print_operation_run': gtk.c:88380: error: 'GtkPrintOperationAction' undeclared (first use in this function) gtk.c:88380: error: expected ';' before 'action' gtk.c:88385: error: 'GTK_TYPE_PRINT_OPERATION_ACTION' undeclared (first use in this function) gtk.c:88385: error: 'action' undeclared (first use in this function) gtk.c:88396: warning: passing argument 3 of 'gtk_print_operation_run' from incompatible pointer type gtk.c:88396: error: too many arguments to function 'gtk_print_operation_run' gtk.c: In function '_wrap_gtk_print_operation_get_error': gtk.c:88409: warning: implicit declaration of function 'gtk_print_operation_get_error' gtk.c: In function 'pygtk_add_constants': gtk.c:104184: error: 'GTK_TYPE_TREE_VIEW_GRID_LINES' undeclared (first use in this function) gtk.c:104187: error: 'GTK_TYPE_PRINT_OPERATION_ACTION' undeclared (first use in this function) make[2]: *** [_gtk_la-gtk.lo] Error 1 make[2]: Leaving directory `/home/users/fritz/rpm/BUILD/pygtk-2.9.1/gtk' tested with gtk+ 2.9.{2,3}
Weird; I tested build with gtk+ 2.9.3 and it worked.
my fault, I forgot to upgrade gtk+ after build. Now with fresh 2.9.3 it still fails to build: i686-pld-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -ggdb -Wall -std=c9x -MT unixprint_la-gtkunixprint.lo -MD -MP -MF .deps/unixprint_la-gtkunixprint.Tpo -c gtkunixprint.c -fPIC -DPIC -o .libs/unixprint_la-gtkunixprint.o ./gtkunixprint.override: In function '_wrap_gtk_print_job_get_surface': ./gtkunixprint.override:111: error: too many arguments to function 'Pycairo_CAPI->Surface_FromSurface' make[2]: *** [unixprint_la-gtkunixprint.lo] Error 1 make[2]: Leaving directory `/home/users/fritz/rpm/BUILD/pygtk-2.9.1/gtk' make[1]: *** [all-recursive] Error 1
Hm.. could you upload your config.h and $includedir/pycairo/pycairo.h?
Created attachment 67403 [details] config.h
Created attachment 67404 [details] pycairo.h
I see... so the pycairo API break happened in an earlier version than I thought...
well, that's 1.1.6, the last one available
Fixed in CVS: http://cvs.gnome.org/viewcvs/gnome-python/pygtk/gtk/gtkunixprint.override?r1=1.3&r2=1.4