When I try to emerge lablgl, I get lots of warnings and errors. Reproducible: Always Steps to Reproduce: 1.emerge =dev-ml/lablgl-1.00 2. 3. Actual Results: !!! ERROR: dev-ml/lablgl-1.00 failed. !!! Function src_compile, Line 46, Exitcode 2 !!! (no error message) Expected Results: Install lablgl cleanly. ml_gl.c: In function `ml_gl_make_table': ml_gl.c:60: error: invalid application of `sizeof' to an incomplete type ml_gl.c:61: error: invalid application of `sizeof' to an incomplete type ml_gl.c:61: error: invalid application of `sizeof' to an incomplete type ml_gl.c:61: error: invalid application of `sizeof' to an incomplete type ml_gl.c:61: error: invalid application of `sizeof' to an incomplete type ml_gl.c:61: error: invalid application of `sizeof' to an incomplete type ml_gl.c:61: error: invalid application of `sizeof' to an incomplete type ml_gl.c:63: error: invalid use of undefined type `struct record' ml_gl.c:64: error: invalid use of undefined type `struct record' ml_gl.c:64: error: dereferencing pointer to incomplete type ml_gl.c:68: error: invalid use of undefined type `struct record' ml_gl.c:68: error: dereferencing pointer to incomplete type ml_gl.c:68: error: invalid use of undefined type `struct record' ml_gl.c:69: error: invalid use of undefined type `struct record' ml_gl.c:69: error: dereferencing pointer to incomplete type ml_gl.c:69: error: invalid use of undefined type `struct record' ml_gl.c: At top level: ml_gl.c:74: error: syntax error before "GLenum_val" ml_gl.c:75: warning: return type defaults to `int' ml_gl.c: In function `GLenum_val': ml_gl.c:79: error: invalid use of undefined type `struct record' ml_gl.c:79: error: dereferencing pointer to incomplete type ml_gl.c:80: error: invalid use of undefined type `struct record' ml_gl.c:80: error: dereferencing pointer to incomplete type ml_gl.c:87: error: invalid use of undefined type `struct record' ml_gl.c:87: error: dereferencing pointer to incomplete type ml_gl.c: In function `ml_glAccum': ml_gl.c:101: warning: implicit declaration of function `glAccum' ml_gl.c:101: error: `GLfloat' undeclared (first use in this function) ml_gl.c:101: error: (Each undeclared identifier is reported only once ml_gl.c:101: error: for each function it appears in.) ml_gl.c: In function `ml_glAlphaFunc': ml_gl.c:102: warning: implicit declaration of function `glAlphaFunc' ml_gl.c:102: error: `GLfloat' undeclared (first use in this function) ml_gl.c: In function `ml_glBegin': ml_gl.c:104: warning: implicit declaration of function `glBegin' ml_gl.c: In function `ml_glBitmap': ml_gl.c:106: warning: implicit declaration of function `glBitmap' ml_gl.c:106: error: `GLfloat' undeclared (first use in this function) ml_gl.c: In function `ml_glBlendFunc': ml_gl.c:109: warning: implicit declaration of function `glBlendFunc' ml_gl.c: In function `ml_glClipPlane': ml_gl.c:118: warning: implicit declaration of function `glClipPlane' ml_gl.c:118: error: `GL_CLIP_PLANE0' undeclared (first use in this function) ml_gl.c: In function `ml_glClear': ml_gl.c:124: error: `GLbitfield' undeclared (first use in this function) ml_gl.c:124: error: syntax error before "accu" ml_gl.c:129: error: `accu' undeclared (first use in this function) ml_gl.c:129: error: `GL_COLOR_BUFFER_BIT' undeclared (first use in this function) ml_gl.c:131: error: `GL_DEPTH_BUFFER_BIT' undeclared (first use in this function) ml_gl.c:133: error: `GL_ACCUM_BUFFER_BIT' undeclared (first use in this function) ml_gl.c:135: error: `GL_STENCIL_BUFFER_BIT' undeclared (first use in this function) ml_gl.c:139: warning: implicit declaration of function `glClear' ml_gl.c: In function `ml_glClearAccum': ml_gl.c:142: warning: implicit declaration of function `glClearAccum' ml_gl.c:142: error: `GLfloat' undeclared (first use in this function) ml_gl.c: In function `ml_glClearColor': ml_gl.c:143: warning: implicit declaration of function `glClearColor' ml_gl.c: In function `ml_glClearDepth': ml_gl.c:144: warning: implicit declaration of function `glClearDepth' ml_gl.c: In function `ml_glClearIndex': ml_gl.c:145: warning: implicit declaration of function `glClearIndex' ml_gl.c:145: error: `GLfloat' undeclared (first use in this function) ml_gl.c: In function `ml_glClearStencil': ml_gl.c:146: warning: implicit declaration of function `glClearStencil' ml_gl.c: In function `ml_glColor4d': ml_gl.c:147: warning: implicit declaration of function `glColor4d' ml_gl.c: In function `ml_glColorMask': ml_gl.c:148: warning: implicit declaration of function `glColorMask' ml_gl.c: In function `ml_glColorMaterial': ml_gl.c:149: warning: implicit declaration of function `glColorMaterial' ml_gl.c: In function `ml_glCopyPixels': ml_gl.c:150: warning: implicit declaration of function `glCopyPixels' ml_gl.c: In function `ml_glCullFace': ml_gl.c:151: warning: implicit declaration of function `glCullFace' ml_gl.c: In function `ml_glDisable': ml_gl.c:153: warning: implicit declaration of function `glDisable' ml_gl.c: In function `ml_glDepthFunc': ml_gl.c:154: warning: implicit declaration of function `glDepthFunc' ml_gl.c: In function `ml_glDepthMask': ml_gl.c:155: warning: implicit declaration of function `glDepthMask' ml_gl.c: In function `ml_glDepthRange': ml_gl.c:156: warning: implicit declaration of function `glDepthRange' ml_gl.c: In function `ml_glDrawBuffer': ml_gl.c:157: warning: implicit declaration of function `glDrawBuffer' ml_gl.c: In function `ml_glDrawPixels': ml_gl.c:158: warning: implicit declaration of function `glDrawPixels' ml_gl.c: In function `ml_glEdgeFlag': ml_gl.c:160: warning: implicit declaration of function `glEdgeFlag' ml_gl.c: In function `ml_glEnable': ml_gl.c:161: warning: implicit declaration of function `glEnable' ml_gl.c: In function `ml_glEnd': ml_gl.c:162: warning: implicit declaration of function `glEnd' ml_gl.c: In function `ml_glEvalCoord1d': ml_gl.c:163: warning: implicit declaration of function `glEvalCoord1d' ml_gl.c: In function `ml_glEvalCoord2d': ml_gl.c:164: warning: implicit declaration of function `glEvalCoord2d' ml_gl.c: In function `ml_glEvalMesh1': ml_gl.c:165: warning: implicit declaration of function `glEvalMesh1' ml_gl.c: In function `ml_glEvalMesh2': ml_gl.c:166: warning: implicit declaration of function `glEvalMesh2' ml_gl.c: In function `ml_glEvalPoint1': ml_gl.c:167: warning: implicit declaration of function `glEvalPoint1' ml_gl.c: In function `ml_glEvalPoint2': ml_gl.c:168: warning: implicit declaration of function `glEvalPoint2' ml_gl.c: In function `ml_glFog': ml_gl.c:178: warning: implicit declaration of function `glFogi' ml_gl.c:178: error: `GL_FOG_MODE' undeclared (first use in this function) ml_gl.c:181: warning: implicit declaration of function `glFogf' ml_gl.c:181: error: `GL_FOG_DENSITY' undeclared (first use in this function) ml_gl.c:181: error: `GLfloat' undeclared (first use in this function) ml_gl.c:184: error: `GL_FOG_START' undeclared (first use in this function) ml_gl.c:187: error: `GL_FOG_END' undeclared (first use in this function) ml_gl.c:190: error: `GL_FOG_INDEX' undeclared (first use in this function) ml_gl.c:194: warning: implicit declaration of function `glFogfv' ml_gl.c:194: error: `GL_FOG_COLOR' undeclared (first use in this function) ml_gl.c: In function `ml_glFlush': ml_gl.c:200: warning: implicit declaration of function `glFlush' ml_gl.c: In function `ml_glFinish': ml_gl.c:201: warning: implicit declaration of function `glFinish' ml_gl.c: In function `ml_glFrontFace': ml_gl.c:202: warning: implicit declaration of function `glFrontFace' ml_gl.c: In function `ml_glFrustum': ml_gl.c:203: warning: implicit declaration of function `glFrustum' ml_gl.c: In function `ml_glGetString': ml_gl.c:206: warning: implicit declaration of function `glGetString' ml_gl.c:206: warning: passing arg 1 of `lablgl_copy_string_check' makes pointer from integer without a cast ml_gl.c: In function `ml_glGetDoublev': ml_gl.c:207: warning: implicit declaration of function `glGetDoublev' ml_gl.c: In function `ml_glHint': ml_gl.c:211: error: `GLenum' undeclared (first use in this function) ml_gl.c:211: error: syntax error before "targ" ml_gl.c:214: error: `targ' undeclared (first use in this function) ml_gl.c:214: error: `GL_FOG_HINT' undeclared (first use in this function) ml_gl.c:215: error: `GL_LINE_SMOOTH_HINT' undeclared (first use in this function) ml_gl.c:217: error: `GL_PERSPECTIVE_CORRECTION_HINT' undeclared (first use in this function) ml_gl.c:218: error: `GL_POINT_SMOOTH_HINT' undeclared (first use in this function) ml_gl.c:219: error: `GL_POLYGON_SMOOTH_HINT' undeclared (first use in this function) ml_gl.c:221: warning: implicit declaration of function `glHint' ml_gl.c: In function `ml_glIndexMask': ml_gl.c:225: warning: implicit declaration of function `glIndexMask' ml_gl.c: In function `ml_glIndexd': ml_gl.c:226: warning: implicit declaration of function `glIndexd' ml_gl.c: In function `ml_glInitNames': ml_gl.c:227: warning: implicit declaration of function `glInitNames' ml_gl.c: In function `ml_glIsEnabled': ml_gl.c:228: warning: implicit declaration of function `glIsEnabled' ml_gl.c: In function `ml_glLight': ml_gl.c:235: error: `GL_MAX_LIGHTS' undeclared (first use in this function) ml_gl.c:243: error: `GLfloat' undeclared (first use in this function) ml_gl.c:252: warning: implicit declaration of function `glLightfv' ml_gl.c:252: error: `GL_LIGHT0' undeclared (first use in this function) ml_gl.c: In function `ml_glLightModel': ml_gl.c:265: error: `GLfloat' undeclared (first use in this function) ml_gl.c:266: warning: implicit declaration of function `glLightModelfv' ml_gl.c:266: error: `GL_LIGHT_MODEL_AMBIENT' undeclared (first use in this function) ml_gl.c:269: warning: implicit declaration of function `glLightModelf' ml_gl.c:269: error: `GL_LIGHT_MODEL_LOCAL_VIEWER' undeclared (first use in this function) ml_gl.c:273: warning: implicit declaration of function `glLightModeli' ml_gl.c:273: error: `GL_LIGHT_MODEL_TWO_SIDE' undeclared (first use in this function) ml_gl.c: In function `ml_glLineWidth': ml_gl.c:297: warning: implicit declaration of function `glLineWidth' ml_gl.c:297: error: `GLfloat' undeclared (first use in this function) ml_gl.c: In function `ml_glLineStipple': ml_gl.c:298: warning: implicit declaration of function `glLineStipple' ml_gl.c: In function `ml_glLoadName': ml_gl.c:299: warning: implicit declaration of function `glLoadName' ml_gl.c: In function `ml_glLoadIdentity': ml_gl.c:300: warning: implicit declaration of function `glLoadIdentity' ml_gl.c: In function `ml_glLoadMatrixd': ml_gl.c:301: warning: implicit declaration of function `glLoadMatrixd' ml_gl.c: In function `ml_glLogicOp': ml_gl.c:311: warning: implicit declaration of function `glLogicOp' ml_gl.c: In function `ml_glMap1d': ml_gl.c:316: error: `GLenum' undeclared (first use in this function) ml_gl.c:316: error: syntax error before "targ" ml_gl.c:320: error: `targ' undeclared (first use in this function) ml_gl.c:320: error: `GL_MAP1_VERTEX_3' undeclared (first use in this function) ml_gl.c:322: error: `GL_MAP1_VERTEX_4' undeclared (first use in this function) ml_gl.c:324: error: `GL_MAP1_INDEX' undeclared (first use in this function) ml_gl.c:326: error: `GL_MAP1_COLOR_4' undeclared (first use in this function) ml_gl.c:328: error: `GL_MAP1_NORMAL' undeclared (first use in this function) ml_gl.c:330: error: `GL_MAP1_TEXTURE_COORD_1' undeclared (first use in this function) ml_gl.c:332: error: `GL_MAP1_TEXTURE_COORD_2' undeclared (first use in this function) ml_gl.c:334: error: `GL_MAP1_TEXTURE_COORD_3' undeclared (first use in this function) ml_gl.c:336: error: `GL_MAP1_TEXTURE_COORD_4' undeclared (first use in this function) ml_gl.c:338: warning: implicit declaration of function `glMap1d' ml_gl.c: In function `ml_glMap2d': ml_gl.c:347: error: `GLenum' undeclared (first use in this function) ml_gl.c:347: error: syntax error before "targ" ml_gl.c:351: error: `targ' undeclared (first use in this function) ml_gl.c:351: error: `GL_MAP2_VERTEX_3' undeclared (first use in this function) ml_gl.c:353: error: `GL_MAP2_VERTEX_4' undeclared (first use in this function) ml_gl.c:355: error: `GL_MAP2_INDEX' undeclared (first use in this function) ml_gl.c:357: error: `GL_MAP2_COLOR_4' undeclared (first use in this function) ml_gl.c:359: error: `GL_MAP2_NORMAL' undeclared (first use in this function) ml_gl.c:361: error: `GL_MAP2_TEXTURE_COORD_1' undeclared (first use in this function) ml_gl.c:363: error: `GL_MAP2_TEXTURE_COORD_2' undeclared (first use in this function) ml_gl.c:365: error: `GL_MAP2_TEXTURE_COORD_3' undeclared (first use in this function) ml_gl.c:367: error: `GL_MAP2_TEXTURE_COORD_4' undeclared (first use in this function) ml_gl.c:369: warning: implicit declaration of function `glMap2d' ml_gl.c: In function `ml_glMapGrid1d': ml_gl.c:377: warning: implicit declaration of function `glMapGrid1d' ml_gl.c: In function `ml_glMapGrid2d': ml_gl.c:378: warning: implicit declaration of function `glMapGrid2d' ml_gl.c: In function `ml_glMaterial': ml_gl.c:389: error: `GLfloat' undeclared (first use in this function) ml_gl.c:400: warning: implicit declaration of function `glMaterialfv' ml_gl.c: In function `ml_glMatrixMode': ml_gl.c:404: warning: implicit declaration of function `glMatrixMode' ml_gl.c: In function `ml_glMultMatrixd': ml_gl.c:405: warning: implicit declaration of function `glMultMatrixd' ml_gl.c: In function `ml_glNormal3d': ml_gl.c:416: warning: implicit declaration of function `glNormal3d' ml_gl.c: In function `ml_glPassThrough': ml_gl.c:418: warning: implicit declaration of function `glPassThrough' ml_gl.c:418: error: `GLfloat' undeclared (first use in this function) ml_gl.c: In function `ml_glPixelMapfv': ml_gl.c:422: warning: implicit declaration of function `glPixelMapfv' ml_gl.c:422: error: `GLfloat' undeclared (first use in this function) ml_gl.c: In function `ml_glOrtho': ml_gl.c:427: warning: implicit declaration of function `glOrtho' ml_gl.c: In function `ml_glPixelStorei': ml_gl.c:430: warning: implicit declaration of function `glPixelStorei' ml_gl.c: In function `ml_glPixelTransfer': ml_gl.c:434: error: `GLenum' undeclared (first use in this function) ml_gl.c:434: error: syntax error before "pname" ml_gl.c:436: error: `pname' undeclared (first use in this function) ml_gl.c:437: error: `GL_MAP_COLOR' undeclared (first use in this function) ml_gl.c:438: error: `GL_MAP_STENCIL' undeclared (first use in this function) ml_gl.c:439: error: `GL_INDEX_SHIFT' undeclared (first use in this function) ml_gl.c:440: error: `GL_INDEX_OFFSET' undeclared (first use in this function) ml_gl.c:441: warning: implicit declaration of function `glPixelTransferi' ml_gl.c:444: warning: implicit declaration of function `glPixelTransferf' ml_gl.c:444: error: `GLfloat' undeclared (first use in this function) ml_gl.c: In function `ml_glPixelZoom': ml_gl.c:449: warning: implicit declaration of function `glPixelZoom' ml_gl.c:449: error: `GLfloat' undeclared (first use in this function) ml_gl.c: In function `ml_glPointSize': ml_gl.c:450: warning: implicit declaration of function `glPointSize' ml_gl.c:450: error: `GLfloat' undeclared (first use in this function) ml_gl.c: In function `ml_glPolygonMode': ml_gl.c:451: warning: implicit declaration of function `glPolygonMode' ml_gl.c: In function `ml_glPolygonStipple': ml_gl.c:452: warning: implicit declaration of function `glPolygonStipple' ml_gl.c: In function `ml_glPopAttrib': ml_gl.c:453: warning: implicit declaration of function `glPopAttrib' ml_gl.c: In function `ml_glPopMatrix': ml_gl.c:454: warning: implicit declaration of function `glPopMatrix' ml_gl.c: In function `ml_glPopName': ml_gl.c:455: warning: implicit declaration of function `glPopName' ml_gl.c: In function `ml_glPushAttrib': ml_gl.c:459: error: `GLbitfield' undeclared (first use in this function) ml_gl.c:459: error: syntax error before "mask" ml_gl.c:463: error: `mask' undeclared (first use in this function) ml_gl.c:463: error: `GL_ACCUM_BUFFER_BIT' undeclared (first use in this function) ml_gl.c:464: error: `GL_COLOR_BUFFER_BIT' undeclared (first use in this function) ml_gl.c:465: error: `GL_CURRENT_BIT' undeclared (first use in this function) ml_gl.c:466: error: `GL_DEPTH_BUFFER_BIT' undeclared (first use in this function) ml_gl.c:467: error: `GL_ENABLE_BIT' undeclared (first use in this function) ml_gl.c:468: error: `GL_EVAL_BIT' undeclared (first use in this function) ml_gl.c:469: error: `GL_FOG_BIT' undeclared (first use in this function) ml_gl.c:470: error: `GL_HINT_BIT' undeclared (first use in this function) ml_gl.c:471: error: `GL_LIGHTING_BIT' undeclared (first use in this function) ml_gl.c:472: error: `GL_LINE_BIT' undeclared (first use in this function) ml_gl.c:473: error: `GL_LIST_BIT' undeclared (first use in this function) ml_gl.c:474: error: `GL_PIXEL_MODE_BIT' undeclared (first use in this function) ml_gl.c:475: error: `GL_POINT_BIT' undeclared (first use in this function) ml_gl.c:476: error: `GL_POLYGON_BIT' undeclared (first use in this function) ml_gl.c:477: error: `GL_POLYGON_STIPPLE_BIT' undeclared (first use in this function) ml_gl.c:478: error: `GL_SCISSOR_BIT' undeclared (first use in this function) ml_gl.c:479: error: `GL_STENCIL_BUFFER_BIT' undeclared (first use in this function) ml_gl.c:480: error: `GL_TEXTURE_BIT' undeclared (first use in this function) ml_gl.c:481: error: `GL_TRANSFORM_BIT' undeclared (first use in this function) ml_gl.c:482: error: `GL_VIEWPORT_BIT' undeclared (first use in this function) ml_gl.c:486: warning: implicit declaration of function `glPushAttrib' ml_gl.c: In function `ml_glPushMatrix': ml_gl.c:490: warning: implicit declaration of function `glPushMatrix' ml_gl.c: In function `ml_glPushName': ml_gl.c:491: warning: implicit declaration of function `glPushName' ml_gl.c: In function `ml_glRasterPos': ml_gl.c:495: warning: implicit declaration of function `glRasterPos2d' ml_gl.c:497: warning: implicit declaration of function `glRasterPos3d' ml_gl.c:499: warning: implicit declaration of function `glRasterPos4d' ml_gl.c: In function `ml_glReadBuffer': ml_gl.c:508: error: `GL_AUX_BUFFERS' undeclared (first use in this function) ml_gl.c:510: warning: implicit declaration of function `glReadBuffer' ml_gl.c:510: error: `GL_AUX0' undeclared (first use in this function) ml_gl.c: In function `ml_glReadPixels': ml_gl.c:516: warning: implicit declaration of function `glReadPixels' ml_gl.c: In function `ml_glRectd': ml_gl.c:519: warning: implicit declaration of function `glRectd' ml_gl.c: In function `ml_glRenderMode': ml_gl.c:521: warning: implicit declaration of function `glRenderMode' ml_gl.c: In function `ml_glRotated': ml_gl.c:522: warning: implicit declaration of function `glRotated' ml_gl.c: In function `ml_glScaled': ml_gl.c:523: warning: implicit declaration of function `glScaled' ml_gl.c: In function `ml_glScissor': ml_gl.c:525: warning: implicit declaration of function `glScissor' ml_gl.c: In function `ml_glSelectBuffer': ml_gl.c:526: warning: implicit declaration of function `glSelectBuffer' ml_gl.c:526: error: `GLuint' undeclared (first use in this function) ml_gl.c:526: error: syntax error before ')' token ml_gl.c: In function `ml_glShadeModel': ml_gl.c:527: warning: implicit declaration of function `glShadeModel' ml_gl.c: In function `ml_glStencilFunc': ml_gl.c:528: warning: implicit declaration of function `glStencilFunc' ml_gl.c: In function `ml_glStencilMask': ml_gl.c:529: warning: implicit declaration of function `glStencilMask' ml_gl.c: In function `ml_glStencilOp': ml_gl.c:530: warning: implicit declaration of function `glStencilOp' ml_gl.c: In function `ml_glTexCoord1d': ml_gl.c:532: warning: implicit declaration of function `glTexCoord1d' ml_gl.c: In function `ml_glTexCoord2d': ml_gl.c:533: warning: implicit declaration of function `glTexCoord2d' ml_gl.c: In function `ml_glTexCoord3d': ml_gl.c:534: warning: implicit declaration of function `glTexCoord3d' ml_gl.c: In function `ml_glTexCoord4d': ml_gl.c:535: warning: implicit declaration of function `glTexCoord4d' ml_gl.c: In function `ml_glTexEnv': ml_gl.c:540: error: `GLfloat' undeclared (first use in this function) ml_gl.c:540: error: syntax error before "color" ml_gl.c:545: warning: implicit declaration of function `glTexEnvi' ml_gl.c:545: error: `GL_TEXTURE_ENV' undeclared (first use in this function) ml_gl.c:545: error: `GL_TEXTURE_ENV_MODE' undeclared (first use in this function) ml_gl.c:548: error: `color' undeclared (first use in this function) ml_gl.c:549: warning: implicit declaration of function `glTexEnvfv' ml_gl.c:549: error: `GL_TEXTURE_ENV_COLOR' undeclared (first use in this function) ml_gl.c: In function `ml_glTexGen': ml_gl.c:558: error: `GLdouble' undeclared (first use in this function) ml_gl.c:558: error: syntax error before "point" ml_gl.c:562: warning: implicit declaration of function `glTexGeni' ml_gl.c:562: error: `GL_TEXTURE_GEN_MODE' undeclared (first use in this function) ml_gl.c:564: error: `point' undeclared (first use in this function) ml_gl.c:565: warning: implicit declaration of function `glTexGendv' ml_gl.c: In function `ml_glTexImage1D': ml_gl.c:574: warning: implicit declaration of function `glTexImage1D' ml_gl.c:575: error: `GL_PROXY_TEXTURE_1D' undeclared (first use in this function) ml_gl.c:575: error: `GL_TEXTURE_1D' undeclared (first use in this function) ml_gl.c: In function `ml_glTexImage2D': ml_gl.c:589: warning: implicit declaration of function `glTexImage2D' ml_gl.c:590: error: `GL_PROXY_TEXTURE_2D' undeclared (first use in this function) ml_gl.c:590: error: `GL_TEXTURE_2D' undeclared (first use in this function) ml_gl.c: In function `ml_glTexParameter': ml_gl.c:602: error: `GLenum' undeclared (first use in this function) ml_gl.c:602: error: syntax error before "targ" ml_gl.c:605: error: `GLfloat' undeclared (first use in this function) ml_gl.c:605: error: syntax error before "color" ml_gl.c:608: error: `pname' undeclared (first use in this function) ml_gl.c:609: error: `GL_TEXTURE_BORDER_COLOR' undeclared (first use in this function) ml_gl.c:610: error: `color' undeclared (first use in this function) ml_gl.c:611: warning: implicit declaration of function `glTexParameterfv' ml_gl.c:611: error: `targ' undeclared (first use in this function) ml_gl.c:613: error: `GL_TEXTURE_PRIORITY' undeclared (first use in this function) ml_gl.c:614: warning: implicit declaration of function `glTexParameterf' ml_gl.c:624: warning: implicit declaration of function `glTexParameteri' ml_gl.c: In function `ml_glGenTexture': ml_gl.c:632: error: `GLuint' undeclared (first use in this function) ml_gl.c:632: error: syntax error before "id" ml_gl.c:633: warning: implicit declaration of function `glGenTextures' ml_gl.c:633: error: `id' undeclared (first use in this function) ml_gl.c: In function `ml_glBindTexture': ml_gl.c:639: error: `GLenum' undeclared (first use in this function) ml_gl.c:639: error: syntax error before "targ" ml_gl.c:640: error: `GLuint' undeclared (first use in this function) ml_gl.c:641: warning: implicit declaration of function `glBindTexture' ml_gl.c:641: error: `targ' undeclared (first use in this function) ml_gl.c:641: error: `id' undeclared (first use in this function) ml_gl.c: In function `ml_glDeleteTexture': ml_gl.c:647: error: `GLuint' undeclared (first use in this function) ml_gl.c:647: error: syntax error before "id" ml_gl.c:648: warning: implicit declaration of function `glDeleteTextures' ml_gl.c:648: error: `id' undeclared (first use in this function) ml_gl.c: In function `ml_glTranslated': ml_gl.c:652: warning: implicit declaration of function `glTranslated' ml_gl.c: In function `ml_glVertex': ml_gl.c:656: warning: implicit declaration of function `glVertex2d' ml_gl.c:658: warning: implicit declaration of function `glVertex3d' ml_gl.c:660: warning: implicit declaration of function `glVertex4d' ml_gl.c: In function `ml_glViewport': ml_gl.c:665: warning: implicit declaration of function `glViewport' ml_gl.c: In function `ml_glIsList': ml_gl.c:670: warning: implicit declaration of function `glIsList' ml_gl.c: In function `ml_glDeleteLists': ml_gl.c:671: warning: implicit declaration of function `glDeleteLists' ml_gl.c: In function `ml_glGenLists': ml_gl.c:672: warning: implicit declaration of function `glGenLists' ml_gl.c: In function `ml_glNewList': ml_gl.c:673: warning: implicit declaration of function `glNewList' ml_gl.c: In function `ml_glEndList': ml_gl.c:674: warning: implicit declaration of function `glEndList' ml_gl.c: In function `ml_glCallList': ml_gl.c:675: warning: implicit declaration of function `glCallList' ml_gl.c: In function `ml_glListBase': ml_gl.c:676: warning: implicit declaration of function `glListBase' ml_gl.c: In function `ml_glCallLists': ml_gl.c:685: warning: implicit declaration of function `glCallLists' ml_gl.c:686: error: `GL_UNSIGNED_BYTE' undeclared (first use in this function) ml_gl.c:691: error: `GLint' undeclared (first use in this function) ml_gl.c:693: error: `GL_INT' undeclared (first use in this function) make[1]: *** [ml_gl.o] Error 2 make[1]: Leaving directory `/var/tmp/portage/lablgl-1.00/work/lablgl-1.00/src' make: *** [lib] Error 2 !!! ERROR: dev-ml/lablgl-1.00 failed. !!! Function src_compile, Line 46, Exitcode 2 !!! (no error message) =========================================================================== Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.6-rc1) ================================================================= System uname: 2.6.6-rc1 i686 AMD Athlon(TM) XP 2500+ Gentoo Base System version 1.4.14 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CHOST="i486-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/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.rxd.hu http://gentoo.math.bme.hu ftp://gentoo.inode.at/source/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi alsa apm arts avi berkdb bonobo cdr cjk crypt cscope cups curl directfb doc dvd dvdr emacs encode esd faad fbcon flac foomaticdb gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imap imlib java jikes jpeg kde ldap libg++ libwww lirc mad maildir mikmod mmx motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba sdl slang speex spell sse ssl svga tcltk tcpd tetex theora tiff truetype unicode usb wmf x86 xinerama xml2 xmms xv zlib"
Created attachment 31711 [details] The full output of emerge (very long).
'opengl-update xorg-x11' solved this for me.
Closing this because it works for me now.