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 344957 - broken 2.9.1 build
broken 2.9.1 build
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: general
2.9.x
Other Linux
: Normal major
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-15 07:41 UTC by Fryderyk Dziarmagowski
Modified: 2006-06-15 12:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
config.h (2.25 KB, text/plain)
2006-06-15 11:07 UTC, Fryderyk Dziarmagowski
Details
pycairo.h (6.85 KB, text/plain)
2006-06-15 11:09 UTC, Fryderyk Dziarmagowski
Details

Description Fryderyk Dziarmagowski 2006-06-15 07:41:07 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}
Comment 1 Gustavo Carneiro 2006-06-15 10:34:47 UTC
Weird; I tested build with gtk+ 2.9.3 and it worked.
Comment 2 Fryderyk Dziarmagowski 2006-06-15 10:55:11 UTC
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
Comment 3 Gustavo Carneiro 2006-06-15 10:58:07 UTC
Hm.. could you upload your config.h and $includedir/pycairo/pycairo.h?
Comment 4 Fryderyk Dziarmagowski 2006-06-15 11:07:41 UTC
Created attachment 67403 [details]
config.h
Comment 5 Fryderyk Dziarmagowski 2006-06-15 11:09:18 UTC
Created attachment 67404 [details]
pycairo.h
Comment 6 Gustavo Carneiro 2006-06-15 11:21:41 UTC
I see... so the pycairo API break happened in an earlier version than I thought...
Comment 7 Fryderyk Dziarmagowski 2006-06-15 11:29:17 UTC
well, that's 1.1.6, the last one available