<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>28580</bug_id>
          
          <creation_ts>2003-09-12 22:37 0000</creation_ts>
          <short_desc>Gnubg doesn&apos;t compile</short_desc>
          <delta_ts>2003-09-30 00:44:04 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rod@sunsetsystems.com</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>rod@sunsetsystems.com</who>
            <bug_when>2003-09-12 22:37:38 0000</bug_when>
            <thetext>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=\&quot;/usr/share/games/locale\&quot; -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 &apos;xgame.c&apos; || echo
&apos;./&apos;`xgame.c
source=&apos;sound.c&apos; object=&apos;sound.o&apos; libtool=no \
depfile=&apos;.deps/sound.Po&apos; tmpdepfile=&apos;.deps/sound.TPo&apos; \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./lib  -I/usr/include/libxml2 -I./intl
-DLOCALEDIR=\&quot;/usr/share/games/locale\&quot; -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 &apos;sound.c&apos; || echo
&apos;./&apos;`sound.c
sound.c:56:18: glib.h: No such file or directory
sound.c: In function `play_artsc&apos;:
sound.c:632: `guint16&apos; 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&apos; undeclared (first use in this function)
sound.c: In function `artsc_play_file&apos;:
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&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnubg-0.13.0/work/gnubg-0.13.0&apos;
make: *** [all] Error 2

!!! ERROR: games-board/gnubg-0.13.0 failed.
!!! Function src_compile, Line 62, Exitcode 2
!!! make failed

# emerge search &apos;glib$&apos;
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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-09-13 03:24:49 0000</bug_when>
            <thetext>Please post the output of:

&quot;glib-config --cflags&quot;

and

&quot;emerge --info&quot;

Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rod@sunsetsystems.com</who>
            <bug_when>2003-09-13 08:18:34 0000</bug_when>
            <thetext>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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;sandbox ccache autoaddcvs&quot;
GENTOO_MIRRORS=&quot;ftp://gentoo.noved.org/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.noved.org/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;

Thanks!  -- Rod
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-09-17 00:46:38 0000</bug_when>
            <thetext>This is because of the -gtk USE setting that you&apos;re using.  Try it with
USE=&quot;gtk&quot; emerge gnubg
and see if that works for you.  I&apos;m still looking at what exactly is changed
in the Makefile.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rod@sunsetsystems.com</who>
            <bug_when>2003-09-17 06:02:17 0000</bug_when>
            <thetext>Yes, that works.  I&apos;m assuming that USE=&quot;-gtk gtk2&quot; is not an error, and this is still a bug in the ebuild....</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-09-17 11:01:30 0000</bug_when>
            <thetext>Yep, it&apos;s a bug in the ebuild.  Thanks confirming that it works with gtk.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-09-30 00:44:04 0000</bug_when>
            <thetext>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&apos;ll go ahead and close this.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>