GNOME Bugzilla – Bug 664166
0.10.8 build failure on AIX
Last modified: 2015-02-07 16:51:13 UTC
We're trying to build gobject-introspection 0.10.8 on AIX 5.2, 5.3, 6.1, and 7.1. All show the same build error. Unfortunately, we cannot use a newer gobject-introspection because we're building against glib-2.26.1. env LPATH=.libs PYTHONPATH=..:.. UNINSTALLED_INTROSPECTION_SRCDIR=.. UNINSTALLED_INTROSPECTION_BUILDDIR=.. ../g-ir-scanner --verbose -I.. --add-include-path=. --add-include-path=../gir --add-include-path=. --add-include-path=.. --warn-all --warn-error --reparse-validate \ --namespace=GIMarshallingTests --symbol-prefix=gi_marshalling_tests --nsversion=1.0 \ --libtool="/opt/fsw/bash42/bin/bash ../libtool" \ --add-include-path=.. --include=Gio-2.0 \ --library=libgimarshallingtests-1.0.la --output=GIMarshallingTests-1.0.gir \ --c-include="tests/gimarshallingtests.h" \ ./gimarshallingtests.h ./gimarshallingtests.c /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:41: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int8_out_max (gint8 *int8);' at 'int8' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:42: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int8_out_min (gint8 *int8);' at 'int8' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:44: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int8_inout_max_min (gint8 *int8);' at 'int8' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:45: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int8_inout_min_max (gint8 *int8);' at 'int8' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:62: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int16_out_max (gint16 *int16);' at 'int16' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:63: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int16_out_min (gint16 *int16);' at 'int16' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:65: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int16_inout_max_min (gint16 *int16);' at 'int16' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:66: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int16_inout_min_max (gint16 *int16);' at 'int16' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:83: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int32_out_max (gint32 *int32);' at 'int32' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:84: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int32_out_min (gint32 *int32);' at 'int32' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:86: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int32_inout_max_min (gint32 *int32);' at 'int32' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:87: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int32_inout_min_max (gint32 *int32);' at 'int32' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:104: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int64_out_max (gint64 *int64);' at 'int64' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:105: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int64_out_min (gint64 *int64);' at 'int64' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:107: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int64_inout_max_min (gint64 *int64);' at 'int64' /opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h:108: syntax error, unexpected typedef-name, expecting ')' or ',' in 'void gi_marshalling_tests_int64_inout_min_max (gint64 *int64);' at 'int64' g-ir-scanner: compile: gcc -Wall -pthread -I/opt/TWWfsw/libglib226/include/gcc44 -I/opt/TWWfsw/libglib226/lib/gcc44/include -I/opt/TWWfsw/gettext018/include -I.. -I/opt/TWWfsw/libglib226/include/gcc44/gio-unix -I/opt/TWWfsw/libglib226/include/gcc44 -I/opt/TWWfsw/libglib226/lib/gcc44/include -I/opt/TWWfsw/gettext018/include -c -o /opt/build/gobject-introspection-0.10.8/tests/tmp-introspectc45iIz/GIMarshallingTests-1.0.o /opt/build/gobject-introspection-0.10.8/tests/tmp-introspectc45iIz/GIMarshallingTests-1.0.c g-ir-scanner: link: /opt/fsw/bash42/bin/bash ../libtool --mode=link --tag=CC --silent gcc -o /opt/build/gobject-introspection-0.10.8/tests/tmp-introspectc45iIz/GIMarshallingTests-1.0 -export-dynamic -Wl,-brtl -Wl,-blibpath:/usr/lib -L. libgimarshallingtests-1.0.la -Wl,-blibpath:/opt/TWWfsw/libglib226/lib/gcc44 -pthread -Wl,-blibpath:/opt/TWWfsw/gettext018/lib -L/opt/TWWfsw/libglib226/lib/gcc44 -L/opt/TWWfsw/gettext018/lib -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl /opt/build/gobject-introspection-0.10.8/tests/tmp-introspectc45iIz/GIMarshallingTests-1.0.o Traceback (most recent call last):
+ Trace 229069
sys.exit(scanner_main(sys.argv))
main.transform()
self._namespace.walk(self._pass_fixup_hidden_fields)
node.walk(callback, [])
res = callback(self, chain)
if (field.name.startswith('_')
gmake[2]: *** [GIMarshallingTests-1.0.gir] Error 1 gmake[2]: Leaving directory `/opt/build/gobject-introspection-0.10.8/tests' Any help debugging this would be greatly appreciated.
Created attachment 201505 [details] [review] Add _ to int8, int16, int32, and int64 because they are defined in <inttypes.h>
It seems harmless to me, and it's only in test code, and fixes a build.
Review of attachment 201505 [details] [review]: Looks correct. But do you have a real name/address I can use in the commit message?
Ok, I made a concerted attempt to fix this, hopefully it helps you. At least the code looks cleaner now. Please submit future patches in "git format-patch" so git knows how to do a 3-way merge.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]