checking for glGetError in -lGL... no configure: error: Cannot find required GL library configure:581: checking for a BSD compatible install configure:634: checking whether build environment is sane configure:691: checking whether make sets ${MAKE} configure:737: checking for working aclocal configure:750: checking for working autoconf configure:763: checking for working automake configure:776: checking for working autoheader configure:789: checking for working makeinfo configure:882: checking host system type configure:903: checking build system type configure:923: checking for ranlib configure:953: checking for gcc configure:1066: checking whether the C compiler (gcc -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe ) works configure:1082: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe conftest.c 1>&5 configure:1108: checking whether the C compiler (gcc -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe ) is a cross-compiler configure:1113: checking whether we are using GNU C configure:1122: gcc -E conftest.c configure:1141: checking whether gcc accepts -g configure:1184: checking for ld used by GCC configure:1247: checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld GNU ld version 2.15.92.0.2 20040927 configure:1263: checking for BSD-compatible nm configure:1301: checking command to parse /usr/bin/nm -B output configure:1364: gcc -c -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe conftest.c 1>&5 configure:1368: /usr/bin/nm -B conftest.o | sed -n -e 's/^.* \([ABCDGISTW]\) *\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm configure:1420: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe conftest.c conftestm.o 1>&5 configure:1466: checking for _ prefix in compiled symbols configure:1504: checking whether ln -s works ltconfig:603: checking for object suffix ltconfig:604: gcc -c -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe conftest.c 1>&5 ltconfig:629: checking for executable suffix ltconfig:630: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe conftest.c 1>&5 ltconfig:776: checking if gcc PIC flag -fPIC works ltconfig:777: gcc -c -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -fPIC -DPIC conftest.c 1>&5 ltconfig:829: checking if gcc supports -c -o file.o ltconfig:830: gcc -c -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -o out/conftest2.o conftest.c 1>&5 ltconfig:862: checking if gcc supports -c -o file.lo ltconfig:863: gcc -c -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -c -o conftest.lo conftest.c 1>&5 ltconfig:914: checking if gcc supports -fno-rtti -fno-exceptions ltconfig:915: gcc -c -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>& 5 ltconfig:958: checking if gcc static flag -static works ltconfig:959: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -static conftest.c 1>&5 GNU ld version 2.15.92.0.2 20040927 ltconfig:1635: checking if global_symbol_pipe works ltconfig:1636: gcc -c -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe conftest.c 1>&5 ltconfig:1639: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm" ltconfig:1691: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -fno-builtin conftest.c conftstm.o 1>&5 configure:1850: checking for a BSD compatible install configure:1905: checking for ranlib configure:1935: checking for gcc configure:2048: checking whether the C compiler (gcc -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe ) works configure:2064: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe conftest.c 1>&5 configure:2090: checking whether the C compiler (gcc -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe ) is a cross-compiler configure:2095: checking whether we are using GNU C configure:2123: checking whether gcc accepts -g configure:2156: checking for POSIXized ISC configure:2177: checking whether make sets ${MAKE} configure:2204: checking how to run the C preprocessor configure:2225: gcc -E conftest.c >/dev/null 2>conftest.out configure:2284: checking for ANSI C header files configure:2297: gcc -E conftest.c >/dev/null 2>conftest.out configure:2364: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe conftest.c 1>&5 configure:2391: checking for memcpy configure:2419: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe conftest.c 1>&5 configure:2403: warning: conflicting types for built-in function `memcpy' configure:2543: checking for X configure:2857: checking for dnet_ntoa in -ldnet configure:2876: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -Wall conftest.c -ldnet -lm 1>&5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldnet collect2: ld returned 1 exit status configure: failed program was: #line 2865 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dnet_ntoa(); int main() { dnet_ntoa() ; return 0; } configure:2898: checking for dnet_ntoa in -ldnet_stub configure:2917: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -Wall conftest.c -ldnet_stub -lm 1>&5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldnet_stub collect2: ld returned 1 exit status configure: failed program was: #line 2906 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dnet_ntoa(); int main() { dnet_ntoa() ; return 0; } configure:2946: checking for gethostbyname configure:2974: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -Wall conftest.c -lm 1>&5 configure:3044: checking for connect configure:3072: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -Wall conftest.c -lm 1>&5 configure:3136: checking for remove configure:3164: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -Wall conftest.c -lm 1>&5 configure:3228: checking for shmat configure:3256: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -Wall conftest.c -lm 1>&5 configure:3329: checking for IceConnectionNumber in -lICE configure:3348: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -Wall -L/usr/X11R6/lib conftest.c -lICE -lm 1>&5 configure:3381: checking for glGetError in -lGL configure:3400: gcc -o conftest -O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe -Wall conftest.c -lGL -lSM -lICE -L/usr/ X11R6/lib -lX11 -lm 1>&5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lGL collect2: ld returned 1 exit status configure: failed program was: #line 3389 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char glGetError(); int main() { glGetError() ; return 0; } Reproducible: Always Steps to Reproduce: 1.emerge xscreensaver (Requires Gle) 2. 3. Actual Results: It failed during the checking stage of the emerge Expected Results: Downloaded the required components Portage 2.0.51-r15 (default-linux/x86/2004.2, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r10 i686) ================================================================= System uname: 2.6.8-gentoo-r10 i686 AMD Athlon(TM) XP 2100+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 26 2005, 15:13:59)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.8.5-r2, 1.6.3, 1.7.9, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r3 virtual/os-headers: 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -mcpu=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo http://mirror.isp.net.au/pub/gentoo/ ftp://mirror.isp.net.au/pub/gentoo/ ftp://mirror.averse.net/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cups debug directfb divx4linux dvd dvdr encode f77 fam flac font-server foomaticdb fortran ftp gdbm ggi gif gphoto2 gpm gtk2 imagemagick imap imlib ipv6 jabber java jpeg junit kde libg++ libwww mad mikmod motif mpeg ncurses nls offensive oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcpd tiff truetypetruetype-fonts type1-fonts usb videos xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
I had the same problem. Ensure you have the latest opengl-update and as root run opengl-update $(opengl-update --get-implementation) Fixed it for me (once I removed /usr/lib32 - was breaking the symlinking of GL includes)
Removing the /usr/lib32 plus an opengl-update nvidia fixed the problem for me as well. The directory was empty, does anyone know what it belongs to, qpkg -f gave me nothing.
A broken version of opengl-update was creating /usr/lib32 for a while.
2.1.1 works even though that directory is there. I'll update the ebuild to check for that directory and remove it if it's empty for 2.2 (which will be in package.mask) which will also change the behavior to using the global headers over the implementation's if present.
*** Bug 101867 has been marked as a duplicate of this bug. ***
*** Bug 118397 has been marked as a duplicate of this bug. ***