I think this happen because I have db-4.1. Reproducible: Always Steps to Reproduce: 1. emerge postfix Actual Results: ranlib ../../lib/libmaster.a gcc -DHAS_SSL -I/usr/include/sasl -DUSE_SASL_AUTH -DHAS_MYSQL -I/usr/include/mysql -DHAS_LDAP -DHAS_PCRE -DINET6 -D__ss_family=ss_family -march=athlon-xp -Os -pipe -I. -I../../include -DLINUX2 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o master_status.o master_listen.o master_vars.o master_wakeup.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lmysqlclient -lm -lz -lldap -llber -lpam -L/usr/lib -lpcre -ldl -lcrypt -ldb -lnsl -lresolv /usr/lib/libdb.so: undefined reference to `pthread_condattr_setpshared' /usr/lib/libdb.so: undefined reference to `pthread_mutexattr_destroy' /usr/lib/libdb.so: undefined reference to `pthread_mutexattr_setpshared' /usr/lib/libdb.so: undefined reference to `pthread_mutexattr_init' /usr/lib/libdb.so: undefined reference to `pthread_mutex_trylock' collect2: ld returned 1 exit status make: *** [master] Błąd 1 make: *** [update] Błąd 1 !!! ERROR: net-mail/postfix-2.0.14 failed. !!! Function src_compile, Line 163, Exitcode 2 !!! compile problem Expected Results: Postfix should compile. Portage 2.0.49-r3 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r3, 2.6.0-test4-mm6) ================================================================= System uname: 2.6.0-test4-mm6 i686 AMD Duron(tm) ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -Os -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -Os -pipe" DISTDIR="/mnt/gentoo-os/distfiles" FEATURES="sandbox ccache autoaddcvs buildpkg" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/mnt/gentoo-os/packages/athlon-xp-gcc3.3" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/mnt/gentoo-os/portage-local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg kde libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts java mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla ldap acl acpi apache2 gstreamer gtk2 imap ipv6 kerberos maildir mozp3p mozsvg mozxmlterm nptl odbc samba sasl slp sse xfs -svga"
Created attachment 17154 [details, diff] postfix-ebuild-pthread.diff It works (at least for me) with this.
Created attachment 17155 [details, diff] postfix-ebuild-pthread.diff
Please give version 2.0.16 a thrashing and report back your experiences.
This should be fixed in the latest version.