Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28044 - Postfix requires linking with pthread
Summary: Postfix requires linking with pthread
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-06 06:08 UTC by Marcin Wisnicki
Modified: 2003-09-24 21:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
postfix-ebuild-pthread.diff (postfix-ebuild-pthread.diff,320 bytes, patch)
2003-09-06 06:12 UTC, Marcin Wisnicki
Details | Diff
postfix-ebuild-pthread.diff (postfix-ebuild-pthread.diff,321 bytes, patch)
2003-09-06 06:19 UTC, Marcin Wisnicki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Wisnicki 2003-09-06 06:08:59 UTC
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"
Comment 1 Marcin Wisnicki 2003-09-06 06:12:30 UTC
Created attachment 17154 [details, diff]
postfix-ebuild-pthread.diff

It works (at least for me) with this.
Comment 2 Marcin Wisnicki 2003-09-06 06:19:24 UTC
Created attachment 17155 [details, diff]
postfix-ebuild-pthread.diff
Comment 3 Max Kalika (RETIRED) gentoo-dev 2003-09-24 10:29:32 UTC
Please give version 2.0.16 a thrashing and report back your experiences. 
Comment 4 Max Kalika (RETIRED) gentoo-dev 2003-09-24 21:16:45 UTC
This should be fixed in the latest version.