i have the last CVS Version of Mesa in my portage tree on Gentoo When i try to compile it i get this error message : Doing emerge --ask --verbose xgl compiz i get this : make[6]: Leaving directory `/var/tmp/portage/mesa-6.5.1_p20061027/work/Mesa/src/mesa/drivers/dri/i810' make[6]: Entering directory `/var/tmp/portage/mesa-6.5.1_p20061027/work/Mesa/src/mesa/drivers/dri/i810' i686-pc-linux-gnu-gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -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` -O3 -pipe -march=pentium-m -mtune=pentium-m -ftracer -fomit-frame-pointer -ffast-math -fno-strict-aliasing -fPIC -m32 -DGLX_USE_TLS -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 -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM ../../common/driverfuncs.c -o ../../common/driverfuncs.o i686-pc-linux-gnu-gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -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` -O3 -pipe -march=pentium-m -mtune=pentium-m -ftracer -fomit-frame-pointer -ffast-math -fno-strict-aliasing -fPIC -m32 -DGLX_USE_TLS -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 -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM ../common/utils.c -o ../common/utils.o i686-pc-linux-gnu-gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -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` -O3 -pipe -march=pentium-m -mtune=pentium-m -ftracer -fomit-frame-pointer -ffast-math -fno-strict-aliasing -fPIC -m32 -DGLX_USE_TLS -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 -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM ../common/texmem.c -o ../common/texmem.o i686-pc-linux-gnu-gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -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` -O3 -pipe -march=pentium-m -mtune=pentium-m -ftracer -fomit-frame-pointer -ffast-math -fno-strict-aliasing -fPIC -m32 -DGLX_USE_TLS -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 -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM ../common/vblank.c -o ../common/vblank.o ../common/vblank.c: In function `driGetCurrentVBlank': ../common/vblank.c:306: erreur: « DRM_VBLANK_SECONDARY » non déclaré (première utilisation dans cette fonction) ../common/vblank.c:306: erreur: (Chaque identificateur non déclaré est rapporté une seule fois ../common/vblank.c:306: erreur: pour chaque fonction dans laquelle il apparaît.) ../common/vblank.c: In function `driWaitForVBlank': ../common/vblank.c:363: erreur: « DRM_VBLANK_SECONDARY » non déclaré (première utilisation dans cette fonction) make[6]: *** [../common/vblank.o] Erreur 1 make[6]: Leaving directory `/var/tmp/portage/mesa-6.5.1_p20061027/work/Mesa/src/mesa/drivers/dri/i810' make[5]: *** [subdirs] Erreur 1 make[5]: Leaving directory `/var/tmp/portage/mesa-6.5.1_p20061027/work/Mesa/src/mesa/drivers/dri' make[4]: *** [linux-solo] Erreur 2 make[4]: Leaving directory `/var/tmp/portage/mesa-6.5.1_p20061027/work/Mesa/src/mesa' make[3]: *** [default] Erreur 2 make[3]: Leaving directory `/var/tmp/portage/mesa-6.5.1_p20061027/work/Mesa/src/mesa' make[2]: *** [subdirs] Erreur 1 make[2]: Leaving directory `/var/tmp/portage/mesa-6.5.1_p20061027/work/Mesa/src' make[1]: *** [default] Erreur 1 make[1]: Leaving directory `/var/tmp/portage/mesa-6.5.1_p20061027/work/Mesa' make: *** [linux-dri-x86] Erreur 2 !!! ERROR: media-libs/mesa-6.5.1_p20061027 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile mesa-6.5.1_p20061027.ebuild, line 214: Called die !!! Build failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! This ebuild is from an overlay: '/usr/local/portage' i translate the error into english : ../common/vblank.c -o ../common/vblank.o ../common/vblank.c: In function `driGetCurrentVBlank': ../common/vblank.c:306: erreur: « DRM_VBLANK_SECONDARY » non déclaré (première utilisation dans cette fonction) ../common/vblank.c:306: erreur: (Chaque identificateur non déclaré est rapporté une seule fois ../common/vblank.c:306: erreur: pour chaque fonction dans laquelle il apparaît.) error : DRM_VBLANK_SECONDARY in line 306 of common/vblank.c undeclared ! (first use in this function) error : each identificator undeclared is repported only one time in each function where it appears. (sorry for my bad english) In fact, there is no #define DRM_VBLANK_SECONDARY in all the source code (i did a grep into src/) What to do ? Thank you in advance :) you do a great job !
Some informations about my config : Linux portable 2.6.16-gentoo-r7 #1 Wed Jun 7 18:22:05 CEST 2006 i686 Intel(R) Pentium(R) M processor 1.60GHz GNU/Linux gcc (GCC) 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9) i have already compiled Mesa 6.5.1-r2 without any problem ! The last lines of the compilation log can be found here : http://rafb.net/paste/results/TMYPJF45.nln.html
At the very least you need to update drm (and libdrm). *** This bug has been marked as a duplicate of 8814 ***
I use the current GIT version of drm from git://anongit.freedesktop.org/git/mesa/drm when you compile Mesa you must have the file drm.pc in your PKG_CONFIG_PATH if drm was configured with --prefix=<drmpath> you should use make PKG_CONFIG_PATH=<drmpath>/lib/pkgconfig:$PKG_CONFIG_PATH to compile Mesa
Mass version move, cvs -> git
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.