f test "emacs" != no; then \ set x; \ list='start-po.el po-mode.el po-compat.el'; for p in $list; do \ if test -f "$p"; then d=; else d="./"; fi; \ set x "$@" "$d$p"; shift; \ done; \ shift; \ EMACS="emacs" /bin/sh ../../build-aux/elisp-comp "$@" || exit 1; \ else : ; fi emacs: error while loading shared libraries: libXm.so.2: cannot open shared object file: No such file or directory make[3]: *** [elc-stamp] Error 1 make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools/misc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools' make: *** [all-recursive] Error 1 !!! ERROR: sys-devel/gettext-0.14.4 failed. !!! Function src_compile, Line 64, Exitcode 2 Reproducible: Always Steps to Reproduce: 1.emerge sys-devel/gettext 2. 3. Actual Results: emerge quits with error Expected Results: emerge gettext groovesurfer portage # emerge info Portage 2.0.51.22 (default-linux/x86/2005.0, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Gentoo Base System version 1.5.3 dev-lang/python: 2.1.3-r1, 2.3.3, 2.3.4 sys-apps/sandbox: 1.2.6 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.2-r5 virtual/os-headers: 2.4.22 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/fstab /etc/group /etc/passwd /etc/sane.d/snapscan.conf /etc/shadow /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/X11 /etc/gconf /etc/kde /etc/sane.d /etc/terminfo /usr/kde /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.eliteitminds.com" LANG="de_DE@euro" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 apm arts audiofile avi berkdb bidi bitmap-fonts bonobo cdr cjk crypt cups curl dba divx4linux doc dvd eds emacs emboss encode esd evo fam flac foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml imagemagick imlib ipv6 java joystick jpeg junit kde ldap libg++ libwww mad mikmod motif mozilla mp3 mpeg mpi msn mysql nas ncurses nls odbc ogg oggvorbis opengl oss pam pcmcia pda pdflib perl png pnp postgres python qt quicktime readline ruby samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb vorbis xine xinerama xml xml2 xmms xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
you had motif installed, and you installed emacs against it, then you uninstalled motif, and broke emacs.