Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334533 - games-misc/xcowsay-1.2 fails to compile w/ USE=-dbus
Summary: games-misc/xcowsay-1.2 fails to compile w/ USE=-dbus
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-26 08:55 UTC by Andre
Modified: 2010-08-26 21:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre 2010-08-26 08:55:06 UTC
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
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-08-26 17:13:41 UTC
Thanks. Reported upstream
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2010-08-26 21:28:50 UTC
  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