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

Pls help: arithmetic exception error in make bdb2


I try to compile openldap-2.0-alpha3 using db-2.7.7.tar.gz on Solaris 2.6.
There is error in make test after compilation:

# cd tests
# make bdb2
ln: cannot create ./data: File exists
Initiating LDAP tests...
>>>>> Executing all LDAP tests...
>>>>> Test Directory: .
>>>>> Backend: bdb2
>>>>> Starting test001-slapadd ...
running defines.sh . bdb2
Datadir is ./data
Cleaning up in ./test-db...
Running slapadd to build slapd database...
Arithmetic Exception
slapadd failed!
>>>>> ./scripts/test001-slapadd failed (exit 136)
*** Error code 136
make: Fatal error: Command failed for target `test-bdb2'

I configure OpenLDAP in this way:

LIBS="-lpthread -lposix4" \
CPPFLAGS="-I/usr/local/BerkeleyDB/include" \
LDFLAGS="-L/usr/local/BerkeleyDB/lib" \
CC=gcc \
./configure  --prefix=/usr/local/openldap --enable-shell --enable-passwd --enable-wrappers --with-ldbm-api=db2 --enable-phonetic --enable-bdb2

Would anyone please help?  Thanks a lot.

ST Wong

S.T. Wong                           | Email: st-wong@cuhk.edu.hk