xorg-server-1.6.5-r1 cannot build when libXext-1.1.1 is installed as the headers differ from what it expects. Downgrading libXext resolves the issue. Reproducible: Always Steps to Reproduce: 1. Install libXext-1.1.1 2. Try to install x11-base/xorg-server-1.6.5-r1 3. Actual Results: .lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c In file included from main.c:115: /usr/include/X11/extensions/dpms.h:40: error: expected ')' before '*' token /usr/include/X11/extensions/dpms.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSGetVersion' /usr/include/X11/extensions/dpms.h:42: error: expected ')' before '*' token /usr/include/X11/extensions/dpms.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSSetTimeouts' /usr/include/X11/extensions/dpms.h:44: error: expected ')' before '*' token /usr/include/X11/extensions/dpms.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSEnable' /usr/include/X11/extensions/dpms.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSDisable' /usr/include/X11/extensions/dpms.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSForceLevel' /usr/include/X11/extensions/dpms.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DPMSInfo' make[2]: *** [main.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.6.5-r1/work/xorg-server-1.6.5/dix' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.6.5-r1/work/xorg-server-1.6.5/dix' make: *** [all-recursive] Error 1 * ERROR: x11-base/xorg-server-1.6.5-r1 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 8067: Called x-modular_src_compile * environment, line 9028: Called x-modular_src_make * environment, line 9066: Called die * The specific snippet of code: * emake || die "emake failed" * * If you need support, post the output of 'emerge --info =x11-base/xorg-server-1.6.5-r1', * the complete build log and the output of 'emerge -pqv =x11-base/xorg-server-1.6.5-r1'. * The complete build log is located at '/var/tmp/portage/x11-base/xorg-server-1.6.5-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-base/xorg-server-1.6.5-r1/temp/environment'. * S: '/var/tmp/portage/x11-base/xorg-server-1.6.5-r1/work/xorg-server-1.6.5' >>> Failed to emerge x11-base/xorg-server-1.6.5-r1, Log file: >>> '/var/tmp/portage/x11-base/xorg-server-1.6.5-r1/temp/build.log' * Messages for package x11-base/xorg-server-1.6.5-r1: * ERROR: x11-base/xorg-server-1.6.5-r1 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 8067: Called x-modular_src_compile * environment, line 9028: Called x-modular_src_make * environment, line 9066: Called die * The specific snippet of code: * emake || die "emake failed" * * If you need support, post the output of 'emerge --info =x11-base/xorg-server-1.6.5-r1', * the complete build log and the output of 'emerge -pqv =x11-base/xorg-server-1.6.5-r1'. * The complete build log is located at '/var/tmp/portage/x11-base/xorg-server-1.6.5-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-base/xorg-server-1.6.5-r1/temp/environment'. * S: '/var/tmp/portage/x11-base/xorg-server-1.6.5-r1/work/xorg-server-1.6.5' Portage 2.1.7.17 (default/linux/x86/10.0, gcc-4.1.2, glibc-2.10.1-r0, 2.6.27-gentoo-r7 i686) ================================================================= System uname: Linux-2.6.27-gentoo-r7-i686-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-1.12.11.1 Timestamp of tree: Sun, 31 Jan 2010 18:30:01 +0000 app-shells/bash: 3.2_p48-r1 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.5.4-r2, 2.6.2-r1, 3.1.1-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i486-pc-linux-gnu" CFLAGS="-O2 -mtune=i686 -pipe" CHOST="i486-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -mtune=i686 -pipe" DISTDIR="/usr/portage/distfiles" 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" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/jamiel/git/gentoo-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode vim-syntax x86 xorg 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="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
INVALID (actually a duplicate of a few bugs). As you are in unstable, that lib and 1.7 server work. Currently there's no EAPI, that supports deps with range, instead of either max or min.