Autor: Chris Meadors Data: A: Bo-Lina teknisk support CC: exim-users Assumpte: Re: [Exim] Compilation problem with Exim 4.31 and BerkeleyDB
Bo-Lina teknisk support wrote: > This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> Hi, Im trying to Install Exim 4.31 and BerkeleyDB v4.1.25, I have also tested with v4.2.52
>
> This is the error message I get, I don't know what wrong and what to do about it, annyone who has a solution ?
>
>
> -------------------------
>
> gcc -c -O -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/local/BerkeleyDB.4.1/include -o exim_dbmbuild.o exim_dbmbuild.c
> gcc -o exim_dbmbuild exim_dbmbuild.o \
> -lnsl -lcrypt /usr/local/BerkeleyDB.4.1/lib/libdb.a
> /usr/local/BerkeleyDB.4.1/lib/libdb.a(mut_pthread.o)(.text+0x91): In function `__db_pthread_mutex_init':
> : undefined reference to `pthread_mutexattr_destroy'
> /usr/local/BerkeleyDB.4.1/lib/libdb.a(mut_pthread.o)(.text+0x14d): In function `__db_pthread_mutex_init':
> : undefined reference to `pthread_condattr_setpshared'
> /usr/local/BerkeleyDB.4.1/lib/libdb.a(mut_pthread.o)(.text+0x15f): In function `__db_pthread_mutex_init':
> : undefined reference to `pthread_mutexattr_init'
> /usr/local/BerkeleyDB.4.1/lib/libdb.a(mut_pthread.o)(.text+0x183): In function `__db_pthread_mutex_init':
> : undefined reference to `pthread_mutexattr_setpshared'
> /usr/local/BerkeleyDB.4.1/lib/libdb.a(mut_pthread.o)(.text+0x1e4): In function `__db_pthread_mutex_lock':
> : undefined reference to `pthread_mutex_trylock'
> collect2: ld returned 1 exit status
> make[1]: *** [exim_dbmbuild] Error 1
> make[1]: Leaving directory `/usr/src/ATMAIL/exim-4.31/build-Linux-i386'
> make: *** [go] Error 2
You must be building on an NPTL based distro, right?
You need to link against libpthread. Somewhere in the build
configuration files, add a "-lpthead" to the CFLAGS. That'll fix it.