[MacPorts] #67626: libmypaint does not build on Rosetta: error: redefinition of typedef 'gchar' etc.

MacPorts noreply at macports.org
Wed Jun 14 14:49:20 UTC 2023


#67626: libmypaint does not build on Rosetta: error: redefinition of typedef
'gchar' etc.
--------------------------+------------------------
 Reporter:  barracuda156  |      Owner:  ryandesign
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.8.1
 Keywords:                |       Port:  libmypaint
--------------------------+------------------------
 {{{
 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
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67626>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list