GNOME Bugzilla – Bug 782708
Multiple typedef definitions not allowed in older versions of GCC
Last modified: 2017-05-17 15:35:06 UTC
Repeating "typedef <a> <b>;" is not allowed by earlier versions of GCC (4.7+ work). This might not even be legal: http://stackoverflow.com/questions/8367646/redefinition-of-typedef. This causes a problem when trying to build gtksourceview-3.22.2 and above on RHEL6 which has gcc-4.4.7 as the system compiler: ... In file included from ../../../gtksourceview/gtksource.h:57, from gtksourcecompletionwords.c:41: ../../../gtksourceview/gtksourcetag.h:43: error: redefinition of typedef 'GtkSourceTag' ../../../gtksourceview/gtksourcetypes.h:63: note: previous declaration of 'GtkSourceTag' was here gmake[5]: *** [libgtksourcecompletionwords_la-gtksourcecompletionwords.lo] Error 1 gmake[5]: Leaving directory `/opt/build/gtksourceview-3.22.2/gtksourceview/completion-providers/words'
Created attachment 351993 [details] Remove duplicate typedef entries to build with older GCC releases
I've pushed: commit 42ffea75552f30a44a35ba70c3d8c177e5319656 on master. commit a5b57e6d3a2bd6a0297eb3c8cf48a24477f12ffa on gnome-3-24. Your patch was not formatted with git format-patch, and was missing one type, so I've created a proper commit myself. Thanks for the bug report.