[Gtk-sharp-list] Can't compile gtk-sharp 0.15 on Debian 3.0

Stefan Saring stefan@saring.de
Sat, 17 Jan 2004 09:46:59 +0100


Hi,

since version 0.15 I'm not able to compile gtk-sharp anymore (was fine
until 0.14). The compilation aborts with these messages:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -pthread
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gtk-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/X11R6/include
-I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0
-I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0
-I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include
-I/usr/include/linc-1.0 -I/usr/include/bonobo-activation-2.0
-I/usr/include/libxml2 -I/usr/include/libglade-2.0
-I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/librsvg-2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
-I/usr/include/libart-2.0 -I/usr/include/libxml2
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/libgsf-1 -DORBIT2=1 -pthread
-I/usr/include/libgtkhtml-3.0 -I/usr/include/libgnomeui-2.0
-I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2
-I/usr/include/libglade-2.0 -I/usr/include/gal-2.0
-I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0
-I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2
-I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0
-I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/linc-1.0
-I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/X11R6/include -I/usr/include/libxml2 -I..
-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow
-Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -c type.c
-Wp,-MD,.deps/type.TPlo  -fPIC -DPIC -o .libs/type.lo
type.c: In function `gtksharp_override_virtual_method':
type.c:76: parse error before `id'
type.c:78: `id' undeclared (first use in this function)
type.c:78: (Each undeclared identifier is reported only once
type.c:78: for each function it appears in.)
type.c:78: `closure' undeclared (first use in this function)
make[1]: *** [type.lo] Fehler 1
make[1]: Leaving directory `/home/eddie/gtk-sharp-0.15/glue'
make: *** [native] Fehler 1

After uncommenting these two lines (lines 74 and 75) in glue/type.c:

if (g_type_class_peek (g_type) == NULL)
    g_type_class_ref (g_type);

the compilation works fine again. So it seems it doesn't find these two
methods in the header files ...

I have the version glib 2.2.3 with all header files and also the
appropriate version of gtk, atk, pango, ... installed. Could it be a
problem with the old gcc 2.95.4 compiler, because it works fine on my
Fedora Core1 box ?

Does anyone have an idea why this is going wrong ?

Bye,
Stefan