GNOME Bugzilla – Bug 629848
build problem with current gtk+: implicit declaration of function 'gdk_draw_rectangle', GtkStyle' has no member named 'black_gc'
Last modified: 2010-09-16 13:50:36 UTC
This is on Mandriva Cooker with gtk+ 2.21.8 and gst-plugins-base 0.10.30: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../gst-libs -I../../../gst-libs -I../../../gst-libs -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs -g -DGSEAL_ENABLE -pthread -I/usr/include/gtk-3.0 -I/usr/lib/gtk-3.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -c seek.c seek.c: In function 'handle_expose_cb': seek.c:2455:5: warning: implicit declaration of function 'gdk_draw_rectangle' seek.c:2455:5: warning: nested extern declaration of 'gdk_draw_rectangle' seek.c:2455:38: error: 'GtkStyle' has no member named 'black_gc' make: *** [seek.o] Error 1
I believe this is fixed in git: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=c1982cd6fe7ed111ee85d8e9b85365ecf72ccaf4 commit c1982cd6fe7ed111ee85d8e9b85365ecf72ccaf4 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Sat Jul 24 11:48:33 2010 +0200 examples: Use cairo instead of to-be-deprecated GDK API Fixes bug #625001. Please re-open if this still happens with git of -base, thanks.