When I try to build gltron, I became following error message: globals.c:101:1: "GL_CLAMP_TO_EDGE" redefined In file included from /usr/include/SDL/SDL_opengl.h:44, from ../../src/include/video/model.h:16, from ../../src/include/video/video.h:6, from globals.c:2: /usr/include/GL/gl.h:1075:1: this is the location of the previous definition m gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6) I solve the problem as following: Changing global.c line 101 from #ifndef GL_VERSION_1_2 # define GL_CLAMP_TO_EDGE GL_CLAMP #endif to #ifndef GL_VERSION_1_2 # ifndef GL_CLAMP_TO_EDGE # define GL_CLAMP_TO_EDGE GL_CLAMP # endif #endif A message with the same problem can be found at http://www.gltron.org/faq-update.php
Created attachment 43615 [details, diff] Patch like manual description
works fine for me as is. What are you using for your opengl?
oh, and how about posting the output of emerge --info please.
... and reopen when you're provided this information. Thanks.
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r4 i686) ================================================================= System uname: 2.6.9-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /opt/jetty/etc /usr/X11R6/lib/X11/xkb /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/fax /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 /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://gentoo.osuosl.org" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X X509 aac aalib acl acpi acpi4linux activefilter aim alsa ansi apache2 arts async audiofile avi berkdb bidi bitmap-fonts bluetooth bootsplash bsh bzlib cap caps cddb cdf cdparanoia cdr cdrom cgi chroot clanJavaScript clanVoice codecs cpdflib crypt ctype cups curl curlwrappers dba dga dio directfb divx4linux djbfft dmx dnd doc dts dv dvb dvd dvdr dvdread encode erandom esd exif expat extensions f77 faac faad fam fastcgi fax fbcon fdftk ffmpeg fftw flac flash flood foomaticdb fortran fpx freetype gcj gd gdbm geoip ggi gif gimp gimpprint glade glut gnokii gnome gnutls gphoto2 gps graphviz gs gstreamer gtk gtk2 gtkhtml gui guile hbci hdf hub hyperwave-api iconv icq idea ieee1394 image imagemagick imap imlib inifile innodb intl iodbc ipv6 irda irmc isdn jabber jack jack-tmpfs java javadoc javamail javascript jbig jce jikes joystick jp2 jpeg jpeg2k junit justify jython kde kerberos latex lcd lcms ldap lesstif libcaca libdsk libg++ libwww lirc lm_sensors log4j ltsp lua lzo lzw lzw-tiff mad mailbox maildir mailwrapper mbox mcve md5sum mhash mikmod mime ming mixer mmap mmx mmx2 mng moneyplex monkey motif mozdevelop mozilla mozsvg mp3 mpeg mpeg4 mplayer mppe-mppc msession msn mysql mysqli ncurses network nis nls no-old-linux nptl ntlm nvidia nviz objc odbc oggvorbis opengl oscar oss pam pcntl pcre pcsc-lite pda pdf pdflib perl pfpro php physfs pic pie png posix postgres postgresql povray ppds print procmail pthreads pwdb python qt quicktime quotasreadline readline real regexp rtc ruby samba sasl scanner sdl session skey slang slp smartcardsmime sndfile snmp soap sockets socks5 sox spamassassin speex spell spl sse sse2 ssl svg svga sysvipc szip tcltk tcpd tetex theora threads tidy tiff timidity tokenizer transcode truetype unicode usb userlocales vhosts wddx wifi winbind wmf wsconvert wxwin wxwindows x86 xalan xerces xine xinerama xml xml-rpc xml2 xmms xosd xpm xprint xscreensaver xsl xv xvid xvmc yahoo yaz yv12 zlib video_cards_nvidia linguas_de" nvidia 1.0.6629
What's the output from: head -vn3 /var/db/pkg/media-video/nvidia-glx-*/*ebuild
==> /var/db/pkg/media-video/nvidia-glx-1.0.6629/nvidia-glx-1.0.6629.ebuild <== # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/nvidia-glx-1.0.6629.ebuild,v 1.1 2004/11/07 01:52:37 cyfred Exp $
remerge nvidia-glx and try it again please. There's been some changes to that ebuild since you merged it.
Indeed it with the changed nvidia-glx ebuild it works!!! Thanks...
Thanks for confirming. Enjoy.