Bug 221643

Summary: x11-toolkits/gtksourceview3 build fails on powerpc64 with redefinition of typedef 'GtkSourceTag'
Product: Ports & Packages Reporter: Robin <solence>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Closed FIXED    
Severity: Affects Only Me CC: jhibbits, linimon, powerpc
Priority: --- Flags: bugzilla: maintainer-feedback? (gnome)
Version: Latest   
Hardware: powerpc   
OS: Any   
Attachments:
Description Flags
Build log none

Description Robin 2017-08-20 06:39:49 UTC
Created attachment 185598 [details]
Build log

Building this port on PowerPC fails with the following error:

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: error: previous declaration of 'GtkSourceTag' was here
gmake[6]: *** [Makefile:555: libgtksourcecompletionwords_la-gtksourcecompletionwords.lo] Error 1


GtkSourceTag is defined in gtksourcetypes.h:

typedef struct _GtkSourceTag                    GtkSourceTag;


But then again in gtksourcetag.h, which includes gtksourcetypes.h:

G_DECLARE_DERIVABLE_TYPE (GtkSourceTag, gtk_source_tag,
                          GTK_SOURCE, TAG,
                          GtkTextTag)
Comment 1 Justin Hibbits freebsd_committer freebsd_triage 2017-09-21 20:53:00 UTC
This, and every other port that depends on glib/gtk, needs a USES= compiler:c11
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-12-06 23:34:47 UTC
A commit references this bug:

Author: linimon
Date: Thu Dec  6 23:33:47 UTC 2018
New revision: 486808
URL: https://svnweb.freebsd.org/changeset/ports/486808

Log:
  Move compiler:c11 to the common USES case to fix the build on powerpc64.

  PR:		221643
  Reported by:	solence at zoho dot eu
  Approved by:	portmgr (tier-2 blanket)

Changes:
  head/x11-toolkits/gtksourceview3/Makefile