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"
same error with CXXFLAGS="-pipe" ?
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
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?
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.
hmmm. I'm using nvidia-glx-1.0.4496. that seems to be the only difference.
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.
*** This bug has been marked as a duplicate of 37517 ***
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?
*** Bug 47920 has been marked as a duplicate of this bug. ***
Closing to clean up after bugzilla upgrade. reopen if closed in error. Thanks.
clean up bug list after bugzilla update