On Fri, 2010-08-13 at 04:59:49 +0800, damian lee wrote: > I got a lot of errors like > > /usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libdb.a(mut_pthread.o): In > function `__db_pthread_mutex_destroy': undefined reference to > `pthread_mutex_destroy' > > It seems my static linked version of libdb doesn't work. > > Any suggestions?
>From section 4 of the DB_README: When building Postfix fails with: undefined reference to `pthread_condattr_setpshared' undefined reference to `pthread_mutexattr_destroy' undefined reference to `pthread_mutexattr_init' undefined reference to `pthread_mutex_trylock' Add the "-lpthread" library to the "make makefiles" command. % make makefiles .... AUXLIBS="... -lpthread" More information is available at http://www.oracle.com/database/berkeley-db/. -- Sahil Tandon <sa...@freebsd.org>