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

RE: Compiling OpenLdap2.0.25 with BerkeleyDB 4.1.24



I downloaded BerkeleyDB-4.0.14 and it solves this problem.

Then, the make test did not work. I got the message :


Initiating LDAP tests for LDBM...
>>>>> Executing all LDAP tests...
>>>>> Test Directory: .
>>>>> Backend: ldbm
>>>>> Starting test000-rootdse ...
running defines.sh . ldbm
Datadir is ./data
Cleaning up in ./test-db...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to retrieve all the entries...
./scripts/test000-rootdse[29]: 25204 Memory fault(coredump)
./scripts/test000-rootdse[29]: 25206 Memory fault(coredump)
./scripts/test000-rootdse[29]: 25208 Memory fault(coredump)
./scripts/test000-rootdse[29]: 25210 Memory fault(coredump)
./scripts/test000-rootdse[29]: 25212 Memory fault(coredump)
./scripts/test000-rootdse[29]: 25214 Memory fault(coredump)
kill: 24890: no such process
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed (exit 139)
make[1]: *** [test-ldbm] Erreur 139
make[1]: Quitte le repertoire `/logiciels/openldap/openldap-2.0.25/tests'
make: *** [test] Erreur 2

I found the solution in a previous message send to OpenLDAP-Bugs mailing 
list (Thanks to Bryan z.)
It says to modify the file include/portable.h. Take out the definition of 
HAVE_GETADDRINFO
#define  HAVE_GETADDRINFO 1
=> #undef  HAVE_GETADDRINFO
I then did make depend, make and make test and it passed all the tests.
Renaud Motuelle
Email : rmotuelle@sopragroup.com


Ce message est exclusivement destine aux personnes dont le nom figure 
ci-dessus. Il peut contenir des informations confidentielles dont la 
divulgation est a ce titre rigoureusement interdite.
Dans l'hypothese ou vous avez recu ce message par erreur, merci de le 
renvoyer a l'adresse e-mail ci-dessus et de detruire toute copie.

This message may contain confidential and proprietary material for the sole 
use of the intended recipient. Any review or distribution by others is 
strictly prohibited.
If you are not the intended recipient, please contact the sender and delete 
all copies.



-----Message d'origine-----
De:	Renaud Motuelle [SMTP:rmotuelle@sopragroup.com]
Date:	mercredi 16 octobre 2002 11:02
A:	'openldap-software@OpenLDAP.org'
Objet:	Compiling OpenLdap2.0.25 with BerkeleyDB 4.1.24

I am installing OpenLdap2.0.25 on a IBM RS/6000 Aix 4.3 server.

I have successfully installed the pre-requitered softwares and libraries :
OpenSSL 0.9.6.7
CyrusSASL 1.5.28
BerkeleyDB 4.1.24

I installed BerkeleyDB to the directory /logiciels/BerkeleyDB.4.1

I used the commands :
export LIBPATH="/logiciels/BerkeleyDB.4.1/lib:/usr/local/lib:${LIBPATH}"
env CPPFLAGS="-I/logiciels/BerkeleyDB.4.1/include" \
	LDFLAGS="-lpthreads -L/logiciels/BerkeleyDB.4.1/lib" \
	./configure --prefix=/logiciels --with-cyrus-sasl
make depend
make

configure and make depend do not produce errors but make returns this
result :

  Entering subdirectory libldbm
make[2]: Entre dans le repertoire
`/logiciels/openldap/openldap-2.0.25/libraries
/libldbm'
gcc -g -O2 -I../../include        -I../../include
  -I/logiciels/BerkeleyDB.4.1/
include     -c -o ldbm.o ldbm.c
ldbm.c: In function `ldbm_open':
ldbm.c:329: warning: passing arg 2 of pointer to function from incompatible 
poin
ter type
ldbm.c:329: warning: passing arg 4 of pointer to function makes pointer
from int
eger without a cast
ldbm.c:329: too few arguments to function
make[2]: *** [ldbm.o] Erreur 1
make[2]: Quitte le repertoire
`/logiciels/openldap/openldap-2.0.25/libraries/lib
ldbm'
make[1]: *** [all-common] Erreur 1
make[1]: Quitte le repertoire
`/logiciels/openldap/openldap-2.0.25/libraries'
make: *** [all-common] Erreur 1

I had a quick look to the source
line 329 : 	err = ret->open( ret, name, NULL, DB_TYPE, rw, mode);

It seems that the BerkeleyDB lib  4.1.24 is not compatible to OpenLdap
v2.0.25. Is that right ? Which version should I use ?

______________________________
Renaud Motuelle
Email : rmotuelle@sopragroup.com

Ce message est exclusivement destine aux personnes dont le nom figure
ci-dessus. Il peut contenir des informations confidentielles dont la
divulgation est a ce titre rigoureusement interdite.
Dans l'hypothese ou vous avez recu ce message par erreur, merci de le
renvoyer a l'adresse e-mail ci-dessus et de detruire toute copie.

This message may contain confidential and proprietary material for the sole 
use of the intended recipient. Any review or distribution by others is
strictly prohibited.
If you are not the intended recipient, please contact the sender and delete 
all copies.