[MacPorts] #74210: spice-gtk fails to build: error: 'for' loop initial declarations are only allowed in C99 or C11 mode

MacPorts noreply at macports.org
Mon Jul 13 00:25:16 UTC 2026


#74210: spice-gtk fails to build: error: 'for' loop initial declarations are only
allowed in C99 or C11 mode
--------------------------+-----------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.12.5
 Keywords:                |       Port:  spice-gtk
--------------------------+-----------------------
 Initially it fails on
 {{{
 :info:build [42/139] /opt/local/bin/gcc-mp-16 -Isrc/libspice-client-
 glib-2.0.8.dylib.p -Isrc -I../spice-gtk-0.42/src -I. -I../spice-gtk-0.42
 -Isubprojects/spice-common -I../spice-gtk-0.42/subprojects/spice-common
 -Isubprojects/spice-common/common -I/opt/local/include/spice-1
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include/pixman-1 -I/opt/local/libexec/openssl3/include
 -I/opt/local/include/opus -I/opt/local/include/json-glib-1.0
 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/gstreamer-1.0
 -I/opt/local/include/orc-0.4 -I/opt/local/include/gobject-
 introspection-1.0 -I/opt/local/include -fdiagnostics-color=always -Wall
 -Winvalid-pch -Wextra -O2 -g -DHAVE_CONFIG_H -DSPICE_COMPILATION
 '-DG_LOG_DOMAIN="GSpice"' -Wno-sign-compare -Wno-unused-parameter -Wno-
 cast-function-type -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_52
 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_52
 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_22
 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_22 -ObjC -pipe -Os -arch ppc
 -D_XOPEN_SOURCE -MD -MQ src/libspice-client-glib-2.0.8.dylib.p/spice-
 session.c.o -MF src/libspice-client-glib-2.0.8.dylib.p/spice-session.c.o.d
 -o src/libspice-client-glib-2.0.8.dylib.p/spice-session.c.o -c ../spice-
 gtk-0.42/src/spice-session.c
 :info:build FAILED: [code=1] src/libspice-client-glib-2.0.8.dylib.p/spice-
 session.c.o
 :info:build /opt/local/bin/gcc-mp-16 -Isrc/libspice-client-
 glib-2.0.8.dylib.p -Isrc -I../spice-gtk-0.42/src -I. -I../spice-gtk-0.42
 -Isubprojects/spice-common -I../spice-gtk-0.42/subprojects/spice-common
 -Isubprojects/spice-common/common -I/opt/local/include/spice-1
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include/pixman-1 -I/opt/local/libexec/openssl3/include
 -I/opt/local/include/opus -I/opt/local/include/json-glib-1.0
 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/gstreamer-1.0
 -I/opt/local/include/orc-0.4 -I/opt/local/include/gobject-
 introspection-1.0 -I/opt/local/include -fdiagnostics-color=always -Wall
 -Winvalid-pch -Wextra -O2 -g -DHAVE_CONFIG_H -DSPICE_COMPILATION
 '-DG_LOG_DOMAIN="GSpice"' -Wno-sign-compare -Wno-unused-parameter -Wno-
 cast-function-type -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_52
 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_52
 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_22
 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_22 -ObjC -pipe -Os -arch ppc
 -D_XOPEN_SOURCE -MD -MQ src/libspice-client-glib-2.0.8.dylib.p/spice-
 session.c.o -MF src/libspice-client-glib-2.0.8.dylib.p/spice-session.c.o.d
 -o src/libspice-client-glib-2.0.8.dylib.p/spice-session.c.o -c ../spice-
 gtk-0.42/src/spice-session.c
 :info:build ../spice-gtk-0.42/src/spice-session.c: In function
 'session_disconnect':
 :info:build ../spice-gtk-0.42/src/spice-session.c:307:5: error: 'for' loop
 initial declarations are only allowed in C99 or C11 mode
 :info:build   307 |     for (GList *l = s->channels; l != NULL; ) {
 :info:build       |     ^~~
 :info:build ../spice-gtk-0.42/src/spice-session.c:307:5: note: use option
 '-std=c99', '-std=gnu99', '-std=c11' or '-std=gnu11' to compile your code
 :info:build ../spice-gtk-0.42/src/spice-session.c: In function
 'spice_session_switching_disconnect':
 :info:build ../spice-gtk-0.42/src/spice-session.c:1753:5: error: 'for'
 loop initial declarations are only allowed in C99 or C11 mode
 :info:build  1753 |     for (GList *l = s->channels; l != NULL; ) {
 :info:build       |     ^~~
 :info:build ../spice-gtk-0.42/src/spice-session.c: In function
 'spice_session_lookup_channel':
 :info:build ../spice-gtk-0.42/src/spice-session.c:1813:5: error: 'for'
 loop initial declarations are only allowed in C99 or C11 mode
 :info:build  1813 |     for (GList *l = s->channels; l != NULL; ) {
 :info:build       |     ^~~
 :info:build ../spice-gtk-0.42/src/spice-session.c: In function
 'spice_session_abort_migration':
 :info:build ../spice-gtk-0.42/src/spice-session.c:1843:5: error: 'for'
 loop initial declarations are only allowed in C99 or C11 mode
 :info:build  1843 |     for (GList *l = s->channels; l != NULL; ) {
 :info:build       |     ^~~
 :info:build ../spice-gtk-0.42/src/spice-session.c: In function
 'spice_session_migrate_end':
 :info:build ../spice-gtk-0.42/src/spice-session.c:1958:5: error: 'for'
 loop initial declarations are only allowed in C99 or C11 mode
 :info:build  1958 |     for (GList *l = s->migration_left; l != NULL; ) {
 :info:build       |     ^~~
 :info:build ../spice-gtk-0.42/src/spice-session.c: In function
 'spice_session_has_channel_type':
 :info:build ../spice-gtk-0.42/src/spice-session.c:2071:5: error: 'for'
 loop initial declarations are only allowed in C99 or C11 mode
 :info:build  2071 |     for (GList *l = s->channels; l != NULL; l =
 l->next) {
 :info:build       |     ^~~
 :info:build [43/139] /opt/local/bin/gcc-mp-16 -Isubprojects/spice-
 common/common/libspice-common.a.p -Isubprojects/spice-common/common -I
 ../spice-gtk-0.42/subprojects/spice-common/common -Isubprojects/spice-
 common -I../spice-gtk-0.42/subprojects/spice-common
 -I/opt/local/include/spice-1 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1
 -I/opt/local/libexec/openssl3/include -I/opt/local/include/opus
 -I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch
 -Wextra -O2 -g '-DG_LOG_DOMAIN="Spice"' -Wno-unused-parameter
 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38
 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_38 -pipe -Os -arch ppc
 -D_XOPEN_SOURCE -MD -MQ subprojects/spice-common/common/libspice-
 common.a.p/rop3.c.o -MF subprojects/spice-common/common/libspice-
 common.a.p/rop3.c.o.d -o subprojects/spice-common/common/libspice-
 common.a.p/rop3.c.o -c ../spice-gtk-0.42/subprojects/spice-
 common/common/rop3.c
 :info:build ninja: build stopped: subcommand failed.
 }}}

 Once `-std=c11` flag passed, it fails on
 {{{
 :info:build [38/139] /opt/local/bin/gcc-mp-16 -Isrc/libspice-client-
 glib-2.0.8.dylib.p -Isrc -I../spice-gtk-0.42/src -I. -I../spice-gtk-0.42
 -Isubprojects/spice-common -I../spice-gtk-0.42/subprojects/spice-common
 -Isubprojects/spice-common/common -I/opt/local/include/spice-1
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include/pixman-1 -I/opt/local/libexec/openssl3/include
 -I/opt/local/include/opus -I/opt/local/include/json-glib-1.0
 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/gstreamer-1.0
 -I/opt/local/include/orc-0.4 -I/opt/local/include/gobject-
 introspection-1.0 -I/opt/local/include -fdiagnostics-color=always -Wall
 -Winvalid-pch -Wextra -O2 -g -DHAVE_CONFIG_H -DSPICE_COMPILATION
 '-DG_LOG_DOMAIN="GSpice"' -Wno-sign-compare -Wno-unused-parameter -Wno-
 cast-function-type -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_52
 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_52
 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_22
 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_22 -ObjC -pipe -Os -std=c11 -arch
 ppc -D_XOPEN_SOURCE -MD -MQ src/libspice-client-glib-2.0.8.dylib.p/spice-
 audio.c.o -MF src/libspice-client-glib-2.0.8.dylib.p/spice-audio.c.o.d -o
 src/libspice-client-glib-2.0.8.dylib.p/spice-audio.c.o -c ../spice-
 gtk-0.42/src/spice-audio.c
 :info:build [39/139] /opt/local/bin/gcc-mp-16 -Isrc/libspice-client-
 glib-2.0.8.dylib.p -Isrc -I../spice-gtk-0.42/src -I. -I../spice-gtk-0.42
 -Isubprojects/spice-common -I../spice-gtk-0.42/subprojects/spice-common
 -Isubprojects/spice-common/common -I/opt/local/include/spice-1
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include/pixman-1 -I/opt/local/libexec/openssl3/include
 -I/opt/local/include/opus -I/opt/local/include/json-glib-1.0
 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/gstreamer-1.0
 -I/opt/local/include/orc-0.4 -I/opt/local/include/gobject-
 introspection-1.0 -I/opt/local/include -fdiagnostics-color=always -Wall
 -Winvalid-pch -Wextra -O2 -g -DHAVE_CONFIG_H -DSPICE_COMPILATION
 '-DG_LOG_DOMAIN="GSpice"' -Wno-sign-compare -Wno-unused-parameter -Wno-
 cast-function-type -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_52
 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_52
 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_22
 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_22 -ObjC -pipe -Os -std=c11 -arch
 ppc -D_XOPEN_SOURCE -MD -MQ src/libspice-client-glib-2.0.8.dylib.p/spice-
 channel.c.o -MF src/libspice-client-glib-2.0.8.dylib.p/spice-channel.c.o.d
 -o src/libspice-client-glib-2.0.8.dylib.p/spice-channel.c.o -c ../spice-
 gtk-0.42/src/spice-channel.c
 :info:build FAILED: [code=1] src/libspice-client-glib-2.0.8.dylib.p/spice-
 channel.c.o
 :info:build /opt/local/bin/gcc-mp-16 -Isrc/libspice-client-
 glib-2.0.8.dylib.p -Isrc -I../spice-gtk-0.42/src -I. -I../spice-gtk-0.42
 -Isubprojects/spice-common -I../spice-gtk-0.42/subprojects/spice-common
 -Isubprojects/spice-common/common -I/opt/local/include/spice-1
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include/pixman-1 -I/opt/local/libexec/openssl3/include
 -I/opt/local/include/opus -I/opt/local/include/json-glib-1.0
 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/gstreamer-1.0
 -I/opt/local/include/orc-0.4 -I/opt/local/include/gobject-
 introspection-1.0 -I/opt/local/include -fdiagnostics-color=always -Wall
 -Winvalid-pch -Wextra -O2 -g -DHAVE_CONFIG_H -DSPICE_COMPILATION
 '-DG_LOG_DOMAIN="GSpice"' -Wno-sign-compare -Wno-unused-parameter -Wno-
 cast-function-type -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_52
 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_52
 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_22
 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_22 -ObjC -pipe -Os -std=c11 -arch
 ppc -D_XOPEN_SOURCE -MD -MQ src/libspice-client-glib-2.0.8.dylib.p/spice-
 channel.c.o -MF src/libspice-client-glib-2.0.8.dylib.p/spice-channel.c.o.d
 -o src/libspice-client-glib-2.0.8.dylib.p/spice-channel.c.o -c ../spice-
 gtk-0.42/src/spice-channel.c
 :info:build ../spice-gtk-0.42/src/spice-channel.c: In function
 'spice_channel_swap':
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:5: error: implicit
 declaration of function 'typeof' [-Wimplicit-function-declaration]
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |     ^~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3115:5: note: in
 expansion of macro 'SWAP'
 :info:build  3115 |     SWAP(sock);
 :info:build       |     ^~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3115:10: error: expected
 ';' before 'sock'
 :info:build  3115 |     SWAP(sock);
 :info:build       |          ^~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3115:10: error: 'sock'
 undeclared (first use in this function); did you mean 'socket'?
 :info:build  3115 |     SWAP(sock);
 :info:build       |          ^~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3115:10: note: each
 undeclared identifier is reported only once for each function it appears
 in
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3116:10: error: expected
 ';' before 'conn'
 :info:build  3116 |     SWAP(conn);
 :info:build       |          ^~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3116:10: error: 'conn'
 undeclared (first use in this function)
 :info:build  3116 |     SWAP(conn);
 :info:build       |          ^~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3117:10: error: expected
 ';' before 'in'
 :info:build  3117 |     SWAP(in);
 :info:build       |          ^~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3117:10: error: 'in'
 undeclared (first use in this function); did you mean 'id'?
 :info:build  3117 |     SWAP(in);
 :info:build       |          ^~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3118:10: error: expected
 ';' before 'out'
 :info:build  3118 |     SWAP(out);
 :info:build       |          ^~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3118:10: error: 'out'
 undeclared (first use in this function)
 :info:build  3118 |     SWAP(out);
 :info:build       |          ^~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3119:10: error: expected
 ';' before 'ctx'
 :info:build  3119 |     SWAP(ctx);
 :info:build       |          ^~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3119:10: error: 'ctx'
 undeclared (first use in this function)
 :info:build  3119 |     SWAP(ctx);
 :info:build       |          ^~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3120:10: error: expected
 ';' before 'ssl'
 :info:build  3120 |     SWAP(ssl);
 :info:build       |          ^~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3120:10: error: 'ssl'
 undeclared (first use in this function)
 :info:build  3120 |     SWAP(ssl);
 :info:build       |          ^~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3121:10: error: expected
 ';' before 'sslverify'
 :info:build  3121 |     SWAP(sslverify);
 :info:build       |          ^~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3121:10: error:
 'sslverify' undeclared (first use in this function); did you mean
 'verify'?
 :info:build  3121 |     SWAP(sslverify);
 :info:build       |          ^~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3122:10: error: expected
 ';' before 'tls'
 :info:build  3122 |     SWAP(tls);
 :info:build       |          ^~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3122:10: error: 'tls'
 undeclared (first use in this function); did you mean 'fls'?
 :info:build  3122 |     SWAP(tls);
 :info:build       |          ^~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3123:10: error: expected
 ';' before 'use_mini_header'
 :info:build  3123 |     SWAP(use_mini_header);
 :info:build       |          ^~~~~~~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3123:10: error:
 'use_mini_header' undeclared (first use in this function)
 :info:build  3123 |     SWAP(use_mini_header);
 :info:build       |          ^~~~~~~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3125:14: error: expected
 ';' before 'xmit_queue'
 :info:build  3125 |         SWAP(xmit_queue);
 :info:build       |              ^~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3125:14: error:
 'xmit_queue' undeclared (first use in this function)
 :info:build  3125 |         SWAP(xmit_queue);
 :info:build       |              ^~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3126:14: error: expected
 ';' before 'xmit_queue_blocked'
 :info:build  3126 |         SWAP(xmit_queue_blocked);
 :info:build       |              ^~~~~~~~~~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3126:14: error:
 'xmit_queue_blocked' undeclared (first use in this function)
 :info:build  3126 |         SWAP(xmit_queue_blocked);
 :info:build       |              ^~~~~~~~~~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3127:14: error: expected
 ';' before 'in_serial'
 :info:build  3127 |         SWAP(in_serial);
 :info:build       |              ^~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3127:14: error:
 'in_serial' undeclared (first use in this function)
 :info:build  3127 |         SWAP(in_serial);
 :info:build       |              ^~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3128:14: error: expected
 ';' before 'out_serial'
 :info:build  3128 |         SWAP(out_serial);
 :info:build       |              ^~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3128:14: error:
 'out_serial' undeclared (first use in this function)
 :info:build  3128 |         SWAP(out_serial);
 :info:build       |              ^~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3130:10: error: expected
 ';' before 'caps'
 :info:build  3130 |     SWAP(caps);
 :info:build       |          ^~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3130:10: error: 'caps'
 undeclared (first use in this function)
 :info:build  3130 |     SWAP(caps);
 :info:build       |          ^~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3131:10: error: expected
 ';' before 'common_caps'
 :info:build  3131 |     SWAP(common_caps);
 :info:build       |          ^~~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3131:10: error:
 'common_caps' undeclared (first use in this function)
 :info:build  3131 |     SWAP(common_caps);
 :info:build       |          ^~~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3132:10: error: expected
 ';' before 'remote_caps'
 :info:build  3132 |     SWAP(remote_caps);
 :info:build       |          ^~~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3132:10: error:
 'remote_caps' undeclared (first use in this function)
 :info:build  3132 |     SWAP(remote_caps);
 :info:build       |          ^~~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3133:10: error: expected
 ';' before 'remote_common_caps'
 :info:build  3133 |     SWAP(remote_common_caps);
 :info:build       |          ^~~~~~~~~~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3108:23: note: in
 definition of macro 'SWAP'
 :info:build  3108 |     typeof (c->Field) Field = c->Field;         \
 :info:build       |                       ^~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3133:10: error:
 'remote_common_caps' undeclared (first use in this function)
 :info:build  3133 |     SWAP(remote_common_caps);
 :info:build       |          ^~~~~~~~~~~~~~~~~~
 :info:build ../spice-gtk-0.42/src/spice-channel.c:3110:16: note: in
 definition of macro 'SWAP'
 :info:build  3110 |     s->Field = Field;                           \
 :info:build       |                ^~~~~
 :info:build [40/139] /opt/local/bin/gcc-mp-16 -Isubprojects/spice-
 common/common/libspice-common.a.p -Isubprojects/spice-common/common -I
 ../spice-gtk-0.42/subprojects/spice-common/common -Isubprojects/spice-
 common -I../spice-gtk-0.42/subprojects/spice-common
 -I/opt/local/include/spice-1 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1
 -I/opt/local/libexec/openssl3/include -I/opt/local/include/opus
 -I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch
 -Wextra -O2 -g '-DG_LOG_DOMAIN="Spice"' -Wno-unused-parameter
 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38
 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_38 -pipe -Os -std=c11 -arch ppc
 -D_XOPEN_SOURCE -MD -MQ subprojects/spice-common/common/libspice-
 common.a.p/rop3.c.o -MF subprojects/spice-common/common/libspice-
 common.a.p/rop3.c.o.d -o subprojects/spice-common/common/libspice-
 common.a.p/rop3.c.o -c ../spice-gtk-0.42/subprojects/spice-
 common/common/rop3.c
 :info:build ninja: build stopped: subcommand failed.
 :info:build Command failed:  cd "/opt/local/var/macports/build/spice-gtk-
 554fa9ff/work/build" && /opt/local/bin/ninja -j2 -v
 :info:build Exit code: 1
 }}}

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


More information about the macports-tickets mailing list