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/hw/xfree86/os-support -I../../../../../../programs/Xserver/mfb -I../../../../../../programs/Xserver/mi -I../../../../../../programs/Xserver/hw/xfree86/xaa -I../../../../../../programs/Xserver/hw/xfree86/rac -I../../../../../../programs/Xserver/miext/shadow -I../../../../../../programs/Xserver/fb -I../../../../../../programs/Xserver/hw/xfree86/xaa -I../../../../../../programs/Xserver/hw/xfree86/ramdac -I../../../../../../programs/Xserver/hw/xfree86/vgahw -I../../../../../../programs/Xserver/hw/xfree86/ddc -I../../../../../../programs/Xserver/hw/xfree86/i2c -I../../../../../../programs/Xserver/hw/xfree86/vbe -I../../../../../../programs/Xserver/hw/xfree86/int10 -I../../../../../../programs/Xserver/hw/xfree86/shadowfb -I../../../../../../programs/Xserver/Xext -I../../../../../../include/fonts -I../../../../../../programs/Xserver/include -I../../../../../../exports/include/X11 -I../../../../../../include/extensions -I../../../../../../programs/Xserver/render -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 -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPIXPRIV -DPANORAMIX -DRENDER -DRANDR -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((1) * 1000) + 901)" -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -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 `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc/programs/Xserver/hw/xfree86/drivers/i810' make[6]: *** [all] Error 2 make[6]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc/programs/Xserver/hw/xfree86/drivers' make[5]: *** [all] Error 2 make[5]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc/programs/Xserver/hw/xfree86' make[4]: *** [hw/xfree86] Error 2 make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc/programs/Xserver' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc/programs' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc' make[1]: *** [World] Error 2 make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc' make: *** [World] Error 2 !!! ERROR: x11-base/xorg-x11-6.8.1.901 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-6.8.1.901 -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.3.4.20041102-r0, 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/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" 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" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.mirror.sdv.fr ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 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)
What happens if you add "xv" to USE?
The merge was succeful after adding the "xv" flag. So, if you want opengl, you also need xv ... strange !
Sorry to make things more complicated, but I successfully compiled xorg-x11-6.8.1.901 with USE="opengl -xv"
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.
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"?
"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
I tryed your solution --> comment #6 however it did not work for me.
Comment #6 was ways to get it to _fail_, not to work. Which are you trying to do?
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
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 http://bugs.gentoo.org/show_bug.cgi?id=35468. * See http://bugs.gentoo.org/show_bug.cgi?id=76936 * 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
*snip* The opengl USE flag currently requires the xv flag. USE="*snip* -foomaticdb -xv" Note that you have xv disabled. Change '-xv' to 'xv'.
so i can't make xorg without xv? becouse i dont whant to install xv :(
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 or 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.
This USE combination should be blocked in current xorg.