Opened 6 years ago

Last modified 6 years ago

#56260 closed defect

gtkglext @1.2.0: error: redefinition of 'index' as different kind of symbol — at Version 1

Reported by: jbuencuerpo Owned by: jd@…
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: gtkglext

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (2)

Changed 6 years ago by jbuencuerpo

Attachment: main.log added

main.log

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jd@… removed
Description: modified (diff)
Owner: set to jd@…
Status: newassigned
Summary: gtkglext 1.2.0 build failuregtkglext @1.2.0: error: redefinition of 'index' as different kind of symbol

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.

Note: See TracTickets for help on using tickets.