Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76936 - re-emerging x11-base/xorg-x11- with new opengl use flag fails
Summary: re-emerging x11-base/xorg-x11- with new opengl use flag fails
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
Depends on:
Reported: 2005-01-06 12:14 UTC by Guillaume
Modified: 2005-05-25 04:13 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume 2005-01-06 12:14:36 UTC
I was in need of opengl support so I added the opengl USE flag, and tried to re-emerge xorg-x11 and it failed, apparently while compiling a driver with opengl support.

Reproducible: Always
Steps to Reproduce:
1. add opengl to USE
2. emerge xorg-x11

Actual Results:  
i686-pc-linux-gnu-gcc -O3 -march=pentium4 -pipe -fomit-frame-pointer -mno-sse2
-mno-sse3 -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w   
-fno-merge-constants -I. -I../../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../../programs/Xserver/GL/dri -I../../../../../../lib/GL/dri  
-I../../../../../../include -I../../../../../../extras/drm/shared 
-I../../../../../.. -I../../../../../../exports/include   -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L                                -D_POSIX_SOURCE
-D_XOPEN_SOURCE        -D_BSD_SOURCE -D_SVID_SOURCE                            
                          -DXFree86LOADER  -DXFree86Server                     
          -DXF86VIDMODE          -DXvMCExtension                         
-DSMART_SCHEDULE                        -DXResExtension                        
+ ((8) * 100000) + ((1) * 1000) + 901)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO
-DGLX_USE_DLOPEN -DGLX_USE_MESA  -DI830_XV   -c i810_hwmc.c
In file included from i810_hwmc.c:54:
../../../../../../include/extensions/XvMC.h:7:31: X11/extensions/Xv.h: No such
file or directory
make[7]: *** [i810_hwmc.o] Error 1
make[7]: Leaving directory
make[6]: *** [all] Error 2
make[6]: Leaving directory
make[5]: *** [all] Error 2
make[5]: Leaving directory
make[4]: *** [hw/xfree86] Error 2
make[4]: Leaving directory
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-'
make: *** [World] Error 2

!!! ERROR: x11-base/xorg-x11- failed.
!!! Function src_compile, Line 271, Exitcode 2
!!! make World failed

Expected Results:  
xorg-x11 properly merged

# emerge -pv xorg-x11

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] x11-base/xorg-x11-  -3dfx -3dnow +bitmap-fonts +cjk
-debug -dlloader -dmx -doc -font-server -hardened -insecure-drivers -ipv6
-minimal +mmx +nls +opengl* +pam -sdk +sse -static -truetype-fonts -type1-fonts
(-uclibc) +xprint -xv 0 kB 

# emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-,
2.6.9-ac12 i686)
System uname: 2.6.9-ac12 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jul 23 2004, 15:39:49)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r2, 1.9.3, 1.5, 1.6.3, 1.4_p6, 1.7.9
sys-devel/libtool:   1.5.10-r2
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
USE="x86 X aalib alsa avi bitmap-fonts cjk crypt dvd encode fortran gif gnutls
gtk gtk2 java jpeg mad mmx mng mpeg ncurses nls offensive oggvorbis opengl pam
pic png python quicktime readline sdl sse ssl svg theora tiff truetype unicode
wmf xml2 xprint xvid"

# gcc --version
gcc (GCC) 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-06 23:56:24 UTC
What happens if you add "xv" to USE?
Comment 2 Guillaume 2005-01-07 11:05:26 UTC
The merge was succeful after adding the "xv" flag. So, if you want opengl, you also need xv ... strange !
Comment 3 David Morgan 2005-01-07 14:30:16 UTC
Sorry to make things more complicated, but I successfully compiled xorg-x11- with USE="opengl -xv"
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-07 14:47:42 UTC
I'd guess that if Xv.h exists on your system, it'll use that one instead. So what you'd need to do is first install one with USE="opengl -xv", then try to build a new one with USE="opengl -xv" -- at that point, there shouldn't be an Xv.h anywhere that it can use.
Comment 5 A J 2005-01-23 16:29:52 UTC
I'm sorry, but can you make it more clear as to what you mean by comment #4? 
First install what with USE="opengl -xv"? 
And then try what with USE="opengl -xv"?
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-23 19:21:54 UTC
"So what you'd need to do is first install one with USE="opengl -xv", then try to build a new one with USE="opengl -xv" -- at that point, there shouldn't be an Xv.h anywhere that it can use."

Should always fail:
1. USE="opengl -xv" emerge xorg-x11
2. USE="opengl -xv" emerge xorg-x11

May work, because the first one leaves Xv.h on the live system:
1. USE="opengl xv" emerge xorg-x11
2. USE="opengl -xv" emerge xorg-x11
Comment 7 none 2005-03-18 03:36:07 UTC
I tryed your solution --> comment #6 however it did not work for me. 
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2005-03-18 11:56:50 UTC
Comment #6 was ways to get it to _fail_, not to work. Which are you trying to do?
Comment 9 Nicolas 2005-03-22 07:39:20 UTC
Second solution from comment #6:
1. USE="opengl xv" emerge xorg-x11
2. USE="opengl -xv" emerge xorg-x11

It did not work for me. I added the xv USE flag in my package.use flag for x11-base/xorg-x11
Comment 10 chemmitz 2005-03-24 16:39:39 UTC
Calculating dependencies ...done!
>>> emerge (1 of 1) x11-base/xorg-x11-6.8.2-r1 to /
>>> md5 src_uri ;-) eurofonts-X11.tar.bz2
>>> md5 src_uri ;-) xfsft-encodings-0.1.tar.bz2
>>> md5 src_uri ;-) gentoo-cursors-tad-0.3.1.tar.bz2
>>> md5 src_uri ;-) xorg-x11-6.8.2-files-0.1.tar.bz2
>>> md5 src_uri ;-) xorg-x11-6.8.2-patches-0.1.2.tar.bz2
>>> md5 src_uri ;-) X11R6.8.2-src.tar.bz2
 * Previous xorg-x11 installation NOT detected
 * Disabling PAM features in xorg-x11...
 * You must remerge xorg-x11 to enable pam.
 * See
 * See
 * The opengl USE flag currently requires the xv flag.

like im a noob what can i do in this case i have this in my make.conf
USE="3dnow mmx sse ac52 aac dvdr X gtk gtk2 qt alsa ogg oggvorbis readline -esd -arts -cups -fortran -python                            
-oss -motif -quicktime -spell -libwww -libg++ -nls -berkdb -perl -aim -xine -xinerama -f77 -gnome -kde -ipv6 -mozilla                   
-emboss -pda -pdflib -pam -netboot -nocardbus -foomaticdb -xv
Comment 11 Joshua Baergen (RETIRED) gentoo-dev 2005-03-25 01:01:11 UTC
*snip* The opengl USE flag currently requires the xv flag.
USE="*snip* -foomaticdb -xv"

Note that you have xv disabled.  Change '-xv' to 'xv'.
Comment 12 chemmitz 2005-03-25 14:28:54 UTC
so i can't make xorg without xv? becouse i dont whant to install xv :(
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2005-03-25 16:41:54 UTC
You can't make xorg _with opengl_ without xv. You need both or none. So, you can
echo "x11-base/xorg-x11 -opengl -xv" >> /etc/portage/package.use
echo "x11-base/xorg-x11 opengl xv" >> /etc/portage/package.use

Also, I hope it's clear that xv in this case refers to xvideo support, and not to the graphics editing package xv.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-25 04:13:02 UTC
This USE combination should be blocked in current xorg.