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.
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.