g++ -c -pipe -I/usr/include/mysql -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qglcolormap.o opengl/qglcolormap.cpp /var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/bin/moc opengl/qgl_x11.cpp -o .moc/release-shared-mt/qgl_x11.moc g++ -c -pipe -I/usr/include/mysql -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qsqlquery.o sql/qsqlquery.cpp In file included from opengl/qgl.h:79, from opengl/qgl.cpp:38: /usr/X11R6/include/GL/gl.h:62:22: GL/glext.h: No such file or directory make[1]: *** [.obj/release-shared-mt/qgl.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/src' make: *** [sub-src] Error 2 Reproducible: Always Steps to Reproduce: Portage 2.0.51_rc6 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.4.26 i686) ================================================================= System uname: 2.4.26 i686 Pentium II (Deschutes) Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/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=pentium2 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib apache apm arts avi berkdb bitmap-fonts crypt cups curl encode esd flash foomaticdb gd gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad memlimit mikmod mmx mod_php motif mozilla mpeg mysql ncures ncurses nls ogg oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline ruby sdl slang spell ssl svga tcpd tetex tiff truetype vorbis x86 xml2 xmms xprint xv zlib linguas_de linguas_nds"
You miss the opengl headers. They are provided by xfree, xorg or the implementations by nvidia, ati and matrox. I don't know why the aren't installed but you can tring playing with opengl-update. For example you can do an: opengl-update xorg-x11 to install the xorg headers.
*** This bug has been marked as a duplicate of 60857 ***