Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44821 - games-arcade/crack-attack-1.1.10 fails to compile: `GL_MAX_TEXTURE_UNITS_ARB' undeclared
Summary: games-arcade/crack-attack-1.1.10 fails to compile: `GL_MAX_TEXTURE_UNITS_ARB'...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-16 01:14 UTC by Keith Constable
Modified: 2011-09-14 20:36 UTC (History)
1 user (show)

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 Keith Constable 2004-03-16 01:14:12 UTC
g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"'    -O3 -mcpu=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse -DGL_GLEXT_LEGACY -s -c Displayer.cxx
Displayer.cxx: In static member function `static void Displayer::initialize()':
Displayer.cxx:103: error: `GL_MAX_TEXTURE_UNITS_ARB' undeclared (first use this 
   function)
Displayer.cxx:103: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
make[1]: *** [Displayer.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/crack-attack-1.1.10/work/crack-attack-1.1.10/src'
make: *** [all-recursive] Error 1

--

Using nvidia's opengl implementation via 'opengl-update nvidia'.

--

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-ck1)
=================================================================
System uname: 2.6.4-ck1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse"
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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://lug.mtu.edu/gentoo/source"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa avi cdr crypt cups dga dv dvd dvdr encode flac foomaticdb gif gpm gtk gtk2 gtkhtml imlib java jpeg libg++ libwww mad mikmod mmx motif moznocompose moznoirc moznomail mpeg ncurses oggvorbis opengl pam pdflib perl png python qt quicktime readline ruby sdl slang speex spell sse ssl svga tcltk tcpd tetex theora tiff truetype wmf x86 xml xml2 xmms xv zlib"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-03-16 23:02:40 UTC
same error with CXXFLAGS="-pipe" ?
Comment 2 Keith Constable 2004-03-17 00:20:57 UTC
Yes:

g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"'    -pipe -DGL_GLEXT_LEGACY -s -c Displayer.cxx
Displayer.cxx: In static member function `static void Displayer::initialize()':
Displayer.cxx:103: error: `GL_MAX_TEXTURE_UNITS_ARB' undeclared (first use this 
   function)
Displayer.cxx:103: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"'    -pipe -DGL_GLEXT_LEGACY -s -c Game.cxx
make[1]: *** [Displayer.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/crack-attack-1.1.10/work/crack-attack-1.1.10/src'
make: *** [all-recursive] Error 1

!!! ERROR: games-arcade/crack-attack-1.1.10 failed.
!!! Function src_compile, Line 32, Exitcode 2
!!! emake failed
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-03-17 04:08:57 UTC
hmmm, on my system I have GL_MAX_TEXTURE_UNITS_ARB defined in:

/usr/include/SDL/SDL_opengl.h
/usr/lib/opengl/nvidia/include/gl.h
/usr/lib/opengl/xfree/include/gl.h
/usr/X11R6/include/GL/glext.h

Where is it on your system?
Comment 4 Keith Constable 2004-03-17 12:40:29 UTC
A find -exec grep returns these files:

/usr/lib/opengl/xfree/include/gl.h
/usr/lib/opengl/nvidia/include/glext.h
/usr/X11R6/include/GL/glext.h
/usr/include/SDL/SDL_opengl.h

Why is it in /usr/lib/opengl/nvidia/include/gl.h on your system, but in /usr/lib/opengl/nvidia/include/glext.h on my system?  I'm using nvidia-glx-1.0.5336-r1.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2004-03-17 12:53:16 UTC
hmmm.  I'm using nvidia-glx-1.0.4496.  that seems to be the only difference.
Comment 6 Keith Constable 2004-03-17 17:48:28 UTC
Hmm, nvidia added the extra glext.h file with version 5328.

Linking /usr/lib/opengl/nvidia/include/glext.h to /usr/include/GL/glext.h (replacing xfree's glext.h) doesn't change a thing.

With or without the above symlink and without -DGL_GLEXT_LEGACY causes it to fail later in the build:
g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/local/share/crack-attack/"'    -g -O2 -s -c DrawGarbage.cxx
DrawGarbage.cxx: In static member function `static void 
   Displayer::drawGarbage()':
DrawGarbage.cxx:511: error: `GL_TEXTURE1_ARB' undeclared (first use this 
   function)
DrawGarbage.cxx:511: error: (Each undeclared identifier is reported only once 
   for each function it appears in.)
DrawGarbage.cxx:511: error: `glActiveTextureARB' undeclared (first use this 
   function)
DrawGarbage.cxx:532: error: `GL_TEXTURE0_ARB' undeclared (first use this 
   function)
make[1]: *** [DrawGarbage.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/crack-attack-1.1.10/work/crack-attack-1.1.10/src'
make: *** [all-recursive] Error 1

I did that make outside of the emerge/ebuild.

I'm at a loss.
Comment 7 SpanKY gentoo-dev 2004-03-17 18:44:34 UTC

*** This bug has been marked as a duplicate of 37517 ***
Comment 8 Keith Constable 2004-03-17 18:51:43 UTC
I realize it's easier to just mark it as a duplicate, but isn't it more accurate to say that this bug Depends on Bug 37517?
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2004-04-15 16:03:29 UTC
*** Bug 47920 has been marked as a duplicate of this bug. ***
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2005-05-19 09:05:55 UTC
Closing to clean up after bugzilla upgrade.  reopen if closed in error.  Thanks.
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2011-09-14 20:36:26 UTC
clean up bug list after bugzilla update