Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83283 - gnubg 0.14.3 only runs in text mode
Summary: gnubg 0.14.3 only runs in text mode
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-25 03:19 UTC by giovanni.bobbio
Modified: 2005-02-25 14:16 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 giovanni.bobbio 2005-02-25 03:19:16 UTC
After updating from gnubg 0.14.2 to 0.14.3 the game starts in text mode, without graphics.
I haven't changed the USE flags. This is what I'm using:
[ebuild   R   ] games-board/gnubg-0.14.3  +X +arts -debug -esd -gdbm -gtk -gtk2 -guile -nas -nls +opengl +png -python -readline +truetype


Reproducible: Always
Steps to Reproduce:




Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) 
================================================================= 
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1700MHz 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 
10:38:23)] 
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled] 
dev-lang/python:     2.3.4-r1 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.7.9-r1, 1.4_p6, 1.9.4, 1.5, 1.6.3, 1.8.5-r3 
sys-devel/binutils:  2.15.92.0.2-r1 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.4.21-r1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms" 
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 X acpi alsa apm arts avi bash-completion bitmap-fonts bluetooth bzip2 
cddb cdparanoia cdr codecs crypt cups dga directfb dvd dvdread ethereal faad 
fam foomaticdb freetype gif gmail gnokii gpm imap irda java javascript jp2 
jpeg jpeg2k kde live logitech-mouse mad mjpeg mmx mmx2 mozilla mpeg mpeg2 
mpeg4 network offensive oggvorbis opengl opie pcmcia pda png pnp qt quicktime 
real sdl smime sse sse2 ssl truetype truetype-fonts type1-fonts unicode usb 
utf8 wifi xrandr xv xvid video_cards_radeon" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-25 06:02:50 UTC
obviously it needs gtk for graphics
Comment 2 giovanni.bobbio 2005-02-25 06:28:58 UTC
Something is not so obvious:

1) Version 0.14.2 worked graphically with the gtk flags disabled, evidently +X was sufficient.

2) Version 0.14.3, emerged with +gtk2 still only works in text mode.

3) Version 0.14.3 with +gtk doesn't emerge, because it depends on x11-libs/gtkglext-1.0.5 that breaks looking for the file /etc/env.d/09opengl (it's actually /etc/env.d/03opengl).

4) Fixing the gtkglext ebuild by hand to look for the correct file, I can proceed to emerge gnubg (with +gtk). Sadly it breaks with the following error:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  -I./../lib  -I/usr/include/libxml2 -I./../intl -DLOCALEDIR=\"\" -I/usr/include/freetype2      -O3 -march=pentium3 -pipe -fomit-frame-pointer -I/usr/include/FTGL -I/usr/include/freetype2 -c `test -f 'widget3d.c' || echo './'`widget3d.c
widget3d.c:40:29: gtkgl/gtkglarea.h: No such file or directory
widget3d.c: In function `CreateGLWidget':
widget3d.c:224: error: `GDK_GL_RGBA' undeclared (first use in this function)
widget3d.c:224: error: (Each undeclared identifier is reported only once
widget3d.c:224: error: for each function it appears in.)
widget3d.c:224: error: `GDK_GL_DOUBLEBUFFER' undeclared (first use in this function)
widget3d.c:224: error: `GDK_GL_DEPTH_SIZE' undeclared (first use in this function)
widget3d.c:224: error: `GDK_GL_STENCIL_SIZE' undeclared (first use in this function)
widget3d.c:224: error: `GDK_GL_NONE' undeclared (first use in this function)
widget3d.c:224: warning: assignment makes pointer from integer without a cast
widget3d.c: At top level:
widget3d.c:392: error: parse error before '*' token
widget3d.c:392: warning: data definition has no type or storage class
widget3d.c: In function `SetupVisual':
widget3d.c:462: error: `GDK_GL_RGBA' undeclared (first use in this function)
widget3d.c:463: error: `GDK_GL_DEPTH_SIZE' undeclared (first use in this function)
widget3d.c:464: error: `GDK_GL_STENCIL_SIZE' undeclared (first use in this function)
widget3d.c:465: error: `GDK_GL_NONE' undeclared (first use in this function)
widget3d.c:469: warning: assignment makes pointer from integer without a cast
widget3d.c: In function `RenderBoard3d':
widget3d.c:490: error: `GdkGLPixmap' undeclared (first use in this function)
widget3d.c:490: error: `glpixmap' undeclared (first use in this function)
widget3d.c:492: warning: assignment makes pointer from integer without a cast
make[2]: *** [widget3d.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gnubg-0.14.3/work/gnubg-0.14.3/board3d'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnubg-0.14.3/work/gnubg-0.14.3'
make: *** [all] Error 2

So, could you please look into this a bit before dismissing it?

Thanks a lot.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-25 06:52:20 UTC
well..
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2005-02-25 14:16:28 UTC
1.  I think you're mistaken.  even with -gtk -gtk2 I think .2 actually linked against gtk to get the gui.

2. -gtk gtk2 isn't valid.

3. your issue with x11-libs/gtkglext is unrelated to gnubg so file a new bug about that if you desire.

4. gtk -gtk2 was broken.  That's fixed.  looks like gtk1 support is broken in .3 so I disabled it.  only the gtk2 gui is available.


If you want to look at the pretty pictures with gnubg you'll need USE=gtk.