Bug 52210 - dbus-glib 0.98: failed to compile if enable-tests with dbus-glib
Summary: dbus-glib 0.98: failed to compile if enable-tests with dbus-glib
Status: CLOSED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: GLib (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Rob Taylor
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-17 19:51 UTC by yao.zhao
Modified: 2012-07-18 13:31 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch to fix this error. (2.01 KB, patch)
2012-07-17 19:51 UTC, yao.zhao
Details | Splinter Review

Description yao.zhao 2012-07-17 19:51:54 UTC
Created attachment 64328 [details] [review]
patch to fix this error.

i686-wrs-linux-gnu-gcc   -m64 --sysroot=/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64 -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../dbus -I../.. -I../../dbus -I/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64/usr/include/dbus-1.0 -I/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64/usr/lib64/dbus-1.0/include   -pthread -I/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64/usr/include/glib-2.0 -I/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64/usr/lib64/glib-2.0/include   -DDBUS_COMPILATION    -O2 -pipe -g -feliminate-unused-debug-types -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -fno-strict-aliasing -c test-service-glib.c
In file included from test-service-glib.c:14:0:
/mnt/work/build/yocto/qemu64/bitbake_build/tmp/sysroots/common-pc-64/usr/include/glib-2.0/glib/gquark.h:28:2: error: #error "Only <glib.h> can be included directly."

problem:
 The problem is obvious that when test enabled, test-service-glibc is including glib/gquark.h. Change it to glib.h make build success.
Comment 1 Simon McVittie 2012-07-18 07:57:35 UTC
This was already fixed, and released in dbus-glib 0.100.


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.