SDL_perl.xs: In function `XS_SDL_NetResolveIP': SDL_perl.xs:4027: warning: assignment discards qualifiers from pointer target type OpenGL.xs: In function `XS_SDL__OpenGL_ConvolutionParameter': OpenGL.xs:1070: error: `GL_CONVOLUTION_BORDER_MODE' undeclared (first use in this function) OpenGL.xs:1070: error: (Each undeclared identifier is reported only once OpenGL.xs:1070: error: for each function it appears in.) OpenGL.xs:1076: error: `GL_CONVOLUTION_FILTER_SCALE' undeclared (first use in this function) OpenGL.xs:1077: error: `GL_CONVOLUTION_FILTER_BIAS' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_CONSTANT_COLOR': OpenGL.xs:3048: error: `GL_CONSTANT_COLOR' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_ONE_MINUS_CONSTANT_COLOR': OpenGL.xs:3055: error: `GL_ONE_MINUS_CONSTANT_COLOR' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_CONSTANT_ALPHA': OpenGL.xs:3062: error: `GL_CONSTANT_ALPHA' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_ONE_MINUS_CONSTANT_ALPHA': OpenGL.xs:3069: error: `GL_ONE_MINUS_CONSTANT_ALPHA' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_CONVOLUTION_RED_SCALE': OpenGL.xs:3581: error: `GL_POST_CONVOLUTION_RED_SCALE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_CONVOLUTION_GREEN_SCALE': OpenGL.xs:3588: error: `GL_POST_CONVOLUTION_GREEN_SCALE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_CONVOLUTION_BLUE_SCALE': OpenGL.xs:3595: error: `GL_POST_CONVOLUTION_BLUE_SCALE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_CONVOLUTION_ALPHA_SCALE': OpenGL.xs:3602: error: `GL_POST_CONVOLUTION_ALPHA_SCALE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_CONVOLUTION_RED_BIAS': OpenGL.xs:3609: error: `GL_POST_CONVOLUTION_RED_BIAS' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_CONVOLUTION_GREEN_BIAS': OpenGL.xs:3616: error: `GL_POST_CONVOLUTION_GREEN_BIAS' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_CONVOLUTION_BLUE_BIAS': OpenGL.xs:3623: error: `GL_POST_CONVOLUTION_BLUE_BIAS' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_CONVOLUTION_ALPHA_BIAS': OpenGL.xs:3630: error: `GL_POST_CONVOLUTION_ALPHA_BIAS' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_COLOR_MATRIX_RED_SCALE': OpenGL.xs:3637: error: `GL_POST_COLOR_MATRIX_RED_SCALE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_COLOR_MATRIX_GREEN_SCALE': OpenGL.xs:3644: error: `GL_POST_COLOR_MATRIX_GREEN_SCALE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_COLOR_MATRIX_BLUE_SCALE': OpenGL.xs:3651: error: `GL_POST_COLOR_MATRIX_BLUE_SCALE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_COLOR_MATRIX_ALPHA_SCALE': OpenGL.xs:3658: error: `GL_POST_COLOR_MATRIX_ALPHA_SCALE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_COLOR_MATRIX_RED_BIAS': OpenGL.xs:3665: error: `GL_POST_COLOR_MATRIX_RED_BIAS' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_COLOR_MATRIX_GREEN_BIAS': OpenGL.xs:3672: error: `GL_POST_COLOR_MATRIX_GREEN_BIAS' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_COLOR_MATRIX_BLUE_BIAS': OpenGL.xs:3679: error: `GL_POST_COLOR_MATRIX_BLUE_BIAS' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_COLOR_MATRIX_ALPHA_BIAS': OpenGL.xs:3686: error: `GL_POST_COLOR_MATRIX_ALPHA_BIAS' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_COLOR_TABLE': OpenGL.xs:4706: error: `GL_COLOR_TABLE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_CONVOLUTION_COLOR_TABLE': OpenGL.xs:4713: error: `GL_POST_CONVOLUTION_COLOR_TABLE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_POST_COLOR_MATRIX_COLOR_TABLE': OpenGL.xs:4720: error: `GL_POST_COLOR_MATRIX_COLOR_TABLE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_PROXY_COLOR_TABLE': OpenGL.xs:4727: error: `GL_PROXY_COLOR_TABLE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_PROXY_POST_CONVOLUTION_COLOR_TABLE': OpenGL.xs:4734: error: `GL_PROXY_POST_CONVOLUTION_COLOR_TABLE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE': OpenGL.xs:4741: error: `GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_CONVOLUTION_1D': OpenGL.xs:4748: error: `GL_CONVOLUTION_1D' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_CONVOLUTION_2D': OpenGL.xs:4755: error: `GL_CONVOLUTION_2D' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_SEPARABLE_2D': OpenGL.xs:4762: error: `GL_SEPARABLE_2D' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_CONVOLUTION_BORDER_MODE': OpenGL.xs:4769: error: `GL_CONVOLUTION_BORDER_MODE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_CONVOLUTION_FILTER_SCALE': OpenGL.xs:4776: error: `GL_CONVOLUTION_FILTER_SCALE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_CONVOLUTION_FILTER_BIAS': OpenGL.xs:4783: error: `GL_CONVOLUTION_FILTER_BIAS' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_REDUCE': OpenGL.xs:4790: error: `GL_REDUCE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_CONSTANT_BORDER': OpenGL.xs:4797: error: `GL_CONSTANT_BORDER' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_REPLICATE_BORDER': OpenGL.xs:4804: error: `GL_REPLICATE_BORDER' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_HISTOGRAM': OpenGL.xs:4811: error: `GL_HISTOGRAM' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_PROXY_HISTOGRAM': OpenGL.xs:4818: error: `GL_PROXY_HISTOGRAM' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_MINMAX': OpenGL.xs:4825: error: `GL_MINMAX' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_MIN': OpenGL.xs:4832: error: `GL_MIN' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_MAX': OpenGL.xs:4839: error: `GL_MAX' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_FUNC_ADD': OpenGL.xs:4846: error: `GL_FUNC_ADD' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_FUNC_SUBTRACT': OpenGL.xs:4853: error: `GL_FUNC_SUBTRACT' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_FUNC_REVERSE_SUBTRACT': OpenGL.xs:4860: error: `GL_FUNC_REVERSE_SUBTRACT' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_COLOR_TABLE_SCALE': OpenGL.xs:4867: error: `GL_COLOR_TABLE_SCALE' undeclared (first use in this function) OpenGL.xs: In function `XS_SDL__OpenGL_GL_COLOR_TABLE_BAIS': OpenGL.xs:4874: error: `GL_COLOR_TABLE_BIAS' undeclared (first use in this function) distcc[28187] ERROR: compile OpenGL.c on localhost failed make: *** [OpenGL.o] Error 1 !!! ERROR: dev-perl/sdl-perl-1.20.0 failed. !!! Function perl-module_src_compile, Line 58, Exitcode 2 !!! compilation failed any ideas? root@eNTi $ emerge --info Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-rc 3-mm2) ================================================================= System uname: 2.6.7-rc3-mm2 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.5.1 distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -Os -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s hare/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/ dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/c onfig/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache digest distcc fixpackages sandbox" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gen too.blueyonder.co.uk ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http:/ /www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://gentoo.inode.at/source/ ft p://mirror.switch.ch/mirror/gentoo/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow S3TC X aalib alsa apache2 apm async avi berkdb cdr crypt cups dga dir ectfb doc dvd dvdr encode faad flac fltk foomaticdb freetype gdbm gif gimpprint glut gphoto2 gpm gtk gtk2 guile icq imagemagick imlib imlib2 java jikes jpeg jun it lcms ldap libg++ libwww mad maildir mcal mikmod mmap mmx mng moznocompose moz noirc moznomail mpeg music mysql nas ncurses nls nvidia offensive oggvorbis open al opengl operanom2 oscar oss pam pdflib perl png ppds python qt quicktime readl ine samba sdl slang slp spell sse ssl stencil-buffer stroke tcltk tcpd tetex thr eads tiff transcode truetype type1 unicode usb utf8 videos vim-with-x wmf wxwind ows x86 xface xml xml2 xmms xosd xv xvid zlib"
I can confirm this. It happened only after I upgraded to nvidia-kernel-1.0.6106 and nvidia-glx-1.0.6106. I also tried disabling distcc, just in case that was a problem. Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.6) ================================================================= System uname: 2.6.6 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.oregonstate.edu" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi alsa apm avi berkdb cdr crypt cups dvd encode fbcon foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad maildir mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pda pdflib perl png python qt quicktime readline sasl sdl slang spell ssl svga tcpd tiff truetype x86 xml xml2 xmms xv zlib"
I am also having this problem Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r8) ================================================================= System uname: 2.6.7-gentoo-r8 i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon -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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://www.zentek-international.com/mirrors/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3now X alsa apm arts avi berkdb bonobo cdr crypt cups dvd encode esd evo fbcon foomaticdb gb gdbm gif gnome gpm gstreamer gtk gtk2 imap imlib java jpeg ldap libg++ libwww mad mikmod mmx motif mozilla mpeg msn ncurses nls oggvorbis opengl oscar oss pam pda pdf pdflib perl png ppds python quicktime readline samba scanner sdl slang spell ssl svga tcpd tetex tiff truetype trutype usb x86 xml xml2 xmms xv zlib"
confirmed. 6106 drivers from nvidia are the problem (changed the summary)
I can confirm this too, but the good old: opengl-update xorg-x11 && emerge crack-attack && opengl-update nvidia seemed to fix it.
And of course the emerge part should be emerge sdl-perl, I just copied it from a another bug report and forgot to change it :( Seems to be a common problem.
i cheated and added sdl-perl-1.20.3 which seems to not have this problem :)