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 768816 - GObject-Introspection build fails on Solaris 10
GObject-Introspection build fails on Solaris 10
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: build
1.48.x
Other Solaris
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-07-14 18:19 UTC by oscarvonhimmel
Modified: 2016-11-22 15:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Do not scan glib-autocleanups.h for GLib-2.0.gir (1.29 KB, patch)
2016-09-12 13:36 UTC, Philip Withnall
committed Details | Review

Description oscarvonhimmel 2016-07-14 18:19:32 UTC
Building on Solaris 10 SPARC, with GCC 5.4.

The following errors appear (interestingly enough, gmake continues the build process):


scannerlexer.c:2468:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if ((int) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
                                            ^
  CC       g_ir_generate-generate.o
  CC       gi_dump_types-gdump.o
  CC       gi_dump_types-gi-dump-types.o
  CC       glib_print-glib-print.o
  CCLD     libcmph.la
  CCLD     libgiscanner.la
  CCLD     gi-dump-types
  CCLD     _giscanner.la
  CCLD     libgirepository-gthash.la
  CCLD     libgirepository-1.0.la
  CCLD     libgirepository-internals.la
  GEN      g-ir-scanner
  GEN      g-ir-annotation-tool
  CCLD     g-ir-compiler
  CCLD     g-ir-generate
  CCLD     glib-print
  GICOMP   gir/DBus-1.0.gir
  GICOMP   gir/fontconfig-2.0.gir
  GICOMP   gir/freetype2-2.0.gir
  GISCAN   GLib-2.0.gir
  GICOMP   gir/GL-1.0.gir
  GICOMP   gir/libxml2-2.0.gir
  GICOMP   gir/xft-2.0.gir
  GICOMP   gir/xlib-2.0.gir
  GICOMP   gir/xfixes-4.0.gir
  GICOMP   gir/xrandr-1.3.gir
  GICOMP   gir/win32-1.0.gir
  GICOMP   gir/cairo-1.0.gir
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:41: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GAsyncQueue *GAsyncQueue_autoptr;' at 'GAsyncQueue_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:42: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GBookmarkFile *GBookmarkFile_autoptr;' at 'GBookmarkFile_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:43: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GBytes *GBytes_autoptr;' at 'GBytes_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:44: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GChecksum *GChecksum_autoptr;' at 'GChecksum_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:45: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GDateTime *GDateTime_autoptr;' at 'GDateTime_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:46: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GDir *GDir_autoptr;' at 'GDir_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:47: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GError *GError_autoptr;' at 'GError_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:48: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GHashTable *GHashTable_autoptr;' at 'GHashTable_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:49: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GHmac *GHmac_autoptr;' at 'GHmac_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:50: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GIOChannel *GIOChannel_autoptr;' at 'GIOChannel_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:51: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GKeyFile *GKeyFile_autoptr;' at 'GKeyFile_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:52: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GList *GList_autoptr;' at 'GList_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:53: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GArray *GArray_autoptr;' at 'GArray_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:54: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GPtrArray *GPtrArray_autoptr;' at 'GPtrArray_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:55: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GByteArray *GByteArray_autoptr;' at 'GByteArray_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:56: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GMainContext *GMainContext_autoptr;' at 'GMainContext_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:57: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GMainLoop *GMainLoop_autoptr;' at 'GMainLoop_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:58: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GSource *GSource_autoptr;' at 'GSource_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:59: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GMappedFile *GMappedFile_autoptr;' at 'GMappedFile_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:60: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GMarkupParseContext *GMarkupParseContext_autoptr;' at 'GMarkupParseContext_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:61: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GNode *GNode_autoptr;' at 'GNode_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:62: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GOptionContext *GOptionContext_autoptr;' at 'GOptionContext_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:63: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GOptionGroup *GOptionGroup_autoptr;' at 'GOptionGroup_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:64: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GPatternSpec *GPatternSpec_autoptr;' at 'GPatternSpec_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:65: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GQueue *GQueue_autoptr;' at 'GQueue_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:67: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GRand *GRand_autoptr;' at 'GRand_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:68: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GRegex *GRegex_autoptr;' at 'GRegex_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:69: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GMatchInfo *GMatchInfo_autoptr;' at 'GMatchInfo_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:70: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GScanner *GScanner_autoptr;' at 'GScanner_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:71: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GSequence *GSequence_autoptr;' at 'GSequence_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:72: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GSList *GSList_autoptr;' at 'GSList_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:73: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GString *GString_autoptr;' at 'GString_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:74: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GStringChunk *GStringChunk_autoptr;' at 'GStringChunk_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:75: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GThread *GThread_autoptr;' at 'GThread_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:77: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GMutexLocker *GMutexLocker_autoptr;' at 'GMutexLocker_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:79: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GTimer *GTimer_autoptr;' at 'GTimer_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:80: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GTimeZone *GTimeZone_autoptr;' at 'GTimeZone_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:81: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GTree *GTree_autoptr;' at 'GTree_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:82: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GVariant *GVariant_autoptr;' at 'GVariant_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:83: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GVariantBuilder *GVariantBuilder_autoptr;' at 'GVariantBuilder_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:85: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GVariantIter *GVariantIter_autoptr;' at 'GVariantIter_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:86: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GVariantDict *GVariantDict_autoptr;' at 'GVariantDict_autoptr'
/export/home/netrac_fam/gtk3/include/glib-2.0/glib/glib-autocleanups.h:88: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GVariantType *GVariantType_autoptr;' at 'GVariantType_autoptr'
g-ir-scanner: GLib: warning: 646 warnings suppressed (use --warn-all to see them)

Kind regards,
Oscar.
Comment 1 Philip Withnall 2016-09-12 13:36:46 UTC
Created attachment 335365 [details] [review]
build: Do not scan glib-autocleanups.h for GLib-2.0.gir

Since autoptr typedefs are filtered out (bug #755882), scanning this header
is useless. It can cause warnings due to not #including all the headers
whose types it references:
   /usr/include/glib-2.0/glib/glib-autocleanups.h:41: syntax error,
   unexpected typedef-name, expecting identifier or '(' in 'typedef
   GAsyncQueue *GAsyncQueue_autoptr;' at 'GAsyncQueue_autoptr'

Fix that by filtering it out of the list of headers to scan.
Comment 2 Philip Withnall 2016-11-21 12:23:14 UTC
Rico, any chance of a review on this please?
Comment 3 Rico Tzschichholz 2016-11-22 15:03:36 UTC
Review of attachment 335365 [details] [review]:

Looks good
Comment 4 Philip Withnall 2016-11-22 15:22:40 UTC
Attachment 335365 [details] pushed as 43de9fb - build: Do not scan glib-autocleanups.h for GLib-2.0.gir