After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 664166 - 0.10.8 build failure on AIX
0.10.8 build failure on AIX
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other AIX
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-11-16 02:14 UTC by The Written Word
Modified: 2015-02-07 16:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add _ to int8, int16, int32, and int64 because they are defined in <inttypes.h> (11.36 KB, patch)
2011-11-16 04:07 UTC, The Written Word
committed Details | Review

Description The Written Word 2011-11-16 02:14:27 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):
  • File "../g-ir-scanner", line 43 in <module>
    sys.exit(scanner_main(sys.argv))
  • File "../giscanner/scannermain.py", line 412 in scanner_main
    main.transform()
  • File "../giscanner/maintransformer.py", line 59 in transform
    self._namespace.walk(self._pass_fixup_hidden_fields)
  • File "../giscanner/ast.py", line 435 in walk
    node.walk(callback, [])
  • File "../giscanner/ast.py", line 511 in walk
    res = callback(self, chain)
  • File "../giscanner/maintransformer.py", line 117 in _pass_fixup_hidden_fields
    if (field.name.startswith('_')
AttributeError: 'NoneType' object has no attribute '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.
Comment 1 The Written Word 2011-11-16 04:07:50 UTC
Created attachment 201505 [details] [review]
Add _ to int8, int16, int32, and int64 because they are defined in <inttypes.h>
Comment 2 Murray Cumming 2012-03-13 09:28:22 UTC
It seems harmless to me, and it's only in test code, and fixes a build.
Comment 3 Colin Walters 2012-03-13 13:08:13 UTC
Review of attachment 201505 [details] [review]:

Looks correct.  But do you have a real name/address I can use in the commit message?
Comment 4 Colin Walters 2012-10-27 16:58:14 UTC
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.
Comment 5 André Klapper 2015-02-07 16:51:13 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]