Although postgresql is installed and postgres useflag is set emerge courier-imap doesn't compile postgresql support. Couldn't get it compiling by hand, either. emerge gives no errors Reproducible: Always Steps to Reproduce: 1. set postgres use flag 2. emerge courier-imap Actual Results: no postgresql support avaiable Expected Results: postgresql support avaiable should be avaiable Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.23_pre8-gss) ================================================================= System uname: 2.4.23_pre8-gss i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -mcpu=i686 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=i686 -mcpu=i686 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache sandbox" GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec. informatik.tu-darmstadt.de/gentoo ftp://ftp.join.uni-muenster. de/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl apache2 autofs avi berkdb cgi crypt cscope curl dedicated fastcgi foomaticdb gd gd-external gdbm gif gtk2 imap imlib ipv6 java javascript jikes jpeg ldap libg++ libwww mad maildir md5sum mikmod motif mpeg mysql ncurses nls nocd oav odbc oggvorbis pam pcap pdflib perl png postgres python quicktime readline regexp samba sdl slang snmp spell ssl tcpd tetex tiff truetype uml x86 xml2 zlib"
*** Bug 40061 has been marked as a duplicate of this bug. ***
Tried again today and it worked. Unmerged vpopmail before. Dunno if this has anything to do with it. Marking as fixed.