media-libs/mesa-6.5.2-r1 requires headers files (probably from package sys-kernel/linux-headers). Here is the error if linux-headers is not installed: makedepend -fdepend -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa/main -I../../../src/mesa/glapi -I../../../src/mesa/drivers/dri/common `pkg-config --cflags libdrm` glcontextmodes.c clientattrib.c compsize.c eval.c glxcmds.c glxext.c glxextensions.c indirect.c indirect_init.c indirect_size.c indirect_window_pos.c indirect_transpose_matrix.c indirect_vertex_array.c indirect_vertex_program.c pixel.c pixelstore.c render2.c renderpix.c single2.c singlepix.c vertarr.c xfont.c glx_pbuffer.c glx_query.c glx_texture_compression.c dri_glx.c XF86dri.c \ ../../../src/mesa/main/dispatch.c ../../../src/mesa/glapi/glapi.c ../../../src/mesa/glapi/glthread.c ../../../src/mesa/x86/glapi_x86.S makedepend: warning: glcontextmodes.c (reading /usr/include/bits/types.h, line 31): cannot find include file "stddef.h" not in ./stddef.h not in ../../../include/stddef.h not in ../../../include/GL/internal/stddef.h not in ../../../src/mesa/main/stddef.h not in ../../../src/mesa/glapi/stddef.h not in ../../../src/mesa/drivers/dri/common/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h Reproducible: Always
Created attachment 119276 [details] Build error for media-libs/mesa-6.5.2-r1
(Re)emerge x11-proto/glproto and/or run `eselect opengl set xorg-x11`; the dependency is already there.
You are right, there is no dependency problem. But anyway there is a problem somewhere. Mesa is looking for header files in he bad directory... All current mesa versions are impacted and it's not possible to emerge xorg-server (1.2 / 1.3)