I'm running a Gentoo 1.4 beta/gcc 3.2 system. While trying to emerge wxPython, PyOpenGL-2.0.0.44 is emerged as a dependency. The compilation of PyOpenGL fails with the following error: cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory 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: `GLUT_STROKE_ROMAN' undeclared (first use in t his function) src/interface/GLUT.0001.inc:1120: (Each undeclared identifier is reported only o nce src/interface/GLUT.0001.inc:1120: for each function it appears in.) src/interface/GLUT.0001.inc:1122: `GLUT_STROKE_MONO_ROMAN' undeclared (first use in this function) src/interface/GLUT.0001.inc:1124: `GLUT_BITMAP_9_BY_15' undeclared (first use in this function) src/interface/GLUT.0001.inc:1126: `GLUT_BITMAP_8_BY_13' undeclared (first use in this function) src/interface/GLUT.0001.inc:1128: `GLUT_BITMAP_TIMES_ROMAN_10' undeclared (first use in this function) src/interface/GLUT.0001.inc:1130: `GLUT_BITMAP_TIMES_ROMAN_24' undeclared (first use in this function) error: command 'gcc' failed with exit status 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 2721, Exitcode 1 !!! (no error message) I'm not sure if this is a universal issue or only a gcc 3.2 issue, since I don't have a gcc 2.95 system available to test.
Created attachment 3698 [details] Updated PyOpenGL ebuild Minor change, added glut as a dependency so that PyOpenGL compiles properly.
I have found the problem. It is not a gcc 3.2 issue, but an unrelated dependency issue. PyOpenGL-2.0.0.44 needs the header file glut.h. This header is included with glut-3.7-r2. glut should be made a dependency for the PyOpenGL ebuild. I've updated the ebuild with this small change. It is attached and the build process now works as expected.
Added glut to the dependancy list. Thanks for the bug report! The updated ebuild should be available in portage within 24 hours.