[MacPorts] #67626: libmypaint @1.6.1: error: redefinition of typedef 'gchar' etc.
MacPorts
noreply at macports.org
Tue Oct 29 07:51:54 UTC 2024
#67626: libmypaint @1.6.1: error: redefinition of typedef 'gchar' etc.
---------------------------+-------------------------
Reporter: barracuda156 | Owner: ryandesign
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: snowleopard
Port: libmypaint |
---------------------------+-------------------------
Comment (by barracuda156):
Replying to [comment:7 ryandesign]:
> If that doesn't work, it may also need `#include "config.h"` in some or
all of those files.
Any chance to fix it? Still broken, as of now:
{{{
libtool: compile: ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
-I/opt/local/include -I/opt/local/include/json-c
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-D_POSIX_C_SOURCE=200809L -pipe -Os -arch ppc -MT mypaint-tiled-surface.lo
-MD -MP -MF .deps/mypaint-tiled-surface.Tpo -c mypaint-tiled-surface.c
-fno-common -DPIC -o .libs/mypaint-tiled-surface.o
In file included from /opt/local/include/glib-2.0/glib/gtypes.h:34,
from /opt/local/include/glib-2.0/glib/galloca.h:34,
from /opt/local/include/glib-2.0/glib.h:32,
from rng-double.h:7,
from helpers.h:5,
from mypaint-surface.c:24:
/opt/local/lib/glib-2.0/include/glibconfig.h:48: error: redefinition of
typedef 'guint16'
mypaint-glib-compat.h:28: error: previous declaration of 'guint16' was
here
In file included from /opt/local/include/glib-2.0/glib/galloca.h:34,
from /opt/local/include/glib-2.0/glib.h:32,
from rng-double.h:7,
from helpers.h:5,
from mypaint-surface.c:24:
/opt/local/include/glib-2.0/glib/gtypes.h:52: error: redefinition of
typedef 'gchar'
mypaint-glib-compat.h:23: error: previous declaration of 'gchar' was here
/opt/local/include/glib-2.0/glib/gtypes.h:55: error: redefinition of
typedef 'gint'
mypaint-glib-compat.h:24: error: previous declaration of 'gint' was here
/opt/local/include/glib-2.0/glib/gtypes.h:56: error: redefinition of
typedef 'gboolean'
mypaint-glib-compat.h:25: error: previous declaration of 'gboolean' was
here
/opt/local/include/glib-2.0/glib/gtypes.h:109: error: redefinition of
typedef 'gpointer'
mypaint-glib-compat.h:20: error: previous declaration of 'gpointer' was
here
make[2]: *** [mypaint-surface.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile: ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
-I/opt/local/include -I/opt/local/include/json-c
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-D_POSIX_C_SOURCE=200809L -pipe -Os -arch ppc -MT rng-double.lo -MD -MP
-MF .deps/rng-double.Tpo -c rng-double.c -fno-common -DPIC -o .libs/rng-
double.o
libtool: compile: ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
-I/opt/local/include -I/opt/local/include/json-c
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-D_POSIX_C_SOURCE=200809L -pipe -Os -arch ppc -MT operationqueue.lo -MD
-MP -MF .deps/operationqueue.Tpo -c operationqueue.c -fno-common -DPIC -o
.libs/operationqueue.o
libtool: compile: ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
-I/opt/local/include -I/opt/local/include/json-c
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-D_POSIX_C_SOURCE=200809L -pipe -Os -arch ppc -MT tilemap.lo -MD -MP -MF
.deps/tilemap.Tpo -c tilemap.c -fno-common -DPIC -o .libs/tilemap.o
In file included from /opt/local/include/glib-2.0/glib/gtypes.h:34,
from /opt/local/include/glib-2.0/glib/galloca.h:34,
from /opt/local/include/glib-2.0/glib.h:32,
from rng-double.h:7,
from helpers.h:5,
from mypaint-tiled-surface.c:32:
/opt/local/lib/glib-2.0/include/glibconfig.h:48: error: redefinition of
typedef 'guint16'
mypaint-glib-compat.h:28: error: previous declaration of 'guint16' was
here
In file included from /opt/local/include/glib-2.0/glib/galloca.h:34,
from /opt/local/include/glib-2.0/glib.h:32,
from rng-double.h:7,
from helpers.h:5,
from mypaint-tiled-surface.c:32:
/opt/local/include/glib-2.0/glib/gtypes.h:52: error: redefinition of
typedef 'gchar'
mypaint-glib-compat.h:23: error: previous declaration of 'gchar' was here
/opt/local/include/glib-2.0/glib/gtypes.h:55: error: redefinition of
typedef 'gint'
mypaint-glib-compat.h:24: error: previous declaration of 'gint' was here
/opt/local/include/glib-2.0/glib/gtypes.h:56: error: redefinition of
typedef 'gboolean'
mypaint-glib-compat.h:25: error: previous declaration of 'gboolean' was
here
/opt/local/include/glib-2.0/glib/gtypes.h:109: error: redefinition of
typedef 'gpointer'
mypaint-glib-compat.h:20: error: previous declaration of 'gpointer' was
here
make[2]: *** [mypaint-tiled-surface.lo] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libmypaint/libmypaint/work/libmypaint-1.6.1'
make[1]: *** [all-recursive] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/67626#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list