Re: gobject-introspection-0.10.8 warnings on AIX



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.

Ok, this turned out to be the problem. In <inttypes.h>, AIX has:
  /*
   * BSD fixed-size integer type additions to the above ISO-C types.
   *
   */
  typedef signed char             int8;
  typedef signed short            int16;
  typedef signed int              int32;
  #ifdef  __64BIT__
  typedef long                    int64;
  #else   /* _ILP32 */
  #if defined(_LONG_LONG)
  typedef signed long long        int64;
  #endif
  #endif

> g-i could work around this by renaming the argument to i8 or int8_ or
> something.

Will work up a patch with this in mind.

> >   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.

Yep.

-- 
albert chin (china thewrittenword com)


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