when I try to emerge gnome, gcc fails with exit status 1 Reproducible: Always Steps to Reproduce: 1.type '#emerge gnome' 2.wait 3. Actual Results: this function) src/interface_util/interface_util.c: In function `SetupPixelWrite': src/interface_util/interface_util.c:528: error: `GL_UNPACK_SWAP_BYTES' undeclared (first use in this function) src/interface_util/interface_util.c:529: error: `GL_UNPACK_LSB_FIRST' undeclared (first use in this function) src/interface_util/interface_util.c:540: error: `GL_UNPACK_ROW_LENGTH' undeclared (first use in this function) src/interface_util/interface_util.c:541: error: `GL_UNPACK_SKIP_ROWS' undeclared (first use in this function) src/interface_util/interface_util.c:542: error: `GL_UNPACK_ALIGNMENT' undeclared (first use in this function) src/interface_util/interface_util.c:544: error: `GL_UNPACK_SKIP_PIXELS' 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 !!! If you need support, post the topmost build error, NOT this status message. Expected Results: 'gnome emerged successfully' or something of the like have had problems with gcc on an identical machine to this one emerging gimp fails with a similar exit status KDE has been emerged successfully on this machine, but the aforementioned 'twin machine' has had problems emerging kde as well as gnome hardware info: Dell Dimension XPS D233 Pentium II 266 Mhz processor 378 MB 66MHz SDRAM
Don't assign bugs directly unless you know where they go
Can you pleasse give all the error messages rather than just the last one (paste the log beginning with the last call to gcc). Also, please run 'opengl-update xorg-x11' before the emerge.
I've had the same problem, it happens when xorg-x11 is built without opengl in USE. The pyopengl ebuild actually says something about missing GL/gl.h before it breaks.
Those are the relevant lines: i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -march=pentium3 -pipe -fomit-frame-pointer -fPIC -DGLX_PLATFORM -I/usr/include/python2.3 -I/usr/include -I/usr/local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Isrc/gle/src -I/usr/include -I/usr/local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Isrc/gle/src -c src/interface_util/interface_util.c -o build/temp.linux-i686-2.3/src/interface_util/interface_util.o In file included from src/interface_util/interface_util.c:1: src/config.h:59:20: GL/glx.h: No such file or directory src/config.h:73:19: GL/gl.h: No such file or directory src/config.h:74:20: GL/glu.h: No such file or directory On a side note: Did Kory post additional information to the bug just when I did? Because Bugzilla said something along those lines, and I chose the option to revert my changes to double check what I had written. But now there's no new comment by Kory, but mine's still there. Either I'm confused, or it's a bug in bugzilla. Considering that name, it's probably the former;)
have you tried running 'opengl-update xorg' and trying again? seems like you might of installed X but the GL headers weren't placed in the right place? also env-update probably wouldn't hurt either.
I get the same error while trying to emerge dev-python/pyopengl-2.0.0.44; anyway, "opengl-update xorg-x11" resolves the problem. running build_clib building 'interface_util' library creating build/temp.linux-i686-2.3 creating build/temp.linux-i686-2.3/src creating build/temp.linux-i686-2.3/src/interface_util i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=pentium3 -O2 -pipe -fomit-frame-pointer -fPIC -DGLX_PLATFORM -I/usr/include/python2.3 -I/usr/include -I/usr/local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Isrc/gle/src -I/usr/include -I/usr/local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Isrc/gle/src -c src/interface_util/interface_util.c -o build/temp.linux-i686-2.3/src/interface_util/interface_util.o In file included from src/interface_util/interface_util.c:1: src/config.h:59:20: GL/glx.h: No such file or directory src/config.h:73:19: GL/gl.h: No such file or directory In file included from src/config.h:74, from src/interface_util/interface_util.c:1: /usr/include/GL/glu.h:35:19: GL/gl.h: No such file or directory In file included from src/config.h:74, from src/interface_util/interface_util.c:1: /usr/include/GL/glu.h:262: error: syntax error before '*' token /usr/include/GL/glu.h:262: error: `GLvoid' declared as function returning a function /usr/include/GL/glu.h:269: error: syntax error before "gluBuild1DMipmapLevels" [..cut..] src/interface_util/interface_util.c: In function `SetupPixelWrite': src/interface_util/interface_util.c:528: error: `GL_UNPACK_SWAP_BYTES' undeclared (first use in this function) src/interface_util/interface_util.c:529: error: `GL_UNPACK_LSB_FIRST' undeclared (first use in this function) src/interface_util/interface_util.c:540: error: `GL_UNPACK_ROW_LENGTH' undeclared (first use in this function) src/interface_util/interface_util.c:541: error: `GL_UNPACK_SKIP_ROWS' undeclared (first use in this function) src/interface_util/interface_util.c:542: error: `GL_UNPACK_ALIGNMENT' undeclared (first use in this function) src/interface_util/interface_util.c:544: error: `GL_UNPACK_SKIP_PIXELS' undeclared (first use in this function) error: command 'i686-pc-linux-gnu-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 !!! If you need support, post the topmost build error, NOT this status message.
(In reply to comment #5) > have you tried running 'opengl-update xorg' and trying again? seems like you might of installed X but the GL headers weren't placed in the right place? also env-update probably wouldn't hurt either. I had the exact same problem and gleaned enough info from this thread to fix it. I did: 1) Added 'opengl' to my use flags. 2) Re-emerged xorg-x11 3) ran 'opengl-update xorg-x11' 4) emerged dev-python/pyopengl I also did a 'revdep-rebuild' earlier for good measure. Not sure if all of these are necessary, but this is what I did.
please try to re-emerge glut first.
(In reply to comment #8) > please try to re-emerge glut first. > wich glut would that be i have 2 of em ?? media-libs/glut virtual/glut
Virtuals aren't actual packages, but rather an abstraction that says multiple packages can resolve that given dependency. In this case, you may have either media-libs/freeglut or media-libs/glut installed. See which one you have and re-merge it. I have had issues with media-libs/glut before, so try freeglut if you have glut installed. You'll have to unmerge glut first.