Note that glib _is_ installed (see bottom). Could this problem be related to having both gtk+ 2.2.1 and 1.2.10-r10 installed? # emerge gnubg ... gcc -DHAVE_CONFIG_H -I. -I. -I. -I./lib -I/usr/include/libxml2 -I./intl -DLOCALEDIR=\"/usr/share/games/locale\" -I/usr/include/freetype2 -I./ext -I/usr/X11R6/include -I/usr/kde/3.1/include/artsc -O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe -c `test -f 'xgame.c' || echo './'`xgame.c source='sound.c' object='sound.o' libtool=no \ depfile='.deps/sound.Po' tmpdepfile='.deps/sound.TPo' \ depmode=gcc3 /bin/sh ./depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I. -I./lib -I/usr/include/libxml2 -I./intl -DLOCALEDIR=\"/usr/share/games/locale\" -I/usr/include/freetype2 -I./ext -I/usr/X11R6/include -I/usr/kde/3.1/include/artsc -O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe -c `test -f 'sound.c' || echo './'`sound.c sound.c:56:18: glib.h: No such file or directory sound.c: In function `play_artsc': sound.c:632: `guint16' undeclared (first use in this function) sound.c:632: (Each undeclared identifier is reported only once sound.c:632: for each function it appears in.) sound.c:632: `lineardata' undeclared (first use in this function) sound.c: In function `artsc_play_file': sound.c:694: warning: assignment makes pointer from integer without a cast make[2]: *** [sound.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/gnubg-0.13.0/work/gnubg-0.13.0' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnubg-0.13.0/work/gnubg-0.13.0' make: *** [all] Error 2 !!! ERROR: games-board/gnubg-0.13.0 failed. !!! Function src_compile, Line 62, Exitcode 2 !!! make failed # emerge search 'glib$' Searching... [ Results for search key : glib$ ] [ Applications found : 1 ] * dev-libs/glib Latest version available: 2.2.2 Latest version installed: 2.2.2 Size of downloaded files: 1,566 kB Homepage: http://www.gtk.org/ Description: The GLib library of C routines # find /usr/include -name glib.h /usr/include/glib-1.2/glib.h /usr/include/glib-2.0/glib.h
Please post the output of: "glib-config --cflags" and "emerge --info" Thanks.
As requested: # glib-config --cflags -I/usr/include/glib-1.2 -I/usr/lib/glib/include # emerge --info Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r5) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP 1900+ ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://gentoo.noved.org/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.noved.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi cups encode foomaticdb gif jpeg gnome libg++ libwww mad mikmod mmx mpeg ncurses nls png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts bonobo svga tcltk java X sdl tcpd pam ssl perl python esd imlib oggvorbis qt kde motif opengl 3dfx alsa apache2 cdr crypt gd -gpm -gtk gtk2 guile imap maildir mozilla pdflib postgres usb voodoo3" Thanks! -- Rod
This is because of the -gtk USE setting that you're using. Try it with USE="gtk" emerge gnubg and see if that works for you. I'm still looking at what exactly is changed in the Makefile.
Yes, that works. I'm assuming that USE="-gtk gtk2" is not an error, and this is still a bug in the ebuild....
Yep, it's a bug in the ebuild. Thanks confirming that it works with gtk.
I just put a new ebuild for gnugb into CVS that has re-worked USE flag support. This version should work with a much broader range of USE flag interaction. It works for me with -gtk +gtk so I'll go ahead and close this.