First emerge vpopmail, then unemerge vpopmail, then emerge courier-imap and it will fail. !!! ERROR: net-mail/courier-imap-2.1.2-r1 failed. !!! Function econf, Line 338, Exitcode 77 looking through the config.log, I can see gcc is failing when trying to include vpopmail support. USE="-vpopmail" doesn't seem to change anything. /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lvpopmail configure:1592: gcc -march=pentium3 -O2 -pipe -I/var/vpopmail/include -L/var/vpopmail/lib -lvpopmail -L/usr/lib/mysql -lmysqlclient -lz conftest.c >&5 assitance in #gentoo-server was able to find from the ebuild that I needed to delete the vpopmail entry in /etc/passwd because of these lines. VPOPMAIL_DIR=`cat /etc/passwd | grep ^vpopmail | cut -d: -f6` VPOPMAIL_INSTALLED= [ -n "${VPOPMAIL_DIR}" ] && [ -f "${VPOPMAIL_DIR}/etc/lib_deps" ] && VPOPMAIL_INSTALLED=1 So if vpopmail was ever previously installed, it will make courier-imap fail to emerge. It maybe related to this thread. http://forums.gentoo.org/viewtopic.php?t=87372 Reproducible: Always Steps to Reproduce:
fixed in CVS.