[...]glxcmds.c:43:38: error: X11/extensions/xf86vmode.h: No such file or directory i686-pc-linux-gnu-gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi -I/usr/include/drm -I/usr/include/libdrm -O2 -march=prescott -pipe -fomit-frame-pointer -ffast-math -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fPIC -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/usr/lib/dri\" glxcurrent.c -o glxcurrent.o glxcmds.c: In function '__driGetMscRateOML': glxcmds.c:2346: error: 'XF86VidModeModeLine' undeclared (first use in this function) glxcmds.c:2346: error: (Each undeclared identifier is reported only once glxcmds.c:2346: error: for each function it appears in.) glxcmds.c:2346: error: expected ';' before 'mode_line' glxcmds.c:2352: warning: implicit declaration of function 'XF86VidModeQueryVersion' glxcmds.c:2353: warning: implicit declaration of function 'XF86VidModeGetModeLine' glxcmds.c:2353: error: 'mode_line' undeclared (first use in this function) gmake[2]: *** [glxcmds.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[2]: Leaving directory `/var/tmp/paludis/media-libs-mesa-7.7.1/work/Mesa-7.7.1/src/glx/x11' make[1]: Leaving directory `/var/tmp/paludis/media-libs-mesa-7.7.1/work/Mesa-7.7.1/src' make[1]: *** [subdirs] Error 1 make: *** [default] Error 1 /usr/libexec/paludis/utils/emake: emake returned error 2 [...] Reproducible: Always Steps to Reproduce: 1. update to mesa-7.7.1 2. 3. Actual Results: see description Expected Results: compile mesa see also: http://www.mail-archive.com/mesa3d-dev@lists.sourceforge.net/msg09383.html seems to be the same bug
Downgrading to xf86vidmodeproto-2.2.2 works
You are trying to mix stable xf86vidmodeproto with unstable libXxf86vm. This doesn't work. Do not mix stable and unstable parts of X.org.
Sorry, that should have been "unstable xf86vidmodeproto with stable libXxf86vm".
No, I'm not using an unstable libXxf86vm [I] x11-libs/libXxf86vm Available versions: 1.0.2 1.1.0 {debug} Installed is 1.1.0 which is clearly marked stable. There's no unstable version of libXxf86vm available AFAIK.
(In reply to comment #3) > Sorry, that should have been "unstable xf86vidmodeproto with stable > libXxf86vm". > read that just a jiffy too late. But xf86vimodeproto-2.3 is also marked stable here: hyperion ~ # eix xf86vidmodeproto [U] x11-proto/xf86vidmodeproto Available versions: 2.2.2 2.3 Installed versions: 2.2.2(19:18:51 13/04/10)
Ah indeed. Your package manager appears to upgrade mesa before xf86vidmodeproto. The xf86vmode.h file got moved from libXxf86vm to xf86vidmodeproto. This means both must be the latest version before mesa is upgraded. Still invalid due to unsupported package manager.
Now that is a reason I can accept ;) Thanks
Hmm... wait.. not really, because xf86vidmodeproto-2.3 and libXxf86vm-1.1.0 were installed before the package manager tried to upgrade mesa. (Or it wouldn't have been necessary to downgrade to xf86vidmodeproto-2.2.2 in the first place) After all, the combination that works is xf86vidmodeproto-2.2.2, libXxf86vm-1.1.0 and mesa-7.7.1
(In reply to comment #6) > This means both must be the latest version before mesa is > upgraded. I can't reproduce that. I have no upgraded both libXxf86vm and xf86vidmodeproto and only then tried to recompile mesa and it will complain with the above error. So something must be buggy somewhere. Considering that xf86vmode.h is indeed supplied by libXxf86vm now, why doesn't mesa find it? [ Searching for packages matching libXxf86vm... ] * Contents of x11-libs/libXxf86vm-1.1.0: /usr /usr/include /usr/include/X11 /usr/include/X11/extensions /usr/include/X11/extensions/xf86vmode.h hyperion ~ # equery f xf86vidmodeproto [ Searching for packages matching xf86vidmodeproto... ] * Contents of x11-proto/xf86vidmodeproto-2.3: /usr /usr/include /usr/include/X11 /usr/include/X11/extensions /usr/include/X11/extensions/xf86vm.h > Still invalid due to unsupported package manager. I'm not going to get into a debate on that.
I got it now.. because the order is wrong and xf86vidmodeproto removes the header after libXxf86vm installed it.