Section1 portage # emerge app-misc/xscreensaver/xscreensaver-4.00.ebuild Calculating dependencies.. done! >>> emerge media-libs/gle-3.0.1-r1 to / >>> md5 ;-) gle-3.0.1.tar.gz >>> Unpacking source... >>> Unpacking gle-3.0.1.tar.gz >>> Source unpacked. creating cache ./config.cache <snip other config output> checking for glutSwapBuffers in -lglut... no configure: error: Cannot find required glut library !!! ERROR: the ./configure command did not complete successfully. !!! ("./configure --with-x --prefix=/usr --mandir=/usr/share/man") !!! Since this is a critical task, ebuild will be stopped. !!! emerge aborting on /usr/portage/media-libs/gle/gle-3.0.1-r1.ebuild . Section1 portage #
This bug is actually about media-libs/gle and not xscreensaver.
Tracking it down it seems to be a problem with media-libs/mesa-glu. When compiling the glut test program that it used by configure by hand, I get the following error messages : gcc -o conftest -g -O2 -Wall conftest.c -lglut -lSM -lICE -lGLU -lGL -L/usr/X11R6/lib -lX11 -lm /usr/lib/libglut.so: undefined reference to `glXBindChannelToWindowSGIX' /usr/lib/libglut.so: undefined reference to `glXCreateContextWithConfigSGIX' /usr/lib/libglut.so: undefined reference to `glXGetFBConfigAttribSGIX' /usr/lib/libglut.so: undefined reference to `glXQueryChannelDeltasSGIX' /usr/lib/libglut.so: undefined reference to `glXChannelRectSyncSGIX' /usr/lib/libglut.so: undefined reference to `glXChannelRectSGIX' /usr/lib/libglut.so: undefined reference to `glXQueryChannelRectSGIX' /usr/lib/libglut.so: undefined reference to `glXGetFBConfigFromVisualSGIX' This makes me believe that there's a problem with the libglut.so library itself. I've tried re-merging mesa-glu to be sure it's got nothing to do with upgrading X to 4.2.0 and it doesn't.
added media-libs/glut again which fixes it for me (use glut-3.7-r1).
xscreensaver build ok here.