When emerging games-misc/xcowsay-1.2 w/ USE=-dbus, compilation fails (see below). dbus and dbus-glib are installed on the system. Particularly, the build fails due to not finding dbus-glib-bindings.h. The file actually _is_ installed, but I guess the build should not require it in the first place. Emerging the package w/ dbus enabled works. When you need more info, please ask. The error message: i686-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DDATADIR=\"/usr/share/xcowsay\" -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -Wall -O2 -march=i686 -pipe -DWITH_DBUS -MT display_cow.o -MD -MP -MF .deps/display_cow.Tpo -c -o display_cow.o display_cow.c i686-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DDATADIR=\"/usr/share/xcowsay\" -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -Wall -O2 -march=i686 -pipe -DWITH_DBUS -MT floating_shape.o -MD -MP -MF .deps/floating_shape.Tpo -c -o floating_shape.o floating_shape.c display_cow.c:29:37: error: dbus/dbus-glib-bindings.h: No such file or directory display_cow.c: In function 'load_cow': display_cow.c:87: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result display_cow.c: In function 'try_dbus': display_cow.c:322: error: 'DBusGConnection' undeclared (first use in this function) display_cow.c:322: error: (Each undeclared identifier is reported only once display_cow.c:322: error: for each function it appears in.) display_cow.c:322: error: 'connection' undeclared (first use in this function) display_cow.c:324: error: 'DBusGProxy' undeclared (first use in this function) display_cow.c:324: error: 'proxy' undeclared (first use in this function) display_cow.c:328: warning: implicit declaration of function 'dbus_g_bus_get' display_cow.c:328: error: 'DBUS_BUS_SESSION' undeclared (first use in this function) display_cow.c:335: warning: implicit declaration of function 'dbus_g_proxy_new_for_name' display_cow.c:355: warning: implicit declaration of function 'dbus_g_proxy_call' make[2]: *** [display_cow.o] Error 1 make[2]: *** Waiting for unfinished jobs.... xcowsay.c: In function 'main': xcowsay.c:327: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result mv -f .deps/floating_shape.Tpo .deps/floating_shape.Po mv -f .deps/xcowsay.Tpo .deps/xcowsay.Po make[2]: Leaving directory `/tmp/portage/games-misc/xcowsay-1.2/work/xcowsay-1.2/src' make[1]: *** [all-recursive] Error 1
Thanks. Reported upstream
26 Aug 2010; Markos Chandras <hwoarang@gentoo.org> xcowsay-1.2.ebuild, +files/xcowsay-1.2-no-dbus.patch: Apply patch from upstream which fixes compilation with -dbus. Bug #34533 Upstream sent me a patch. It will be in the next release Thanks for reporting