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 707756 - Fails to build against gtksourceview 3.9.90+
Fails to build against gtksourceview 3.9.90+
Status: RESOLVED FIXED
Product: gtksourceviewmm
Classification: Other
Component: general
git master
Other Windows
: Normal normal
: ---
Assigned To: gtksourceviewmm-maint
gtksourceviewmm-maint
Depends on: 679424
Blocks:
 
 
Reported: 2013-09-09 11:04 UTC by Dominique Leuenberger
Modified: 2015-02-27 11:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dominique Leuenberger 2013-09-09 11:04:19 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)
Comment 1 Dominique Leuenberger 2013-09-09 11:40:14 UTC
I think the relevant commit ni gtksourceview is:
https://git.gnome.org/browse/gtksourceview/commit/gtksourceview/gtksourcestyle.h?id=05f388de6dd2569941b6f01a182107bad8a3d269
Comment 2 Murray Cumming 2013-09-09 19:19:34 UTC
I've fixed this in gtksourceview. I guess it will appear in a gtksourceview tarball release sometime soon.
Comment 3 Dominique Leuenberger 2013-09-09 19:22:14 UTC
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!