[MacPorts] #56260: gtkglext @1.2.0: error: redefinition of 'index' as different kind of symbol (was: gtkglext 1.2.0 build failure)
MacPorts
noreply at macports.org
Tue Apr 10 12:03:58 UTC 2018
#56260: gtkglext @1.2.0: error: redefinition of 'index' as different kind of symbol
--------------------------+----------------------
Reporter: jbuencuerpo | Owner: jd@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: | Keywords:
Port: gtkglext |
--------------------------+----------------------
Changes (by ryandesign):
* owner: (none) => jd@…
* status: new => assigned
* cc: jd@… (removed)
Old description:
> I have tried to build gtkglext +quartz without success.
> I attach the main.log file. I have encountered this when trying to build
> gwyddion in an isolated installation of macports. (/opt/gwyddion)
>
> The error is in gdkglshapes I think. By accesing the work path of the
> build and running make I obtain:
>
> gdkglshapes.c:552:12: error: redefinition of 'index' as different kind of
> symbol
> static int index[20][3] =
>
> My os and xcode version:
> xcode version 9.2
> macOS 10.12.6
New description:
I have tried to build gtkglext +quartz without success.
I attach the main.log file. I have encountered this when trying to build
gwyddion in an isolated installation of macports. (/opt/gwyddion)
The error is in gdkglshapes I think. By accesing the work path of the
build and running make I obtain:
{{{
gdkglshapes.c:552:12: error: redefinition of 'index' as different kind of
symbol
static int index[20][3] =
}}}
My os and xcode version:\\
xcode version 9.2\\
macOS 10.12.6
--
Comment:
It seems that gtkglext's use of a variable named `index` is conflicting
with a function named `index` that is provided by the operating system. I
am surprised that the operating system would provide a function with such
a generic name, and that this problem was not observed before, but I can
confirm the problem on my Sierra system.
--
Ticket URL: <https://trac.macports.org/ticket/56260#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list