RE: [Exim] Problems Building 4.20 with BerkeleyDB.4.1.25

Pàgina inicial
Delete this message
Reply to this message
Autor: Steve Burkett
Data:  
A: exim-users
Assumpte: RE: [Exim] Problems Building 4.20 with BerkeleyDB.4.1.25
Hi guys,

It's on the Redhat walkthrough at the bottom of the FAQ for one
(Question Q0117: Is there a quick walk-through of an Exim install from
source anywhere? ).

http://www.exim.org/exim-html-4.20/doc/html/FAQ.html#TOC102 (Click on
the link at the very very top of that page, then its at step (4) )

I've got the same problem... Pesky DB_Create error. And conflicting
syntax in the examples completely confused me... So it's supposed to
be:

DBMLIB=/usr/local/BerkeleyDB.4.1/lib/libdb.a


... Philip?

If I change it to that, I then start getting (which might be a different
prob....) :


... It's happy up to here ...
gcc -c -O -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+0x87): In
function `__db_pthread_mutex_init':
: undefined reference to `pthread_mutexattr_destroy'
/usr/local/BerkeleyDB.4.1/lib/libdb.a(mut_pthread.o)(.text+0x13c): In
function `__db_pthread_mutex_init':
: undefined reference to `pthread_condattr_setpshared'
/usr/local/BerkeleyDB.4.1/lib/libdb.a(mut_pthread.o)(.text+0x168): In
function `__db_pthread_mutex_init':
: undefined reference to `pthread_mutexattr_init'
/usr/local/BerkeleyDB.4.1/lib/libdb.a(mut_pthread.o)(.text+0x180): In
function `__db_pthread_mutex_init':
: undefined reference to `pthread_mutexattr_setpshared'
/usr/local/BerkeleyDB.4.1/lib/libdb.a(mut_pthread.o)(.text+0x1d9): 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 `/tmp/exim-4.22/build-Linux-i386'
make: *** [go] Error 2



Steve.

-----Original Message-----
From: Andreas Metzler [mailto:eximusers@downhill.at.eu.org]
Sent: 26 August 2003 08:03
To: exim-users@???
Subject: Re: [Exim] Problems Building 4.20 with BerkeleyDB.4.1.25


On Mon, Aug 25, 2003 at 11:12:44PM +0100, Stephen Kitchener wrote:
> I get
>
> gcc -c -O -I/usr/local/BerkeleyDB.4.1/include -o exim_dbmbuild.o
> exim_dbmbuild.c gcc -o exim_dbmbuild exim_dbmbuild.o \
> -lnsl -lcrypt -L/usr/local/BerkeleyDB.4.1/lib/libdb.a

[error message]
> I have set in the Local/Makefile the following
>
> USE_DB=yes
>
> INCLUDE=-I/usr/local/BerkeleyDB.4.1/include
> DBMLIB=-L/usr/local/BerkeleyDB.4.1/lib/libdb.a
>
> as extras to the Makefile, as described in the help on exims site.

[...]

Could you show us where you read that, so it can be fixed? This is
broken.