I'm trying to install x11-base/xorg-server-1.5.2 with USE="nptl xorg" INPUT_DEVICES="evdev keyboard mouse synaptics" and VIDEO_CARDS="nvidia" but I get the following error libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../hw/xfree86/os-support -I../hw/xfree86/os-support/bus -I../hw/xfree86/common -I../hw/xfree86/dri -I../hw/xfree86/dri2 -I../mi -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/freetype2 -I/usr/include/pixman-1 -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -DXFree86Server -D__GLX_ALIGN64 -march=core2 -O2 -pipe -MT glxdriswrast.lo -MD -MP -MF .deps/glxdriswrast.Tpo -c glxdriswrast.c -fPIC -DPIC -o .libs/glxdriswrast.o In file included from glxdriswrast.c:39: /usr/include/GL/internal/dri_interface.h:45:17: error: drm.h: No such file or directory In file included from glxdriswrast.c:39: /usr/include/GL/internal/dri_interface.h:285: error: expected declaration specifiers or '...' before 'drm_clip_rect_t' /usr/include/GL/internal/dri_interface.h:287: error: expected declaration specifiers or '...' before 'drm_clip_rect_t' /usr/include/GL/internal/dri_interface.h:341: error: expected declaration specifiers or '...' before 'drm_clip_rect_t' /usr/include/GL/internal/dri_interface.h:603: error: expected declaration specifiers or '...' before 'drm_drawable_t' /usr/include/GL/internal/dri_interface.h:611: error: expected declaration specifiers or '...' before 'drm_context_t' glapitemp.h:1884: warning: 'NoOp_dispatch_stub_339' defined but not used glapitemp.h:1901: warning: 'NoOp_dispatch_stub_340' defined but not used glapitemp.h:1913: warning: 'NoOp_dispatch_stub_341' defined but not used glapitemp.h:1925: warning: 'NoOp_dispatch_stub_342' defined but not used glapitemp.h:1938: warning: 'NoOp_dispatch_stub_343' defined but not used glapitemp.h:1959: warning: 'NoOp_dispatch_stub_344' defined but not used glapitemp.h:1980: warning: 'NoOp_dispatch_stub_345' defined but not used glapitemp.h:2000: warning: 'NoOp_dispatch_stub_346' defined but not used glapitemp.h:2012: warning: 'NoOp_dispatch_stub_347' defined but not used glapitemp.h:2024: warning: 'NoOp_dispatch_stub_348' defined but not used glapitemp.h:2036: warning: 'NoOp_dispatch_stub_349' defined but not used glapitemp.h:2048: warning: 'NoOp_dispatch_stub_350' defined but not used glapitemp.h:2060: warning: 'NoOp_dispatch_stub_351' defined but not used glapitemp.h:2072: warning: 'NoOp_dispatch_stub_352' defined but not used glapitemp.h:2084: warning: 'NoOp_dispatch_stub_353' defined but not used glapitemp.h:2096: warning: 'NoOp_dispatch_stub_354' defined but not used glapitemp.h:2108: warning: 'NoOp_dispatch_stub_355' defined but not used glapitemp.h:2121: warning: 'NoOp_dispatch_stub_356' defined but not used glapitemp.h:2135: warning: 'NoOp_dispatch_stub_357' defined but not used glapitemp.h:2149: warning: 'NoOp_dispatch_stub_358' defined but not used glapitemp.h:2163: warning: 'NoOp_dispatch_stub_359' defined but not used glapitemp.h:2176: warning: 'NoOp_dispatch_stub_360' defined but not used glapitemp.h:2189: warning: 'NoOp_dispatch_stub_361' defined but not used glapitemp.h:2203: warning: 'NoOp_dispatch_stub_362' defined but not used glapitemp.h:2217: warning: 'NoOp_dispatch_stub_363' defined but not used glapitemp.h:2231: warning: 'NoOp_dispatch_stub_364' defined but not used glapitemp.h:2245: warning: 'NoOp_dispatch_stub_365' defined but not used glapitemp.h:2259: warning: 'NoOp_dispatch_stub_366' defined but not used glapitemp.h:2272: warning: 'NoOp_dispatch_stub_367' defined but not used glapitemp.h:2284: warning: 'NoOp_dispatch_stub_368' defined but not used glapitemp.h:2296: warning: 'NoOp_dispatch_stub_369' defined but not used glapitemp.h:2308: warning: 'NoOp_dispatch_stub_370' defined but not used glapitemp.h:2765: warning: 'NoOp_dispatch_stub_423' defined but not used glapitemp.h:4118: warning: 'NoOp_dispatch_stub_576' defined but not used glapitemp.h:4140: warning: 'NoOp_dispatch_stub_577' defined but not used glapitemp.h:4428: warning: 'NoOp_dispatch_stub_607' defined but not used mv -f .deps/glapi.Tpo .deps/glapi.Plo /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../hw/xfree86/os-support -I../hw/xfree86/os-support/bus -I../hw/xfree86/common -I../hw/xfree86/dri -I../hw/xfree86/dri2 -I../mi -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/freetype2 -I/usr/include/pixman-1 -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -DXFree86Server -D__GLX_ALIGN64 -march=core2 -O2 -pipe -MT glxdricommon.lo -MD -MP -MF .deps/glxdricommon.Tpo -c -o glxdricommon.lo glxdricommon.c make[1]: *** [glxdriswrast.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... mv -f .deps/glxext.Tpo .deps/glxext.Plo libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../hw/xfree86/os-support -I../hw/xfree86/os-support/bus -I../hw/xfree86/common -I../hw/xfree86/dri -I../hw/xfree86/dri2 -I../mi -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/freetype2 -I/usr/include/pixman-1 -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -DXFree86Server -D__GLX_ALIGN64 -march=core2 -O2 -pipe -MT glxdricommon.lo -MD -MP -MF .deps/glxdricommon.Tpo -c glxdricommon.c -fPIC -DPIC -o .libs/glxdricommon.o In file included from glxdricommon.c:35: /usr/include/GL/internal/dri_interface.h:45:17: error: drm.h: No such file or directory In file included from glxdricommon.c:35: /usr/include/GL/internal/dri_interface.h:285: error: expected declaration specifiers or '...' before 'drm_clip_rect_t' /usr/include/GL/internal/dri_interface.h:287: error: expected declaration specifiers or '...' before 'drm_clip_rect_t' /usr/include/GL/internal/dri_interface.h:341: error: expected declaration specifiers or '...' before 'drm_clip_rect_t' /usr/include/GL/internal/dri_interface.h:603: error: expected declaration specifiers or '...' before 'drm_drawable_t' /usr/include/GL/internal/dri_interface.h:611: error: expected declaration specifiers or '...' before 'drm_context_t' make[1]: *** [glxdricommon.lo] Error 1 make[1]: Leaving directory `/tmp/portage_tmp/portage/x11-base/xorg-server-1.5.2/work/xorg-server-1.5.2/glx' make: *** [all-recursive] Error 1 * * ERROR: x11-base/xorg-server-1.5.2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3170: Called x-modular_src_compile * environment, line 3969: Called x-modular_src_make * environment, line 4005: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed Reproducible: Always Steps to Reproduce: 1. emerge -1 xorg-server 2. 3. Actual Results: Compilation fails Expected Results: To compile successfully # emerge --info Portage 2.2_rc14 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r4-stolz x86_64) ================================================================= System uname: Linux-2.6.27-gentoo-r4-stolz-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-glibc2.2.5 Timestamp of tree: Sat, 22 Nov 2008 06:05:01 +0000 distcc 3.0 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" 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/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/tmp/distfiles" EMERGE_DEFAULT_OPTS="--columns --keep-going" FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo-euetib.upc.es/mirror/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo" LANG="es_ES@euro" LC_ALL="es_ES@euro" LDFLAGS="-Wl,-O1" LINGUAS="es" MAKEOPTS="-j3" PKGDIR="/tmp/packages" 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="/tmp/portage_tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/synce /usr/portage/local" SYNC="rsync://192.168.0.2/gentoo-portage" USE="3dnow X a52 acpi alsa amd64 bash-completion bluetooth branding bzip2 cli cracklib custom-cflags dts dvd encode gdbm geoip gif gnokii gpm iconv isdnlog jpeg kde kdeenablefinal lm_sensors logitech-mouse mad midi mmap mmx mng mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nvidia ogg opengl openmp pam png pppd python quicktime readline reflection session smp spell spl sse sse2 ssl ssse3 svg sysfs theora threads truetype unicode vorbis xcomposite xinerama xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" FOO2ZJS_DEVICES="hp1018" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="X mtxorb" LINGUAS="es" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Update: If I enable USE="dri" it compiles successfully. I don't need dri so there is still something to be fixed
*** This bug has been marked as a duplicate of bug 236851 ***