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 638220 - Error on parsing endian.h...
Error on parsing endian.h...
Status: RESOLVED DUPLICATE of bug 678794
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other FreeBSD
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-12-28 20:49 UTC by Jeremy Messenger
Modified: 2015-02-07 16:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeremy Messenger 2010-12-28 20:49:53 UTC
I don't know where I can take a look in the gobject-introspection-0.9.12 for it parses endian.h error. If anyone can help us with it will be great. Thanks!

-----------------------------
  GISCAN GLib-2.0.gir
/usr/include/machine/endian.h:107: syntax error, unexpected '{' in ' return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap %0" : "+r" (__X)); __X; }));' at '{'
/usr/include/machine/endian.h:107: syntax error, unexpected ';' in ' return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap %0" : "+r" (__X)); __X; }));' at ';'
  GISCAN GObject-2.0.gir
-----------------------------

In our /usr/include/machine/endian.h:107 looks like:

-----------------------------
#define __byte_swap_int_var(x) \
__extension__ ({ register __uint32_t __X = (x); \
   __asm ("bswap %0" : "+r" (__X)); \
   __X; })

[...]

static __inline __uint32_t
__bswap32(__uint32_t _x)
{

	return (__byte_swap_int(_x)); //<-- 107 line
}
-----------------------------
Comment 1 Emmanuele Bassi (:ebassi) 2013-08-26 10:32:54 UTC
Thanks for taking the time to report this bug.
This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade.

*** This bug has been marked as a duplicate of bug 678794 ***
Comment 2 André Klapper 2015-02-07 16:51:08 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]