The compile fails if you try to emerge =x11-base/xorg-x11-6.7.0-r2 on a system which does not have motif. To fix it, I had to do: emerge lesstif cd /usr/X11R6/include ln -s lesstif/Xm Xm However, this only worked because I already had -r1 installed -- the lesstif ebuild needs the X libraries. This bug means that there is no way to start from nothing and get an X system. Reproducible: Always Steps to Reproduce: 1. Start with an amd64 system with no motif headers. 2. emerge =x11-base/xorg-x11-6.7.0-r2 Actual Results: Several screens full of incomplete type errors from GCC Expected Results: built the x.org software and installed it Portage 2.0.50-r9 (default-amd64-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.5) ================================================================= System uname: 2.6.5 x86_64 4 Gentoo Base System version 1.5.1 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://194.117.158.28 ftp://194.117.158.30/mirrors/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="X alsa amd64 apm arts avi berkdb crypt encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg libg++ libwww mikmod motif mozilla mpeg ncurses nls nogcj nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl tcpd truetype xml2 xmms xv zlib"
*** This bug has been marked as a duplicate of 57271 ***