gcc -fno-strict-aliasing -DNDEBUG -O3 -march=athlon-xp -funroll-loops -pipe -fomit-frame-pointer -fPIC -DGLX_PLATFORM -I/usr/include -I/usr/local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Isrc/gle/src -I/usr/include/python2.3 -c src/interface/GLUT.c -o build/temp.linux-i686-2.3/src/interface/GLUT.o src/interface/GLUT.c:6:21: GL/glut.h: No such file or directory In file included from src/interface/GLUT.c:21: src/interface/GLUT.0001.inc: In function `_PyInt_AsFont': src/interface/GLUT.0001.inc:1120: error: `GLUT_STROKE_ROMAN' undeclared (first use in this function) src/interface/GLUT.0001.inc:1120: error: (Each undeclared identifier is reported only once src/interface/GLUT.0001.inc:1120: error: for each function it appears in.) src/interface/GLUT.0001.inc:1122: error: `GLUT_STROKE_MONO_ROMAN' undeclared (first use in this function) src/interface/GLUT.0001.inc:1124: error: `GLUT_BITMAP_9_BY_15' undeclared (first use in this function) src/interface/GLUT.0001.inc:1126: error: `GLUT_BITMAP_8_BY_13' undeclared (first use in this function) src/interface/GLUT.0001.inc:1128: error: `GLUT_BITMAP_TIMES_ROMAN_10' undeclared (first use in this function) src/interface/GLUT.0001.inc:1130: error: `GLUT_BITMAP_TIMES_ROMAN_24' undeclared (first use in this function) error: command 'gcc' failed with exit status 1 !!! ERROR: dev-python/pyopengl-2.0.0.44 failed. !!! Function distutils_src_compile, Line 38, Exitcode 1 !!! compilation failed Manually emerging media-libs/glut fixed this for me, but I don't see any dependency on glut anywhere (except with USE=opengl somewhere in KDE). Is this dependency simply missing or is it hiding somewhere else and my system is simply broken?
On my system I already had the current version of glut emerged, but re-emerging fixed my problem with pyopengl compiling. One thing that recently happened on my system since I previously compiled glut was that I upgraded to xorg-x11, and had manually deleted all the directories from my old xfree installation after unmerging xfree. I'm now using the ~x86 version of xorg.
Closing. pyopengl now depends on virtual/glut