Problem building pygtk-2.3.92

J

j_mckitrick

Hi,

I'm trying to build the latest (beta) pygtk 2.3.92 on a FreeBSD
system.
First, I got these warnings. Are these a problem?

Could not write method GtkAccelGroup.activate: No ArgType for 'GQuark'
Could not write method GtkAccelGroup.find: No ArgType for
'GtkAccelKey*'
Could not write method GtkAccelGroup.query: No ArgType for 'guint*'
Could not write method GtkAccelLabel.set_accel_closure: No ArgType for
'GClosure*'
Could not write method GtkActionGroup.set_translate_func: No ArgType
for 'GtkTranslateFunc'
Could not write method GtkIMContextSimple.add_table: No ArgType for
'guint16*'
Could not write method GtkSettings.install_property: No ArgType for
'GParamSpec*'
Could not write method GtkSettings.install_property_parser: No ArgType
for 'GParamSpec*'
Could not write method GtkSettings.set_property_value: No ArgType for
'const-GtkSettingsValue*'
Could not write method GtkTreeSelection.get_user_data: No ArgType for
'gpointer'
Could not write method GtkTreeStore.set_column_types: No ArgType for
'GType*'
Could not write method GtkTreeView.set_column_drag_function: No
ArgType for 'GtkTreeViewColumnDropFunc'
Could not write method GtkTreeView.get_search_equal_func: No ArgType
for 'GtkTreeViewSearchEqualFunc'
Could not write method GtkTreeView.set_search_equal_func: No ArgType
for 'GtkTreeViewSearchEqualFunc'
Could not write method GtkTreeView.set_destroy_count_func: No ArgType
for 'GtkTreeDestroyCountFunc'
Could not write method GtkWidget.list_accel_closures: No ArgType for
'GList*'
Could not write method GtkWidget.region_intersect: No ArgType for
'GdkRegion*'
Could not write method GtkWidget.style_get: varargs functions not
supported
Could not write method GtkCellLayout.set_cell_data_func: No ArgType
for 'GtkCellLayoutDataFunc'
Could not write function accel_group_from_accel_closure: No ArgType
for 'GClosure*'
Could not write function accel_map_foreach: No ArgType for 'gpointer'
Could not write function accel_map_load_scanner: No ArgType for
'GScanner*'
Could not write function accel_map_foreach_unfiltered: No ArgType for
'gpointer'
Could not write function accel_map_get: No ArgType for 'GtkAccelMap*'
Could not write function binding_entry_clear: No ArgType for
'GtkBindingSet*'
Could not write function gtk_binding_entry_add_signall: No ArgType for
'GtkBindingSet*'
Could not write function binding_entry_add_signall: No ArgType for
'GtkBindingSet*'
Could not write function binding_parse_binding: No ArgType for
'GScanner*'
Could not write function color_selection_set_change_palette_hook: No
ArgType for 'GtkColorSelectionChangePaletteFunc'
Could not write function
color_selection_set_change_palette_with_screen_hook: No ArgType for
'GtkColorSelectionChangePaletteWithScreenFunc'
Could not write function file_paths_sort: No ArgType for 'GSList*'
Could not write function item_factory_popup_data_from_widget: No
ArgType for 'gpointer'
Could not write function init_add: No ArgType for 'GtkFunction'
Could not write function get_current_event_state: No ArgType for
'GdkModifierType*'
Could not write function stock_add_static: No ArgType for
'const-GtkStockItem*'


But here is the build error:

source='gdk.c' object='_gtk_la-gdk.lo' libtool=yes
depfile='.deps/_gtk_la-gdk.Plo' tmpdepfile='.deps/_gtk_la-gdk.TPlo'
depmode=gcc /bin/sh ../depcomp /bin/sh ../libtool --mode=compile gcc
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include/python2.3
-D_THREAD_SAFE -I/usr/local/include/atk-1.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0
-I/usr/local/include/freetype2 -I/usr/local/include -g -O2 -Wall
-std=c9x -fno-strict-aliasing -c -o _gtk_la-gdk.lo `test -f 'gdk.c' ||
echo './'`gdk.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include/python2.3
-D_THREAD_SAFE -I/usr/local/include/atk-1.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0
-I/usr/local/include/freetype2 -I/usr/local/include -g -O2 -Wall
-std=c9x -fno-strict-aliasing -c gdk.c -Wp,-MD,.deps/_gtk_la-gdk.TPlo
-fPIC -DPIC -o .libs/_gtk_la-gdk.o
gdk.override: In function `_wrap_gdk_keymap_translate_keyboard_state':
gdk.override:3968: syntax error before `state'
gdk.override:3973: `py_state' undeclared (first use in this function)
gdk.override:3973: (Each undeclared identifier is reported only once
gdk.override:3973: for each function it appears in.)
gdk.override:3978: `state' undeclared (first use in this function)
gdk.override:3984: `modifiers' undeclared (first use in this function)
*** Error code 1

Stop in /usr/home/jcm/python/pygtk-2.3.92/gtk.
*** Error code 1

Stop in /usr/home/jcm/python/pygtk-2.3.92.
*** Error code 1

Stop in /usr/home/jcm/python/pygtk-2.3.92.
root:~/python/pygtk-2.3.92#


Can I fix this??
 
J

j_mckitrick

Do you have latest gtk+ , glib, pango and family ?

I do. It turns out there was an extra semicolon that tripped up gcc
2.95.3. I have it working now.

thanks,
jonathon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,955
Messages
2,570,117
Members
46,705
Latest member
v_darius

Latest Threads

Top