Project

General

Profile

Bug #9123

illumos-gate fails to build with glib 2.55

Added by Alexander Pyhalov over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Category:
-
Start date:
2018-02-17
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

While building illumos-gate with glib 2.55, I get the following error:

+ /opt/gcc/4.4.4/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -O -m32 -fpic -Wall -Wextra -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-initializers -Wno-array-bounds -Wno-unused-variable -std=gnu99 -fno-inline-small-functions -fno-inline-functions-called-once -fno-ipa-cp -gdwarf-2 -std=gnu99 -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DTEXT_DOMAIN="SUNW_OST_OSLIB" -D_TS_ERRNO -I/export/home/alp/srcs/illumos-gate/proto/root_i386/usr/include -DPACKAGE_LOCALE_DIR="/usr/lib/locale" -DPIC -D_REENTRANT -c -o pics/libpolkit-rbac.o ../common/libpolkit-rbac.c 
cc1: warnings being treated as errors
In file included from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/dbus-1.0/dbus/dbus-glib.h:27,
                 from ../common/libpolkit-rbac.c:30:
/usr/include/glib-2.0/gobject/gobject.h: In function 'g_set_object':
/usr/include/glib-2.0/gobject/gobject.h:725: error: value computed is not used [-Wunused-value]
*** Error code 1
dmake: Warning: Command failed for target `pics/libpolkit-rbac.o'

The issue is that gref() is used in gbinding.h, and its return value is ignored (and it's fine there). To avoid fixing upstream code I suppose we should suppress this warning.

History

#1

Updated by Alexander Pyhalov over 1 year ago

  • Assignee set to Alexander Pyhalov

Also available in: Atom PDF