Compiler output: "/usr/include/drm/via_drmclient.h:30: Fehler: Syntaxfehler vor "uint32_t" (syntax error before "uint32_t") /usr/include/drm/via_drmclient.h:30: Warnung: nutzloses Schl
Compiler output: "/usr/include/drm/via_drmclient.h:30: Fehler: Syntaxfehler vor "uint32_t" (syntax error before "uint32_t") /usr/include/drm/via_drmclient.h:30: Warnung: nutzloses Schlüsselwort oder Typenname in leerer Deklaration /usr/include/drm/via_drmclient.h:30: Warnung: leere Deklaration (void declaration) make[6]: *** [via_context.o] Fehler 1 make[6]: Leaving directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4/src/mesa/drivers/dri/unichrome' make[5]: *** [subdirs] Fehler 1 make[5]: Leaving directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4/src/mesa/drivers/dri' make[4]: *** [drivers-dri] Fehler 2 make[4]: Leaving directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4/src/mesa' make[3]: *** [default] Fehler 2 make[3]: Leaving directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4/src/mesa' make[2]: *** [subdirs] Fehler 1 make[2]: Leaving directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4/src' make[1]: *** [default] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4' make: *** [linux-dri-x86] Fehler 2 " /usr/include/drm/via_drmclient.h is part of x11-libs/libdrm-1.0.5 seems to be an error in /usr/include/drm/via_drmclient.h. Reproducible: Always Steps to Reproduce: 1.emerge -u mesa 2. 3. Actual Results: compile fails Expected Results: mesa should compile cleanly.
Please include the last compile line as well in your error message, and do so in English with LANG=C or so.
Sorry! In english, please! "make[5]: Entering directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4/src/mesa/drivers/dri/unichrome' touch depend /usr/bin/makedepend -fdepend -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -I../../../../../../drm/shared-core -I../../../../../include -I../../../../../include/GL/internal -I../../../../../src/mesa -I../../../../../src/mesa/main -I../../../../../src/mesa/glapi -I../../../../../src/mesa/math -I../../../../../src/mesa/transform -I../../../../../src/mesa/shader -I../../../../../src/mesa/swrast -I../../../../../src/mesa/swrast_setup -I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri `pkg-config --cflags libdrm` ../../common/driverfuncs.c ../common/utils.c ../common/texmem.c ../common/vblank.c ../common/dri_util.c ../common/xmlconfig.c ../common/drirenderbuffer.c via_context.c via_fb.c via_tex.c via_ioctl.c via_memcpy.c via_render.c via_screen.c via_span.c via_state.c via_texcombine.c via_tris.c \ > /dev/null /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/bits/types.h, line 31): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/limits.h, line 124): cannot find include file "limits.h" /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/stdlib.h, line 33): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/sys/types.h, line 147): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/alloca.h, line 25): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/stdio.h, line 34): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/_G_config.h, line 14): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/wchar.h, line 48): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/gconv.h, line 31): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/libio.h, line 53): cannot find include file "stdarg.h" not in ./stdarg.h not in ../../../../../src/mesa/drivers/dri/common/stdarg.h not in server/stdarg.h not in ../../../../../../drm/shared-core/stdarg.h not in ../../../../../include/stdarg.h not in ../../../../../include/GL/internal/stdarg.h not in ../../../../../src/mesa/stdarg.h not in ../../../../../src/mesa/main/stdarg.h not in ../../../../../src/mesa/glapi/stdarg.h not in ../../../../../src/mesa/math/stdarg.h not in ../../../../../src/mesa/transform/stdarg.h not in ../../../../../src/mesa/shader/stdarg.h not in ../../../../../src/mesa/swrast/stdarg.h not in ../../../../../src/mesa/swrast_setup/stdarg.h not in ../../../../../src/egl/main/stdarg.h not in ../../../../../src/egl/drivers/dri/stdarg.h not in /usr/include/drm/stdarg.h not in /usr/include/stdarg.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/string.h, line 33): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading ../../../../../src/mesa/main/glheader.h, line 69): cannot find include file "float.h" not in ./float.h not in ../../../../../src/mesa/drivers/dri/common/float.h not in server/float.h not in ../../../../../../drm/shared-core/float.h not in ../../../../../include/float.h not in ../../../../../include/GL/internal/float.h not in ../../../../../src/mesa/float.h not in ../../../../../src/mesa/main/float.h not in ../../../../../src/mesa/glapi/float.h not in ../../../../../src/mesa/math/float.h not in ../../../../../src/mesa/transform/float.h not in ../../../../../src/mesa/shader/float.h not in ../../../../../src/mesa/swrast/float.h not in ../../../../../src/mesa/swrast_setup/float.h not in ../../../../../src/egl/main/float.h not in ../../../../../src/egl/drivers/dri/float.h not in /usr/include/drm/float.h not in /usr/include/float.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading ../../../../../src/mesa/main/glheader.h, line 70): cannot find include file "stdarg.h" not in ./stdarg.h not in ../../../../../src/mesa/drivers/dri/common/stdarg.h not in server/stdarg.h not in ../../../../../../drm/shared-core/stdarg.h not in ../../../../../include/stdarg.h not in ../../../../../include/GL/internal/stdarg.h not in ../../../../../src/mesa/stdarg.h not in ../../../../../src/mesa/main/stdarg.h not in ../../../../../src/mesa/glapi/stdarg.h not in ../../../../../src/mesa/math/stdarg.h not in ../../../../../src/mesa/transform/stdarg.h not in ../../../../../src/mesa/shader/stdarg.h not in ../../../../../src/mesa/swrast/stdarg.h not in ../../../../../src/mesa/swrast_setup/stdarg.h not in ../../../../../src/egl/main/stdarg.h not in ../../../../../src/egl/drivers/dri/stdarg.h not in /usr/include/drm/stdarg.h not in /usr/include/stdarg.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/inttypes.h, line 38): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading ../../../../../include/GL/glext.h, line 3044): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../common/utils.c (reading /usr/include/drm/drm.h), line 196: # warning "__SIZE_TYPE__ not defined. Assuming sizeof(size_t) == sizeof(unsigned long)!" /usr/bin/makedepend: warning: ../common/vblank.c (reading /usr/include/unistd.h, line 195): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../common/dri_util.c, line 20: cannot find include file "stdarg.h" not in ./stdarg.h not in ../../../../../src/mesa/drivers/dri/common/stdarg.h not in server/stdarg.h not in ../../../../../../drm/shared-core/stdarg.h not in ../../../../../include/stdarg.h not in ../../../../../include/GL/internal/stdarg.h not in ../../../../../src/mesa/stdarg.h not in ../../../../../src/mesa/main/stdarg.h not in ../../../../../src/mesa/glapi/stdarg.h not in ../../../../../src/mesa/math/stdarg.h not in ../../../../../src/mesa/transform/stdarg.h not in ../../../../../src/mesa/shader/stdarg.h not in ../../../../../src/mesa/swrast/stdarg.h not in ../../../../../src/mesa/swrast_setup/stdarg.h not in ../../../../../src/egl/main/stdarg.h not in ../../../../../src/egl/drivers/dri/stdarg.h not in /usr/include/drm/stdarg.h not in /usr/include/stdarg.h /usr/bin/makedepend: warning: ../common/dri_util.c (reading /usr/include/sys/mman.h, line 26): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h not in ../../../../../src/mesa/swrast/stddef.h not in ../../../../../src/mesa/swrast_setup/stddef.h not in ../../../../../src/egl/main/stddef.h not in ../../../../../src/egl/drivers/dri/stddef.h not in /usr/include/drm/stddef.h not in /usr/include/stddef.h i686-pc-linux-gnu-gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -I../../../../../../drm/shared-core -I../../../../../include -I../../../../../include/GL/internal -I../../../../../src/mesa -I../../../../../src/mesa/main -I../../../../../src/mesa/glapi -I../../../../../src/mesa/math -I../../../../../src/mesa/transform -I../../../../../src/mesa/shader -I../../../../../src/mesa/swrast -I../../../../../src/mesa/swrast_setup -I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri `pkg-config --cflags libdrm` -Wall -march=athlon-xp -O3 -pipe -m32 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -std=c99 -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS via_context.c -o via_context.o In file included from /usr/include/drm/via_drm.h:35, from via_context.h:38, from via_state.h:28, from via_context.c:53: /usr/include/drm/via_drmclient.h:30: error: syntax error before "uint32_t" /usr/include/drm/via_drmclient.h:30: warning: useless keyword or type name in empty declaration /usr/include/drm/via_drmclient.h:30: warning: empty declaration make[5]: *** [via_context.o] Error 1 make[5]: Leaving directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4/src/mesa/drivers/dri/unichrome' make[4]: *** [subdirs] Error 1 make[4]: Leaving directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4/src/mesa/drivers/dri' make[3]: *** [drivers-dri] Error 2 make[3]: Leaving directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4/src/mesa' make[2]: *** [default] Error 2 make[2]: Leaving directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4/src/mesa' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/var/tmp/portage/mesa-6.4/work/Mesa-6.4/src' make: *** [default] Error 1 " am i missing some header files? i only got: /usr/include/linux/stddef.h from sys-kernel/linux-headers-2.6.11-r2 (/usr/include/linux/stddef.h) equery b /usr/include/bits/types.h [ Searching for file(s) /usr/include/bits/types.h in *... ] sys-libs/glibc-2.3.5-r3 (/usr/include/bits/types.h)
You might be: sys-devel/gcc-3.4.4-r1 (/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/install-tools/ include/stddef.h) sys-devel/gcc-3.4.4-r1 (/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/stddef.h) sys-kernel/linux-headers-2.6.11-r2 (/usr/include/linux/stddef.h) Attach your 'emerge info' as well please. You may want to try re-merging gcc and see if that fixes it...
The standard headers part is not the real error.
Run a few things for me: $ equery list libdrm $ equery files libdrm | grep via $ equery belongs /usr/include/drm/via_drmclient.h
equery list libdrm [ Searching for package 'libdrm' in all categories among: ] * installed packages [I--] [ ] x11-libs/libdrm-1.0.5 (0) equery files libdrm | grep via /usr/include/drm/via_3d_reg.h /usr/include/drm/via_drm.h equery belongs /usr/include/drm/via_drmclient.h [ Searching for file(s) /usr/include/drm/via_drmclient.h in *... ] -> and that's the problem!
(In reply to comment #6) > equery belongs /usr/include/drm/via_drmclient.h > [ Searching for file(s) /usr/include/drm/via_drmclient.h in *... ] > > -> and that's the problem! Indeed. libdrm does not install that file. I don't know where you got it, but it shouldn't be there.
I installed this file once manually, but can't remember the exact reason (likley via-driver didn't provided this file in an early modular release). deleted file. media-libs/mesa-6.4 compiles now cleanly.