Opened 16 months ago
Last modified 16 months ago
#67626 accepted defect
libmypaint @1.6.1: error: redefinition of typedef 'gchar' etc.
Reported by: | barracuda156 | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | snowleopard | Cc: | dbevans (David B. Evans) |
Port: | libmypaint |
Description
libtool: compile: /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-surface.lo -MD -MP -MF .deps/mypaint-surface.Tpo -c mypaint-surface.c -fno-common -DPIC -o .libs/mypaint-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:46: 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:48: 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:51: 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:52: 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:105: error: redefinition of typedef 'gpointer' mypaint-glib-compat.h:20: error: previous declaration of 'gpointer' was here libtool: compile: /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 make[2]: *** [mypaint-surface.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... 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:46: 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:48: 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:51: 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:52: 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:105: error: redefinition of typedef 'gpointer' mypaint-glib-compat.h:20: error: previous declaration of 'gpointer' was here libtool: compile: /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 make[2]: *** [mypaint-tiled-surface.lo] Error 1 libtool: compile: /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: /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 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 make[1]: 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: *** [all] Error 2 make: 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' Command failed: cd "/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" && /usr/bin/make -j8 -w all Exit code: 2
Attachments (2)
Change History (9)
comment:1 Changed 16 months ago by barracuda156
Keywords: | snowleopard rosetta powerpc added |
---|
Changed 16 months ago by barracuda156
Attachment: | libmypaint.txt added |
---|
comment:2 Changed 16 months ago by barracuda156
comment:3 follow-up: 5 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)
This problem was reported to the developers years ago: https://github.com/mypaint/libmypaint/issues/71
I've added a comment to remind them that the issue is still present.
comment:4 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | rosetta powerpc removed |
---|---|
Status: | assigned → accepted |
Summary: | libmypaint does not build on Rosetta: error: redefinition of typedef 'gchar' etc. → libmypaint @1.6.1: error: redefinition of typedef 'gchar' etc. |
comment:5 Changed 16 months ago by barracuda156
Replying to ryandesign:
This problem was reported to the developers years ago: https://github.com/mypaint/libmypaint/issues/71
I've added a comment to remind them that the issue is still present.
Thank you!
Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | 00b44dababc4919bcb5959b1783e7a6ba3e01744.patch added |
---|
comment:6 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)
I don't have apple-gcc42 installed on this system to test... can you try the attached patch?
comment:7 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)
If that doesn't work, it may also need #include "config.h"
in some or all of those files.
Note: See
TracTickets for help on using
tickets.
GCC 12 builds it fine though.