[Date Prev][Date Next] [Chronological] [Thread] [Top]

Problems compiling back-bdb

   I trying to compile openldap 2.1.4 on a slackware linux box ( 2.4.18
gcc version 2.95.3). I've downloaded and installed the latest db package
(4.1.24) from sleepycat in /usr/local on our system as I would prefer to
use it over the native ldbm/gdbm api.

I've configured with the following gnu-configure commands...

./configure --prefix=/usr/local --includedir=/usr/local/ --includedir=/usr
--libdir=/usr/local --libdir=/usr --libdir=/

so that hopefully it will look in /usr/local/{lib|include} before

I also set LD_LIBRARY_PATH to /usr/local/lib:/usr/lib:/lib

Everything builds ok until I get to.. the bdb backend..

root@oracle:/usr/local/src/openldap-2.1.4/servers/slapd# make
building static backends...

  cd back-bdb; make  all
make[1]: Entering directory
/bin/sh /usr/local/src/openldap-2.1.4/libtool  --mode=compile cc -g -O2
-I../../../include        -I../../../include -I.. -I./..     -c init.c
rm -f .libs/init.lo
cc -g -O2 -I../../../include -I../../../include -I.. -I./.. -c init.c
-fPIC -DPIC -o .libs/init.loinit.c: In function `bdb_db_open':
init.c:370: warning: passing arg 2 of pointer to function from
incompatible pointer type
init.c:370: warning: passing arg 4 of pointer to function makes pointer
from integer without a castinit.c:370: too few arguments to function
make[1]: *** [init.lo] Error 1
make[1]: Leaving directory
make: *** [.backend] Error 1

My first thought is that for some reason I'm getting the DB version
provided on slackware (3.1.17)'s include files and the /usr/local version
(4.1.24) libraries...

I had to install the latest DB package because configure reported I was
missing some bdb functionality from my original 3.1.17 install and would
exit out. (missing bdb backend)

this is the my first time with openldap so it maybe something obvious but
a quick trawl of the archives did not show anything similar. Am I making a
noob error here or just using the wrong version of Sleepycat/Berkeley DB?

Responses to me and I will summarise..

--                                              _
FLESH: Adam Bentley, Systems/Networking/Usenet, Coventry University. UK
INET : A.Bentley@coventry.ac.uk
			#include <std/disclaimer.h>