GNOME Bugzilla – Bug 664914
Fails to build with newer glib version: only glib.h can be #include'd
Last modified: 2012-02-18 15:06:57 UTC
While building gtk2-engines with glib 2.31, this build error appears: /bin/sh ../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../engines/support -I../../engines/support -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.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/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c -o clearlooks_draw_inverted.lo `test -f './src/clearlooks_draw_inverted.c' || echo './'`./src/clearlooks_draw_inverted.c In file included from ./src/animation.c:31:0: /usr/include/glib-2.0/glib/gtimer.h:28:2: error: #error "Only <glib.h> can be included directly." make[2]: *** [animation.lo] Error 1 make[2]: *** Waiting for unfinished jobs..
Created attachment 202233 [details] [review] #include glib.h instead of other headers.
I pushed the patch. Should do a new release soon, as some small fixes have accumulated (even if this is only useful for GTK+ 2.