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 126324 - gtkmm 2.2 doesn't build with GTK+ 2.3
gtkmm 2.2 doesn't build with GTK+ 2.3
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
2.2
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-11-05 23:31 UTC by Pierre
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2



Description Pierre 2003-11-05 23:31:50 UTC
gmake[5]: Entering directory `/tmp/gtkmm-2.2.8/gdk/gdkmm'
if /bin/sh ../../libtool --mode=compile g++ -s -DHAVE_CONFIG_H
-DG_LOG_DOMAIN=\"gdkmm\" -Dgdkmm_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/local/lib/sigc++-1.2/include
-I/usr/local/include/sigc++-1.2 -I/usr/local/include/gtk-2.0
-I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0
-I/usr/local/include -I/usr/X11R6/include -I/usr/local/include/pango-1.0
-I/usr/local/include/freetype2 -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -pthread -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include  -I/usr/local/BerkeleyDB.4.1/include  -O3
-march=i686 -Wall -MT pixbuf.lo -MD -MP -MF ".deps/pixbuf.Tpo" \
  -c -o pixbuf.lo `test -f 'pixbuf.cc' || echo './'`pixbuf.cc; \
then mv -f ".deps/pixbuf.Tpo" ".deps/pixbuf.Plo"; \
else rm -f ".deps/pixbuf.Tpo"; exit 1; \
fi
 g++ -s -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"gdkmm\" -Dgdkmm_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/local/lib/sigc++-1.2/include -I/usr/local/include/sigc++-1.2
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/atk-1.0 -I/usr/local/include -I/usr/X11R6/include
-I/usr/local/include/pango-1.0 -I/usr/local/include/freetype2
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/BerkeleyDB.4.1/include -O3 -march=i686 -Wall -MT pixbuf.lo -MD
-MP -MF .deps/pixbuf.Tpo -c pixbuf.cc  -fPIC -DPIC -o .libs/pixbuf.o
pixbuf.cc: In member function `void Gdk::Pixbuf::render_to_drawable(const 
   Glib::RefPtr<Gdk::Drawable>&, const Glib::RefPtr<Gdk::GC>&, int, int, int, 
   int, int, int, Gdk::RgbDither, int, int)':
pixbuf.cc:435: error: `gdk_pixbuf_render_to_drawable' undeclared (first use 
   this function)
pixbuf.cc:435: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
pixbuf.cc: In member function `void
Gdk::Pixbuf::render_to_drawable_alpha(const 
   Glib::RefPtr<Gdk::Drawable>&, int, int, int, int, int, int, 
   Gdk::PixbufAlphaMode, int, Gdk::RgbDither, int, int)':
pixbuf.cc:440: error: `gdk_pixbuf_render_to_drawable_alpha' undeclared (first 
   use this function)
gmake[5]: *** [pixbuf.lo] Error 1
gmake[5]: Leaving directory `/tmp/gtkmm-2.2.8/gdk/gdkmm'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/tmp/gtkmm-2.2.8/gdk/gdkmm'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/tmp/gtkmm-2.2.8/gdk'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/tmp/gtkmm-2.2.8/gdk'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/gtkmm-2.2.8'
gmake: *** [all] Error 2
Comment 1 Murray Cumming 2003-11-06 07:18:05 UTC
I think you are using GTK+ 2.3, which has a very slight API change
that causes this. gtkmm 2.3.0 should build.
Comment 2 Murray Cumming 2003-11-06 14:49:21 UTC
Could you confirm this please?
Comment 3 Pierre 2003-11-07 00:45:25 UTC
Yes I have gtk+ 2.3.0
Comment 4 Murray Cumming 2003-11-07 08:37:19 UTC
At the moment, GTK+ 2.3.0 would crash most gtkmm applications even if
you could build it. I hope that you are using a separate prefix for
such unstable development versions.

I am keeping this open because I would like to add some #ifdef
workaround to gtkmm 2.2 so that it can build with both GTK+ 2.2 and
GTK+ 2.3/2.4
Comment 5 Murray Cumming 2003-11-09 13:33:52 UTC
The bug here is due to the DISABLE_DEPRECATED macros that have already
been remove. Strangely, gtkmm2 in cvs does seem to build even with
that slight GtkCellRenderer::render() API change in GTK+ 2.3. So not
#ifdef seems to be needed.
Comment 6 Pierre 2003-11-12 00:41:41 UTC
Yes, for information I build gtkmm 2.3.0 without any error
Comment 7 Murray Cumming 2003-11-12 15:34:50 UTC
I would like you to check whether gtkmm 2.2 from cvs builds without error.
Comment 8 Pierre 2003-12-23 08:19:32 UTC
could you put a cvs snapshot somewhere? would be easier for me.
Comment 9 Murray Cumming 2004-01-12 13:12:28 UTC
Hmm, this build error had nothing to do with the API change - it was
just because we disabled deprecations before. Closing. I'll release a
new gtkmm 2.2.x version soon.