Bug 23453 (DEMO_2)

Summary: build failure: dbus-spawn.c:1082: error: ignoring return value of ‘read’, declared with attribute warn_unused_result
Product: dbus Reporter: Craig Keogh <cskeogh>
Component: coreAssignee: Havoc Pennington <hp>
Status: RESOLVED DUPLICATE QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: medium CC: cskeogh, smruti.patil
Version: 1.3.x (devel)   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Craig Keogh 2009-08-21 20:43:52 UTC
Building dbus master using jhbuild (with gnome-external-deps-devel) on Ubuntu Karmic. I believe Ubuntu, Gentoo and possibly others have some extra settings to gcc to check return values. Error below:

git pull --rebase
Current branch master is up to date.

Building dbus 2009-08-22 09:48:39.467

make  
make  all-recursive
make[1]: Entering directory `/home/oxyde/gnome2/dbus'
Making all in dbus
make[2]: Entering directory `/home/oxyde/gnome2/dbus/dbus'
make  all-am
make[3]: Entering directory `/home/oxyde/gnome2/dbus/dbus'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I..  -fPIC -DDBUS_COMPILATION -DDBUS_MACHINE_UUID_FILE=\""/opt/gnome2/var/lib/dbus/machine-id"\" -DDBUS_SYSTEM_CONFIG_FILE=\""/opt/gnome2/etc/dbus-1/system.conf"\" -DDBUS_SESSION_CONFIG_FILE=\""/opt/gnome2/etc/dbus-1/session.conf"\"    -g -O2 -Werror -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wdeclaration-after-statement -fno-common -Wno-unused -Wno-sign-compare -Wno-pointer-sign -Wno-format -fno-strict-aliasing -MT dbus-spawn.lo -MD -MP -MF ".deps/dbus-spawn.Tpo" -c -o dbus-spawn.lo dbus-spawn.c; \
    then mv -f ".deps/dbus-spawn.Tpo" ".deps/dbus-spawn.Plo"; else rm -f ".deps/dbus-spawn.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -fPIC -DDBUS_COMPILATION -DDBUS_MACHINE_UUID_FILE=\"/opt/gnome2/var/lib/dbus/machine-id\" -DDBUS_SYSTEM_CONFIG_FILE=\"/opt/gnome2/etc/dbus-1/system.conf\" -DDBUS_SESSION_CONFIG_FILE=\"/opt/gnome2/etc/dbus-1/session.conf\" -g -O2 -Werror -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wdeclaration-after-statement -fno-common -Wno-unused -Wno-sign-compare -Wno-pointer-sign -Wno-format -fno-strict-aliasing -MT dbus-spawn.lo -MD -MP -MF .deps/dbus-spawn.Tpo -c dbus-spawn.c  -fPIC -DPIC -o .libs/dbus-spawn.o
cc1: warnings being treated as errors
dbus-spawn.c: In function ‘babysit’:
dbus-spawn.c:1082: error: ignoring return value of ‘read’, declared with attribute warn_unused_result
make[3]: Leaving directory `/home/oxyde/gnome2/dbus/dbus'
make[2]: Leaving directory `/home/oxyde/gnome2/dbus/dbus'
make[1]: Leaving directory `/home/oxyde/gnome2/dbus'
make[3]: *** [dbus-spawn.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Comment 1 Simon McVittie 2011-04-08 04:49:37 UTC
Marking this one as a duplicate even though it's older, because the duplicate has a patch.

*** This bug has been marked as a duplicate of bug 27623 ***
Comment 2 Smruti 2014-11-20 03:47:50 UTC
*** Bug 86479 has been marked as a duplicate of this bug. ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.