Re: gobject-introspection-0.10.8 warnings on AIX



On Tue, Nov 15, 2011 at 04:28:45PM -0600, Albert Chin wrote:
> On Tue, Nov 15, 2011 at 01:46:59PM -0600, Albert Chin wrote:
> > On Tue, Nov 15, 2011 at 07:12:06PM +0000, Simon McVittie wrote:
> > > On Tue, 15 Nov 2011 at 12:48:35 -0600, Albert Chin wrote:
> > > > We've built gobject-introspection-0.10.8 on AIX, HP-UX, Solaris, IRIX, Tru64
> > > > UNIX, and RHEL. We have it compiling everywhere except AIX.
> > > > 
> > > > We're seeing the following error. Any ideas?
> > > > 
> > > > /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'
> > > 
> > > AIX's system headers probably typedef or #define int8, uint16 etc.
> > > to be the same thing as the standard int8_t, u_int16_t etc. The g-i tests
> > > are using these names as parameters.
> > > 
> > > g-i could work around this by renaming the argument to i8 or int8_ or
> > > something.
> > > 
> > > >   File "../giscanner/maintransformer.py", line 117, in _pass_fixup_hidden_fields
> > > >     if (field.name.startswith('_')
> > > > AttributeError: 'NoneType' object has no attribute 'startswith'
> > > 
> > > This is probably just fallout from the parse errors above.
> > 
> > I fixed the parse errors but the AttributeError remains.
> 
> My patch to fix the parse errors was wrong. Looking into it further.

I think the code in question is:
#ifndef __GI_SCANNER__
# define __GI_SCANNER__
#endif
#include </opt/build/gobject-introspection-0.10.8/tests/gimarshallingtests.h>

But, gcc-4.4.6 accepts this on AIX:
  /opt/TWWfsw/gcc44/bin/gcc -E -C -I. - -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

Is g-ir-scanner doing some parsing on the result of the above on the
input above? Still looking at the code.

-- 
albert chin (china thewrittenword com)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]