GNOME Bugzilla – Bug 707756
Fails to build against gtksourceview 3.9.90+
Last modified: 2015-02-27 11:48:30 UTC
It is no longer possible to build gtksourceviewmm due to changes in gtksourceview itself. This, on the other hand, makes it impossible to rebuild current versions of glom and nemiver, which are the two projects I 'care about' and use gtksourceviewmm. the build log of gtksourceviewmm with gtksourceview 3.9.90: [ 117s] /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.. -I../.. -DG_LOG_DOMAIN=\"gtksourceviewmm\" -pthread -pthread -I/usr/include/gtkmm-3.0 -I/usr/lib/gtkmm-3.0/include -I/usr/include/atkmm-1.6 -I/usr/include/gtk-3.0/unix-print -I/usr/include/gdkmm-3.0 -I/usr/lib/gdkmm-3.0/include -I/usr/include/giomm-2.4 -I/usr/lib/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib/pangomm-1.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/gtksourceview-3.0 -I/usr/include/libxml2 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -Wno-long-long -fomit-frame-pointer -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c -o stylescheme.lo stylescheme.cc [ 118s] In file included from style.cc:27:0: [ 118s] /usr/include/gtksourceview-3.0/gtksourceview/gtksourcestyle.h:37:22: error: conflicting declaration 'typedef GObjectClass GtkSourceStyleClass' [ 118s] typedef GObjectClass GtkSourceStyleClass; [ 118s] ^ [ 118s] In file included from style.cc:4:0: [ 118s] ../gtksourceviewmm/style.h:34:37: error: 'GtkSourceStyleClass' has a previous declaration as 'typedef struct _GtkSourceStyleClass GtkSourceStyleClass' [ 118s] typedef struct _GtkSourceStyleClass GtkSourceStyleClass; [ 118s] ^ [ 118s] make[1]: *** [style.lo] Error 1 [ 118s] make[1]: *** Waiting for unfinished jobs.... [ 119s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/gtksourceviewmm-3.2.0/gtksourceview/gtksourceviewmm' [ 119s] make: *** [all-recursive] Error 1 [ 119s] error: Bad exit status from /var/tmp/rpm-tmp.Ii5yQl (%build)
I think the relevant commit ni gtksourceview is: https://git.gnome.org/browse/gtksourceview/commit/gtksourceview/gtksourcestyle.h?id=05f388de6dd2569941b6f01a182107bad8a3d269
I've fixed this in gtksourceview. I guess it will appear in a gtksourceview tarball release sometime soon.
Thanks.. I confirm building gtksourceviewmm 3.2.0 (last release tarball) succeedsa against gtksourceviewmm 3.9.91 with the patch from bug 679424 applied. THANKS for the quick fix!