Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315027 - mesa-7.7.1 fails to compile with xf86vidmodeproto-2.3 (renamed header file)
Summary: mesa-7.7.1 fails to compile with xf86vidmodeproto-2.3 (renamed header file)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-13 17:13 UTC by David Raison
Modified: 2010-04-14 18:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Raison 2010-04-13 17:13:23 UTC
[...]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
Comment 1 David Raison 2010-04-13 17:44:44 UTC
Downgrading to xf86vidmodeproto-2.2.2 works
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-13 18:38:56 UTC
You are trying to mix stable xf86vidmodeproto with unstable libXxf86vm. This doesn't work.

Do not mix stable and unstable parts of X.org.
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-13 18:39:33 UTC
Sorry, that should have been "unstable xf86vidmodeproto with stable libXxf86vm".
Comment 4 David Raison 2010-04-13 18:47:51 UTC
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.
Comment 5 David Raison 2010-04-13 18:49:27 UTC
(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)

Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-13 19:49:43 UTC
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.
Comment 7 David Raison 2010-04-14 17:37:12 UTC
Now that is a reason I can accept ;)
Thanks
Comment 8 David Raison 2010-04-14 17:41:40 UTC
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
Comment 9 David Raison 2010-04-14 17:57:38 UTC
(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.
Comment 10 David Raison 2010-04-14 18:07:25 UTC
I got it now.. because the order is wrong and xf86vidmodeproto removes the header after libXxf86vm installed it.