When I try to emerge libquicktime, I receive a huge amount of errors about problems with /usr/X11R6/include/GL/glu.h. Reproducible: Always Steps to Reproduce: 1. emerge libquicktime (this is needed as a dependancy to k3b) 2. fails on compilation Actual Results: In file included from lqtplay.c:32: /usr/X11R6/include/GL/glu.h:259: error: syntax error before '*' token /usr/X11R6/include/GL/glu.h:259: warning: type defaults to `int' in declaration of `GLvoid' /usr/X11R6/include/GL/glu.h:259: warning: parameter names (without types) in function declaration /usr/X11R6/include/GL/glu.h:259: error: `GLvoid' declared as function returning a function /usr/X11R6/include/GL/glu.h:265: error: syntax error before "gluBuild1DMipmapLevels" /usr/X11R6/include/GL/glu.h:265: error: syntax error before "target" /usr/X11R6/include/GL/glu.h:265: warning: type defaults to `int' in declaration of `gluBuild1DMipmapLevels' /usr/X11R6/include/GL/glu.h:265: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:266: error: syntax error before "gluBuild1DMipmaps" /usr/X11R6/include/GL/glu.h:266: error: syntax error before "target" /usr/X11R6/include/GL/glu.h:266: warning: type defaults to `int' in declaration of `gluBuild1DMipmaps' /usr/X11R6/include/GL/glu.h:266: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:267: error: syntax error before "gluBuild2DMipmapLevels" /usr/X11R6/include/GL/glu.h:267: error: syntax error before "target" /usr/X11R6/include/GL/glu.h:267: warning: type defaults to `int' in declaration of `gluBuild2DMipmapLevels' /usr/X11R6/include/GL/glu.h:267: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:268: error: syntax error before "gluBuild2DMipmaps" /usr/X11R6/include/GL/glu.h:268: error: syntax error before "target" /usr/X11R6/include/GL/glu.h:268: warning: type defaults to `int' in declaration of `gluBuild2DMipmaps' /usr/X11R6/include/GL/glu.h:268: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:269: error: syntax error before "gluBuild3DMipmapLevels" /usr/X11R6/include/GL/glu.h:269: error: syntax error before "target" /usr/X11R6/include/GL/glu.h:269: warning: type defaults to `int' in declaration of `gluBuild3DMipmapLevels' /usr/X11R6/include/GL/glu.h:269: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:270: error: syntax error before "gluBuild3DMipmaps" /usr/X11R6/include/GL/glu.h:270: error: syntax error before "target" /usr/X11R6/include/GL/glu.h:270: warning: type defaults to `int' in declaration of `gluBuild3DMipmaps' /usr/X11R6/include/GL/glu.h:270: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:271: error: syntax error before "gluCheckExtension" /usr/X11R6/include/GL/glu.h:271: warning: type defaults to `int' in declaration of `GLubyte' /usr/X11R6/include/GL/glu.h:271: error: syntax error before '*' token /usr/X11R6/include/GL/glu.h:271: warning: type defaults to `int' in declaration of `gluCheckExtension' /usr/X11R6/include/GL/glu.h:271: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:272: error: syntax error before "GLdouble" /usr/X11R6/include/GL/glu.h:276: error: syntax error before "GLdouble" /usr/X11R6/include/GL/glu.h:281: error: syntax error before '*' token /usr/X11R6/include/GL/glu.h:281: error: syntax error before "error" /usr/X11R6/include/GL/glu.h:281: warning: type defaults to `int' in declaration of `gluErrorString' /usr/X11R6/include/GL/glu.h:281: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:282: error: syntax error before "GLenum" /usr/X11R6/include/GL/glu.h:283: error: syntax error before '*' token /usr/X11R6/include/GL/glu.h:283: error: syntax error before "name" /usr/X11R6/include/GL/glu.h:283: warning: type defaults to `int' in declaration of `gluGetString' /usr/X11R6/include/GL/glu.h:283: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:284: error: syntax error before "GLenum" /usr/X11R6/include/GL/glu.h:285: warning: type defaults to `int' in declaration of `GLfloat' /usr/X11R6/include/GL/glu.h:285: error: syntax error before '*' token /usr/X11R6/include/GL/glu.h:286: error: syntax error before "eyeX" /usr/X11R6/include/GL/glu.h:290: error: syntax error before "GLenum" /usr/X11R6/include/GL/glu.h:291: error: syntax error before "GLenum" /usr/X11R6/include/GL/glu.h:294: error: syntax error before "GLint" /usr/X11R6/include/GL/glu.h:295: error: syntax error before "GLenum" /usr/X11R6/include/GL/glu.h:296: error: syntax error before "GLint" /usr/X11R6/include/GL/glu.h:297: error: syntax error before "left" /usr/X11R6/include/GL/glu.h:298: error: syntax error before "GLdouble" /usr/X11R6/include/GL/glu.h:299: error: syntax error before "fovy" /usr/X11R6/include/GL/glu.h:300: error: syntax error before "x" /usr/X11R6/include/GL/glu.h:301: error: syntax error before "gluProject" /usr/X11R6/include/GL/glu.h:301: error: syntax error before "objX" /usr/X11R6/include/GL/glu.h:301: warning: type defaults to `int' in declaration of `gluProject' /usr/X11R6/include/GL/glu.h:301: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:302: error: syntax error before "GLint" /usr/X11R6/include/GL/glu.h:303: error: syntax error before "GLenum" /usr/X11R6/include/GL/glu.h:304: error: syntax error before "GLenum" /usr/X11R6/include/GL/glu.h:305: error: syntax error before "GLenum" /usr/X11R6/include/GL/glu.h:306: error: syntax error before "GLenum" /usr/X11R6/include/GL/glu.h:308: error: syntax error before "gluScaleImage" /usr/X11R6/include/GL/glu.h:308: error: syntax error before "format" /usr/X11R6/include/GL/glu.h:308: warning: type defaults to `int' in declaration of `gluScaleImage' /usr/X11R6/include/GL/glu.h:308: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:309: error: syntax error before "GLdouble" /usr/X11R6/include/GL/glu.h:312: error: syntax error before "GLenum" /usr/X11R6/include/GL/glu.h:315: error: syntax error before "GLdouble" /usr/X11R6/include/GL/glu.h:316: error: syntax error before "GLenum" /usr/X11R6/include/GL/glu.h:317: error: syntax error before "GLdouble" /usr/X11R6/include/GL/glu.h:318: error: syntax error before "gluUnProject" /usr/X11R6/include/GL/glu.h:318: error: syntax error before "winX" /usr/X11R6/include/GL/glu.h:318: warning: type defaults to `int' in declaration of `gluUnProject' /usr/X11R6/include/GL/glu.h:318: warning: data definition has no type or storage class /usr/X11R6/include/GL/glu.h:319: error: syntax error before "gluUnProject4" /usr/X11R6/include/GL/glu.h:319: error: syntax error before "winX" /usr/X11R6/include/GL/glu.h:319: warning: type defaults to `int' in declaration of `gluUnProject4' /usr/X11R6/include/GL/glu.h:319: warning: data definition has no type or storage class lqtplay.c:33:20: GL/glx.h: No such file or directory lqtplay.c:398: error: syntax error before "tex" lqtplay.c:398: warning: type defaults to `int' in declaration of `tex' lqtplay.c:398: warning: data definition has no type or storage class lqtplay.c:399: error: `GLX_RGBA' undeclared here (not in a function) lqtplay.c:399: error: initializer element is not constant lqtplay.c:399: error: (near initialization for `gl_attrib[0]') lqtplay.c:400: error: `GLX_RED_SIZE' undeclared here (not in a function) lqtplay.c:400: error: initializer element is not constant lqtplay.c:400: error: (near initialization for `gl_attrib[1]') lqtplay.c:401: error: `GLX_GREEN_SIZE' undeclared here (not in a function) lqtplay.c:401: error: initializer element is not constant lqtplay.c:401: error: (near initialization for `gl_attrib[3]') lqtplay.c:402: error: `GLX_BLUE_SIZE' undeclared here (not in a function) lqtplay.c:402: error: initializer element is not constant lqtplay.c:402: error: (near initialization for `gl_attrib[5]') lqtplay.c:403: error: `GLX_DOUBLEBUFFER' undeclared here (not in a function) lqtplay.c:403: error: initializer element is not constant lqtplay.c:403: error: (near initialization for `gl_attrib[7]') lqtplay.c: In function `gl_resize': lqtplay.c:408: warning: implicit declaration of function `glViewport' lqtplay.c:409: error: `GL_PROJECTION' undeclared (first use in this function) lqtplay.c:409: error: (Each undeclared identifier is reported only once lqtplay.c:409: error: for each function it appears in.) lqtplay.c:410: warning: implicit declaration of function `glLoadIdentity' lqtplay.c:412: error: `GL_MODELVIEW' undeclared (first use in this function) lqtplay.c: In function `gl_blit': lqtplay.c:424: warning: implicit declaration of function `glGenTextures' lqtplay.c:425: warning: implicit declaration of function `glBindTexture' lqtplay.c:425: error: `GL_TEXTURE_2D' undeclared (first use in this function) lqtplay.c:426: warning: implicit declaration of function `glTexParameteri' lqtplay.c:426: error: `GL_TEXTURE_MAG_FILTER' undeclared (first use in this function) lqtplay.c:426: error: `GL_LINEAR' undeclared (first use in this function) lqtplay.c:427: error: `GL_TEXTURE_MIN_FILTER' undeclared (first use in this function) lqtplay.c:430: warning: implicit declaration of function `glTexImage2D' lqtplay.c:430: error: `GL_RGB' undeclared (first use in this function) lqtplay.c:431: error: `GL_UNSIGNED_BYTE' undeclared (first use in this function) lqtplay.c:434: warning: implicit declaration of function `glTexSubImage2D' lqtplay.c:439: warning: implicit declaration of function `glEnable' lqtplay.c:440: warning: implicit declaration of function `glTexEnvf' lqtplay.c:440: error: `GL_TEXTURE_ENV' undeclared (first use in this function) lqtplay.c:440: error: `GL_TEXTURE_ENV_MODE' undeclared (first use in this function) lqtplay.c:440: error: `GL_DECAL' undeclared (first use in this function) lqtplay.c:441: warning: implicit declaration of function `glBegin' lqtplay.c:441: error: `GL_QUADS' undeclared (first use in this function) lqtplay.c:442: warning: implicit declaration of function `glTexCoord2f' lqtplay.c:442: warning: implicit declaration of function `glVertex3f' lqtplay.c:446: warning: implicit declaration of function `glEnd' lqtplay.c:447: warning: implicit declaration of function `glXSwapBuffers' lqtplay.c:448: warning: implicit declaration of function `glDisable' lqtplay.c: In function `gl_init': lqtplay.c:454: error: `GLXContext' undeclared (first use in this function) lqtplay.c:454: error: syntax error before "ctx" lqtplay.c:457: warning: implicit declaration of function `glXChooseVisual' lqtplay.c:459: warning: assignment makes pointer from integer without a cast lqtplay.c:464: error: `ctx' undeclared (first use in this function) lqtplay.c:464: warning: implicit declaration of function `glXCreateContext' lqtplay.c:465: warning: implicit declaration of function `glXMakeCurrent' lqtplay.c:467: warning: implicit declaration of function `glXIsDirect' lqtplay.c:472: warning: implicit declaration of function `glGetIntegerv' lqtplay.c:472: error: `GL_MAX_TEXTURE_SIZE' undeclared (first use in this function) lqtplay.c:488: warning: implicit declaration of function `glClearColor' lqtplay.c:489: warning: implicit declaration of function `glShadeModel' lqtplay.c:489: error: `GL_FLAT' undeclared (first use in this function) lqtplay.c:490: warning: implicit declaration of function `glPixelStorei' lqtplay.c:490: error: `GL_UNPACK_ALIGNMENT' undeclared (first use in this function) make[3]: *** [lqtplay.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 !!! ERROR: media-libs/libquicktime-0.9.2_pre1 failed. !!! Function src_compile, Line 59, Exitcode 2 !!! (no error message) Expected Results: Compile correctly. My system is a relatively new install of Gentoo. I'm running: 1.3Ghz Pentium 4 Processor 256MB RDRAM NVIDIA 4200 128MB Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.6-rc2) ================================================================= System uname: 2.6.6-rc2 i686 Intel(R) Pentium(R) 4 CPU 1300MHz Gentoo Base System version 1.4.10 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif gpm gtk2 gtkhtml guile imlib java jpeg libg++ libwww mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcpd truetype usb x86 xml2 xmms xv zlib"
'opengl-update xorg-x11' solved this for me.
closing