[MacPorts] #56260: gtkglext @1.2.0: error: redefinition of 'index' as different kind of symbol
MacPorts
noreply at macports.org
Wed Apr 11 21:27:32 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 |
--------------------------+----------------------
Comment (by jbuencuerpo):
Hi,
I have just rename index, and it compiles. Also gwyddion seems to work
patched,
The file patch gdk/gdkglshapes.c
{{{
--- gdk/gdkglshapes.c.orig 2018-04-11 15:15:50.000000000 -0600
+++ gdk/gdkglshapes.c 2018-04-11 15:16:13.000000000 -0600
@@ -549,7 +549,7 @@
{-Z, -X, 0}
};
-static int index[20][3] =
+static int bindex[20][3] =
{
{0, 4, 1},
{0, 9, 4},
@@ -579,7 +579,7 @@
int i;
for (i = 19; i >= 0; i--) {
- drawtriangle(i, idata, index, shadeType);
+ drawtriangle(i, idata, bindex, shadeType);
}
}
}}}
Avoiding using strings.h could be preferable/possible?
--
Ticket URL: <https://trac.macports.org/ticket/56260#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list