While emerging virtual/x11 openmotif failed to compile. I tracked the problem down to missing header files. it seems that it was looking for the header files in /usr/X11R6/include instead of /usr/include. from /usr creating the symlink of ln -s ../usr X11R6 solved the problem allowing openmotif to install and continue on the process of installing virtual/x11.
Reopen w/ openmotif version, actual errors and emerge --info, please.
openmotif-2.1.30-r14 Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r13 i686) ================================================================= System uname: 2.6.16-gentoo-r13 i686 AMD Sempron(tm) Processor 2800+ Gentoo Base System version 1.6.15 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r4 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -mfpmath=sse -O2 -pipe -mmmx -msse -msse2 -m3dnow" CHOST="i686-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" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=athlon-xp -mfpmath=sse -O2 -pipe -mmmx -msse -msse2 -m3dnow" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt cups dlloader dri encode flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod mmx mmxext motif mp3 mp4 mpeg mpeg2 multiuser ncurses nforce2 nls nptl nptlonly nvidis offensive ogg opengl pam pcre pdf pdflib perl png posix pppd python qt qt3 qt4 quicktime readline reflection reiserfs sdl session spell spl sse sse2 ssl tcpd theora tiff truetype truetype-fonts type1 type1-fonts udev unicode vcd vorbis win32codecs xchatdccserver xml xmms xorg xprint xscreensaver xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS cc -c -O -I../../include -I../../imports/x11/include/X11 `./ccimake` imake.c imake.c:155:21: Xosdefs.h: No such file or directory make[2]: *** [imake.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/openmotif-2.1.30-r14/work/motif/con fig/imake' make[1]: *** [imake.proto] Error 2 make[1]: Leaving directory `/var/tmp/portage/openmotif-2.1.30-r14/work/motif' make: *** [World] Error 2
As I stated in my initial post this is because o the fact that instead of looking in /usr/include it is looking for the files to be in /usr/X11R6/include.
So use some recent version, not the outdated one. 2.2.3-r9 which is current stable compiles just fine.