I was trying to remerge gaim 1.5.0 with a new use flag after unmerging esound. The compilation of gaim failed since it couldn't find /usr/lib/libesd.la. I emerged esound again, and then gaim emerged fine. This seems like a dependency problem that the gaim ebuild didn't catch. Here are the use flags I had enabled: [ebuild R ] net-im/gaim-1.5.0 USE="cjk eds nls perl spell -debug -gnutls -krb4 -nas -silc -tcl -tk" 0 kB emerge --info Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7ingus i686) ================================================================= System uname: 2.6.17-gentoo-r7ingus i686 Unknown CPU Typ Gentoo Base System version 1.12.5 Last Sync: Tue, 07 Nov 2006 15:20:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 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-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-mp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon-mp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://cudlug.cudenver.edu/gentoo/" MAKEOPTS="-j3" 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 a52 aac aalib acpi aim alsa apache2 asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 canna cdparanoia cdr cjk cli cracklib crypt cups dbus directfb dlloader dri dts dvd dvdr dvdread eds elibc_glibc encode esd fbcon ffmpeg firefox flac foomaticdb fortran ftp gdbm gif glut gpm gstreamer gtk gtk2 guile hal iconv imagemagick imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse isdnlog java javascript jpeg kernel_linux latex libcaca libg++ libwww lm_sensors mad matroska mikmod mmx motif mp3 mpeg mplayer mysql ncurses nls nptl nptlonly nsplugin nvidia ocaml offensive ogg openal opengl oss pam pcre pdf perl plotutils png ppds pppd python quicktime rar readline real reflection samba sdl session spell spl sse sse2 ssl startup-notification subtitles svg tcpd tetex theora truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vmware vorbis win32codecs wxwindows xine xinetd xml xorg xv xvid yahoo zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
gaim uses libao, not esound (read the FAQ). Run revdep-rebuild and emerge -NuD world.