blackhat root # emerge crack-attack Calculating dependencies ...done! >>> emerge (1 of 1) games-arcade/crack-attack-1.1.10 to / >>> md5 src_uri ;-) crack-attack-1.1.10.tar.gz >>> Unpacking source... >>> Unpacking crack-attack-1.1.10.tar.gz to /var/tmp/portage/crack-attack-1.1.10/work >>> Source unpacked. creating cache ./config.cache checking for a BSD compatible install... /bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... gcc checking whether the C compiler (gcc -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY ) works... yes checking whether the C compiler (gcc -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... g++ checking whether the C++ compiler (g++ -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY ) works... yes checking whether the C++ compiler (g++ -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether g++ accepts -g... yes checking for a BSD compatible install... /bin/install -c checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for limits.h... yes checking for unistd.h... yes checking for sys/socket.h... yes checking for sys/poll.h... yes checking for netinet/in.h... yes checking for netdb.h... yes checking for arpa/inet.h... yes checking for sys/stat.h... yes checking for working const... yes checking for inline... inline checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for socket... yes checking for poll... yes updating cache ./config.cache creating ./config.status creating Makefile creating src/Makefile creating data/Makefile creating doc/Makefile creating src/config.h Making all in src make[1]: Entering directory `/var/tmp/portage/crack-attack-1.1.10/work/crack-attack-1.1.10/src' g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c Attack.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c Block.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c BlockManager.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c CelebrationManager.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c Clock.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c ComboManager.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c ComboTabulator.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c Communicator.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c Controller.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c CountDownManager.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c Creep.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c Displayer.cxx g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"' -march=i686 -O5 -fomit-frame-pointer -pipe -DGL_GLEXT_LEGACY -s -c Game.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]: *** 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 blackhat root # emerge info Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-gentoo-r2) ================================================================= System uname: 2.6.3-gentoo-r2 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.9 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O5 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/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="-march=i686 -O5 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc fixpackages sandbox usersandbox" GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.caliu.info/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.tiscali.nl/gentoo/ http://gentoo.mirror.sdv.fr http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://gentoo.math.bme.hu http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.lug.ro/gentoo http://gentoo.linux.no/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://128.213.5.34/gentoo/ http://ftp.iasi.roedu.net/mirrors/gentoo.org/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow X aalib alsa apm arts avi berkdb bindist bonobo cdr crypt cscope cups curl dga directfb doc dvd dvdr emacs emacs-w3 encode esd ethereal fbcon flash foomaticdb gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml gtksharp imlib ipv6 java jikes jpeg junit kde ldap leim libg++ libwww mad maildir memlimit mikmod mmx motif mozilla mpeg mule mysql nas ncurses nls nocd oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb videos wmf wxwindows x86 xinerama xml xml2 xmms xosd xv zlib"
try playing around with "opengl-update xfree && emerge crack-attack && opengl-update ati/nvidia"
That did the trick. Thanks.
*** Bug 51872 has been marked as a duplicate of this bug. ***
*** Bug 53456 has been marked as a duplicate of this bug. ***
Just a question, would it be possible to have the ebuild detect whether we are using nvidia opengl and do automatically the changes?
A remark: with xorg-x11 it should be: opengl-update xorg-x11 && emerge crack-attack && opengl-update ati/nvidia
people shouldnt have to screw around with `opengl-update` to make this compile
ok added a patch (1.1.10-GL.patch) and tested it on nvidia-glx-1.0.6106 and x11-base/xorg-x11-6.7.0-r1 ... went smoothly for me :)
Thank you very much. :)