I've built everything with OpenGL support, eccept KDE (to use prelink effectively since I have nvidia drivers). However, I can't build kdeartwork-3.2.0-rc1: ACCEPT_KEYWORDS=~x86 USE="-opengl" emerge kdeartwork [...] /bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib -R /usr/kde/3.2/lib -R /usr/qt/3/lib -R /usr/X11R6/lib -o kflux.kss Flux.o -lkdeui -lkscreensaver -lm /bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib -R /usr/kde/3.2/lib -R /usr/qt/3/lib -R /usr/X11R6/lib -o keuphoria.kss Euphoria.o -lkdeui -lkscreensaver -lm Flux.o(.text+0x22de): In function `FluxWidget::resizeGL(int, int)': : undefined reference to `gluPerspective' Flux.o(.text+0x2b3b): In function `FluxWidget::updateParameters()': : undefined reference to `gluNewQuadric' Flux.o(.text+0x2b8d): In function `FluxWidget::updateParameters()': : undefined reference to `gluSphere' Flux.o(.text+0x2b95): In function `FluxWidget::updateParameters()': : undefined reference to `gluDeleteQuadric' collect2: ld returned 1 exit status make[3]: *** [kflux.kss] Error 1 make[3]: *** Waiting for unfinished jobs.... Euphoria.o(.text+0x2ac7): In function `EuphoriaWidget::paintGL()': : undefined reference to `gluPerspective' Euphoria.o(.text+0x2e52): In function `EuphoriaWidget::paintGL()': : undefined reference to `gluPerspective' Euphoria.o(.text+0x3195): In function `EuphoriaWidget::resizeGL(int, int)': : undefined reference to `gluPerspective' Euphoria.o(.text+0x3912): In function `EuphoriaWidget::updateParameters()': : undefined reference to `gluBuild2DMipmaps' collect2: ld returned 1 exit status make[3]: *** [keuphoria.kss] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdeartwork-3.2.0_rc1/work/kdeartwork-3.1.95/kscreensaver/kdesavers' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdeartwork-3.2.0_rc1/work/kdeartwork-3.1.95/kscreensaver' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdeartwork-3.2.0_rc1/work/kdeartwork-3.1.95' make: *** [all] Error 2 !!! ERROR: kde-base/kdeartwork-3.2.0_rc1 failed. !!! Function kde_src_compile, Line 128, Exitcode 2 !!! died running emake, kde_src_compile:make Note that all kde packets have been compiled *without* the opengl flag. I'm using nvidia-kernel and nvidia-glx v1.0.5328-r1. If I enable the opengl flag all goes well. $ emerge info Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1) ================================================================= System uname: 2.6.1 i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -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/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X X509 aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt cscope cups curl dga directfb doc dvb dvd dvdr encode esd faad fbcon flash foomaticdb gd gdbm ggi gif gnome gphoto2 gpm gtk gtk2 guile imap imlib ipv6 java jikes joystick jpeg kde kerberos krb4 lcms ldap libg++ libwww mad mcal memlimit mikmod mmx motif mozilla moznoirc mozp3p mozsvg mpeg mpi mysql ncurses nls nptl odbc offensive oggvorbis opengl oss pam parse-clocks pdflib perl pic png ppds prelude python qt quicktime readline samba scanner sdl skey slang slp snmp socks5 spell sse ssl svga tcltk tcpd tetex tiff truetype v4l vim-with-x wmf wxwindows x86 xchattext xml xml2 xmms xv xvid zlib linguas_it"
A patch for this situation has been proposed. See KDE Traffic #69: http://kt.zork.net/kde/kde20031130_69.html#5
This bug is still valid for 3.2.2 when using -opengl. I'm not using nvidia at all. What's the point in allowing -opengl if it doesn't compile?
I also had this problem with KDE 3.2.2. What made this work with KDE 3.2.1? Can that patch be applied to 3.2.2 too?
*** This bug has been marked as a duplicate of 15195 ***