When trying to compile x11-base/xorg-server-1.8.1.902, the emerge fails with: ... CC glxdri2.lo glxdri2.c: In function '__glXDRIdrawableSwapBuffers': glxdri2.c:222: error: '__DRI2flushExtension' has no member named 'flushInvalidate' make[1]: *** [glxdri2.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/home/portage/portagetmp/portage/x11-base/xorg-server-1.8.1.902/work/xorg-server-1.8.1.902/glx' make: *** [all-recursive] Error 1 ERROR: x11-base/xorg-server-1.8.1.902 failed: died running emake, base_src_make I will try to attach the full logs to this bug. Reproducible: Always Steps to Reproduce: 1. emerge -v =x11-base/xorg-server-1.8.1.902 Actual Results: I receive the following error: CC glxdri2.lo glxdri2.c: In function '__glXDRIdrawableSwapBuffers': glxdri2.c:222: error: '__DRI2flushExtension' has no member named 'flushInvalidate' make[1]: *** [glxdri2.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/home/portage/portagetmp/portage/x11-base/xorg-server-1.8.1.902/work/xorg-server-1.8.1.902/glx' make: *** [all-recursive] Error 1 ERROR: x11-base/xorg-server-1.8.1.902 failed: died running emake, base_src_make Expected Results: Emerge succeeds Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-rc4 i686) ================================================================= System uname: Linux-2.6.35-rc4-i686-Intel-R-_Pentium-R-_D_CPU_3.00GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 12 Jul 2010 01:45:02 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] app-shells/bash: 4.1_p7 dev-java/java-config: 1.3.7-r1, 2.1.11 dev-lang/python: 2.6.5-r2, 3.1.2-r3 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.5, 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/home/portage/portagedist" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/home/portage/portagetmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/gnome /var/lib/layman/vmware /var/lib/layman/rion /var/lib/layman/godin" SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage" USE="X a52 acl acpi alsa aspell avi bash-completion browserplugin bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus device-mapper directfb dri extensions fbcon ffmpeg fortran fuse gdbm gdu gif gnome gnutls gtk gtk+ hal iconv java jpeg ldap libnotify mmx modules mp3 mpeg msn mudflap nautilus ncurses networkmanager nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png policykit pppd python readline reflection samba secure-delete session sip spl sqlite sse sse2 ssl svg sysfs tcpd theora threads tiff truetype unicode usb vorbis wav win32codecs x86 xcb xft xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel fbdev i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 238771 [details] Build log This is the build log that resulted during the emerge.
Created attachment 238773 [details] Build environment Build environment while attempting to build
> checking for perl... /usr/local/bin/perl You have some things in /usr/local, this can result in build or runtime failures. Ensure that they don't conflict with x11 packages, if in doubt move the entire directory out of the way.
Okay, I'll give that a try and reply back. Thanks for the tip!
Okay, after moving /usr/lib/perl to ~/perl, the emerge failed right away when calling aclocal. I'll attach the logs. * Running aclocal -I m4 ... [ !! ] * Failed Running aclocal !
Here's the output of sudo emerge --info =x11-base/xorg-server-1.8.1.902: Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-rc4 i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.35-rc4-i686-Intel-R-_Pentium-R-_D_CPU_3.00GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 12 Jul 2010 01:45:02 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] app-shells/bash: 4.1_p7 dev-java/java-config: 1.3.7-r1, 2.1.11 dev-lang/python: 2.6.5-r2, 3.1.2-r3 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.5, 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/home/vmuser/vmware/portagedist" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/home/vmuser/vmware/portagetmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/gnome /var/lib/layman/vmware /var/lib/layman/rion /var/lib/layman/godin /var/lib/layman/x11" SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage" USE="X a52 acl acpi alsa aspell avi bash-completion browserplugin bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus device-mapper directfb dri extensions fbcon ffmpeg fortran fuse gdbm gdu gif gnome gnutls gtk gtk+ hal iconv java jpeg ldap libnotify mmx modules mp3 mpeg msn mudflap nautilus ncurses networkmanager nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png policykit pppd python readline reflection samba secure-delete session sip spl sqlite sse sse2 ssl svg sysfs tcpd theora threads tiff truetype unicode usb vorbis wav win32codecs x86 xcb xft xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel fbdev i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Here's the output of sudo emerge -pqv =x11-base/xorg-server-1.8.1.902 [ebuild U ] x11-base/xorg-server-1.8.1.902 [1.7.7] USE="hal nptl udev%* xorg -dmx -doc% -ipv6 -kdrive -minimal -static-libs% -tslib (-debug%*) (-sdl%)" [ebuild U ] x11-apps/xinit-1.2.1-r2 [1.2.1] USE="minimal pam -debug" [blocks b ] <x11-apps/xinit-1.2.1-r1 ("<x11-apps/xinit-1.2.1-r1" is blocking x11-base/xorg-server-1.8.1.902)
Created attachment 239053 [details] Build log of emerge after moving /usr/local/perl This is the build log that resulted after moving /usr/local/perl.
The problems are caused by things in /usr/local, not by /usr/lib. Installing software outside portage breaks your system at worst, and makes it unsupportable at best. Resolving as INVALID. Please reopen if the problem persists after getting rid of /usr/local/* and emerge -ae world.
Created attachment 239055 [details] Build environment of emerge after moving /usr/local/perl This is the resulting environment log after moving /usr/local/perl.
(In reply to comment #9) > The problems are caused by things in /usr/local, not by /usr/lib. Installing > software outside portage breaks your system at worst, and makes it > unsupportable at best. > > Resolving as INVALID. Please reopen if the problem persists after getting rid > of /usr/local/* and emerge -ae world. > Okay, I'll try it and get back to you; Thanks for the help :)
Just in case anyone is wondering/waiting, the build is gonna take a while... 13/1130 packages complete so far.
Still updating... Current count is 27/707. Haven't gotten to xorg-server yet.
I'm now down to 145/243... glib just finished and gcc is starting. Once those are done, I think I'll be getting pretty close.
Okay, I've just reached xorg-server and I got the same error as before. Should I re-attach all the information?
is something still in /usr/local?
I don't think anything in there would be conflicting, but maybe I'm wrong. I'm not sure about that pkgconfig directory though. myuser@myhost:~ $ sudo ls /usr/local/lib -al total 16 drwxr-xr-x 4 root root 4096 Jul 19 20:29 . drwxr-xr-x 14 root root 4096 Mar 31 13:09 .. -rw-r--r-- 1 root root 0 Aug 3 2006 .keep drwxr-xr-x 2 root root 4096 Jun 18 2009 pkgconfig drwxr-xr-x 2 root root 4096 Nov 20 2009 purple-2
I found the following stuff in the /usr/local/lib/pkgconfig directory. Would this cause the issue? myuser@myhost:~ $ sudo ls -al /usr/local/lib/pkgconfig/ total 44 drwxr-xr-x 2 root root 4096 Jul 20 11:07 . drwxr-xr-x 4 root root 4096 Jul 19 20:29 .. -rw-r--r-- 1 root root 238 Jun 9 2009 dri.pc -rw-r--r-- 1 root root 482 Nov 6 2007 gimp-2.0.pc -rw-r--r-- 1 root root 271 Nov 6 2007 gimpthumb-2.0.pc -rw-r--r-- 1 root root 311 Nov 6 2007 gimpui-2.0.pc -rw-r--r-- 1 root root 232 Jun 9 2009 gl.pc -rw-r--r-- 1 root root 255 Jun 9 2009 glu.pc -rw-r--r-- 1 root root 269 Jun 9 2009 glut.pc -rw-r--r-- 1 root root 254 Jun 9 2009 glw.pc -rw-r--r-- 1 root root 297 Jun 10 2009 xcomposite.pc
I moved that pkgconfig directory and am trying to re-emerge xorg-server. Maybe it'll work this time. I'll post the results.
Well... That didn't work. Same problem as before. Is it possible I'd have to re-emerge xorg again after moving that pkgconfig directory?
As long as something exists in /usr/local/ it is preferred over /usr/ things. To me it looks like some *proto package is at fault. And dri.pc, gl*.pc, xcomposite.pc definitely look X.org related enough to interfere with xorg-server build. Sorry, but if you install things outside portage or in /usr/local you have an unsupported configuration and are on your own how to solve.
Okay, I've removed everything from /usr/local... Now, would you recommend re-emerging everything? myhost ~ # ls -al /usr/local/ total 8 drwxr-xr-x 2 root root 4096 Jul 20 12:34 . drwxr-xr-x 23 root root 4096 Jul 15 12:51 .. -rw-r--r-- 1 root root 0 Aug 3 2006 .keep
Thanks for your previous comment though about /usr/local... I must have gotten a little bit lax in setting --prefix=/usr when installing stuff from source at one point or another.
Until I hear back, I'm gonna try emerging xorg-server again. Or more accurately, sudo emerge -vae world --resume.
You may be able to get help in the forums, they have a section for unsupported software.
Okay, this is finally fixed. The problem is too long to explain here, so I'll post it to my website. In a nutshell, I had to re-emerge perl, and then perl-clean, removed a bunch of junk I didn't use from portage, depclean, manually resolve/remove some broken libraries that were manually installed (my bad), revdep-rebuild, emptytree, (a whole bunch of --resume's since vmware-modules needed patching, fetch restrictions, bunch of stuff in /usr/bin/ was referencing /usr/local/lib/perl, etc). Bottom line, this bug was caused by *ME* :) Thanks for all the help Chí-Thanh Christopher Nguyễn and getting me to look in /usr/local.