Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56956 - xmame 0.83 emerge fails compiling glgen.c due to undeclared identifiers
Summary: xmame 0.83 emerge fails compiling glgen.c due to undeclared identifiers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-13 13:46 UTC by Clarence Risher
Modified: 2004-08-30 16:30 UTC (History)
1 user (show)

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


Attachments
Proposed patch for fixing xmame 0.83.1 build issue (xmame-0.83.1-gltool.h.diff,264 bytes, patch)
2004-08-22 14:16 UTC, Dan Foster
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Clarence Risher 2004-07-13 13:46:15 UTC
Compiling src/unix/frameskip-drivers/barath.c ...
video-drivers/glgen.c: In function `InitVScreen':
video-drivers/glgen.c:981: error: `GL_COLOR_INDEX8_EXT' undeclared (first use in this function)
video-drivers/glgen.c:981: error: (Each undeclared identifier is reported only once
video-drivers/glgen.c:981: error: for each function it appears in.)
video-drivers/glgen.c:983: error: `GL_COLOR_INDEX16_EXT' undeclared (first use in this function)
video-drivers/glgen.c: In function `InitTextures':
video-drivers/glgen.c:1309: error: `GL_TEXTURE_INDEX_SIZE_EXT' undeclared (first use in this function)
make[2]: *** [../../xmame.obj/unix.xgl/video-drivers/glgen.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/xmame-0.83.1/work/xmame-0.83.1/src/unix'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/xmame-0.83.1/work/xmame-0.83.1/src/unix'
make: *** [xmame.obj/unix.xgl/osdepend.a] Error 2

!!! ERROR: games-emulation/xmame-0.83.1 failed.
!!! Function src_compile, Line 175, Exitcode 2
!!! emake failed (xgl)


Reproducible: Always
Steps to Reproduce:
1. emerge xmame

Actual Results:  
compile failed

Expected Results:  
compile succeeds

Portage 2.0.50-r5 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.7-gentoo-r8)
=================================================================
System uname: 2.6.7-gentoo-r8 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox usersandbox usrpriv"
GENTOO_MIRRORS="http://mirrors.tds.net/ http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm
gif gnome gpm gtk gtk2 guile imlib java jpeg kde libg++ libwww mad mikmod motif
mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-07-14 01:17:47 UTC
What are you using for X and opengl?

Try running opengl-update and try it again.
Comment 2 Clarence Risher 2004-07-14 08:51:40 UTC
both from gentoo ~x86:
*  x11-base/xfree
      Latest version installed: 4.3.0-r6
*  media-video/nvidia-glx
      Latest version installed: 1.0.6106


I have run opengl-update, to no avail.  I also get no such errors compiling other GL applications.
Comment 3 relaxed 2004-07-15 20:38:25 UTC
video-drivers/glgen.c: In function `InitVScreen':
video-drivers/glgen.c:981: error: `GL_COLOR_INDEX8_EXT' undeclared (first use in this function)
video-drivers/glgen.c:981: error: (Each undeclared identifier is reported only once
video-drivers/glgen.c:981: error: for each function it appears in.)
video-drivers/glgen.c:983: error: `GL_COLOR_INDEX16_EXT' undeclared (first use in this function)
video-drivers/glgen.c: In function `InitTextures':
video-drivers/glgen.c:1309: error: `GL_TEXTURE_INDEX_SIZE_EXT' undeclared (first use in this function)
make[2]: *** [../../xmame.obj/unix.xgl/video-drivers/glgen.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/xmame-0.83.1/work/xmame-0.83.1/src/unix'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/xmame-0.83.1/work/xmame-0.83.1/src/unix'
make: *** [xmame.obj/unix.xgl/osdepend.a] Error 2

!!! ERROR: games-emulation/xmame-0.83.1 failed.
!!! Function src_compile, Line 175, Exitcode 2
!!! emake failed (xgl)

same problem.
nvidia 1.0.6106  ( opengl-update didn't help)
latest xorg-x11

Comment 4 Sebastian Stumpf 2004-08-02 05:26:54 UTC
Same thing for me:
elysium root # emerge info
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.tiscali.nl/pub/mirror/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib apache apm avi berkdb cdr crypt cups directfb dvd encode foomaticdb gd gd-external gdbm gif gphoto2 gpm gtk gtk2 imap imlib java jpeg libg++ libwww mad mikmod motif mpeg mplayer mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl php png python quicktime readline ruby scanner sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"

x11-base/opengl-update-1.7.2
media-video/nvidia-glx-1.0.6106
Comment 5 Dan Foster 2004-08-16 13:58:55 UTC
I also ran into this bug.

Suggested fix (which worked for me) was to modify src/unix/video-drivers/gltool.h and add #include <GL/glext.h> after the two includes for GL/gl.h and GL/glu.h.
Comment 6 Dan Foster 2004-08-22 14:16:30 UTC
Created attachment 37968 [details, diff]
Proposed patch for fixing xmame 0.83.1 build issue

The build error is related to missing definitions. The definitions are in
<GL/glext.h> so it appears that the source tree is missing a reference to this
header file.

The proposed patch corrects that.
Comment 7 SpanKY gentoo-dev 2004-08-30 16:30:00 UTC
seems to work fine for me with 0.86