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 101846 - cannot compile gtkmm-2.0.2
cannot compile gtkmm-2.0.2
Status: RESOLVED NOTABUG
Product: gtkmm
Classification: Bindings
Component: build
2.0
Other other
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-12-23 10:10 UTC by Quel Qun
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Quel Qun 2002-12-23 10:10:32 UTC
When trying to build v2.0.2, the process fails on gtk/gtkmm/treeview.cc:

g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"gtkmm\" -Dgtkmm_COMPILATION
-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -I../../glib
-I../../glib -I../../pango -I../../pango -I../../atk -I../../atk
-I../../gdk -I../../gdk -I../../gtk -I../../gtk
-I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/Xft2 -I/usr/include/freetype2
-I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2
-fomit-frame-pointer -pipe -march=athlon -Wall -c treeview.cc  -fPIC -DPIC
-o .libs/treeview.lo
treeview.cc: In static member function `static void
Gtk::TreeView_Class::class_init_function(void*, void*)':
treeview.cc:891: invalid conversion from `void (*)(GtkTreeView*)' to
`gboolean (*)(GtkTreeView*)'
treeview.cc:892: invalid conversion from `void (*)(GtkTreeView*)' to
`gboolean (*)(GtkTreeView*)'
treeview.cc:893: invalid conversion from `void (*)(GtkTreeView*, int)' to
`gboolean (*)(GtkTreeView*, int)'
treeview.cc:894: invalid conversion from `void (*)(GtkTreeView*)' to
`gboolean (*)(GtkTreeView*)'
treeview.cc:895: invalid conversion from `void (*)(GtkTreeView*, int, int,
int)' to `gboolean (*)(GtkTreeView*, int, int, int)'
treeview.cc:896: invalid conversion from `void (*)(GtkTreeView*)' to
`gboolean (*)(GtkTreeView*)'
treeview.cc:897: invalid conversion from `void (*)(GtkTreeView*)' to
`gboolean (*)(GtkTreeView*)'

I am running a cooker (Mandrake) system:

libglib2.0_0-devel-2.1.5-1mdk
libgtk+2.0_0-devel-2.1.5-2mdk
libsigc++1.2-devel-1.2.2-1mdk

Any way I could fix that?
Thanks.
Comment 1 Murray Cumming 2002-12-23 13:48:45 UTC
Unfortunately gtkmm 2.0.x can not build against gtk+ 2.1.x, because
gtk+ broke a small part of its API. Try using the unstable gtkmm
2.1.x, or dowgrading your gtk+.
Comment 2 Quel Qun 2002-12-23 20:07:06 UTC
Unstable, hmm... that sucks ;)
Thanks for answering, I may give it a try.
Would you mind putting a note about that incompatibility on your web
page, that would have saved me some time.