GNOME Bugzilla – Bug 697220
Fails to build against gtksourceview 3.8
Last modified: 2013-04-18 19:14:48 UTC
Giggle 0.7 (and git master) fails to build against gtksourceview 3.8 with this error: [ 286s] CCLD giggle [ 287s] giggle-diff-view.o: In function `giggle_diff_view_init': [ 287s] /home/abuild/rpmbuild/BUILD/giggle-0.7/src/giggle-diff-view.c:550: undefined reference to `GTK_SOURCE_BUFFER' [ 287s] giggle-view-file.o: In function `giggle_view_file_init': [ 287s] /home/abuild/rpmbuild/BUILD/giggle-0.7/src/giggle-view-file.c:1524: undefined reference to `GTK_SOURCE_BUFFER' [ 287s] giggle-view-file.o: In function `view_file_set_source_code': [ 287s] /home/abuild/rpmbuild/BUILD/giggle-0.7/src/giggle-view-file.c:769: undefined reference to `GTK_SOURCE_BUFFER' [ 287s] /home/abuild/rpmbuild/BUILD/giggle-0.7/src/giggle-view-file.c:770: undefined reference to `GTK_SOURCE_BUFFER' [ 287s] giggle-view-file.o: In function `view_file_blame_job_callback': [ 287s] /home/abuild/rpmbuild/BUILD/giggle-0.7/src/giggle-view-file.c:824: undefined reference to `GTK_SOURCE_BUFFER' [ 287s] giggle-view-file.o:/home/abuild/rpmbuild/BUILD/giggle-0.7/src/giggle-view-file.c:604: more undefined references to `GTK_SOURCE_BUFFER' follow [ 287s] collect2: error: ld returned 1 exit status [ 287s] make[2]: *** [giggle] Error 1 [ 287s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/giggle-0.7/src
Created attachment 240542 [details] [review] Directly include gtksourcebuffer.h Until gtksourceview 3.7, it was included indirectly by gtksourceview.h.
Thanks for the bug report and the patch Dominique. This has ben pushed in commit 9999a7ff573b7f3320c2065e8d0eaf0fea32a41b
Created attachment 241819 [details] [review] Include gtksource.h Javier, that patch was actually not the best solution I'm afraid (it causes other undefined failures). I'd propose to revert it, and apply the new attached patch; the main issue is that gtksourceview change the name of the main header from gtksourceview.h to gtksource.h
Hi Dominique, Ive reverted the patch and pushed your new one in 44490f7f78c3281c8fc4f38aa7226fc5955720a9 Thanks