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

Re: Problems with slapd and bdb on IRIX 6.5.25



The information you've given shows that something is failing the very first time slapd tries to open/create a BDB database. This indicates a problem with BDB 4.2 or your build of it on Irix. You'll probably need to get help from Sleepycat on this, try news:comp.databases.berkeley-db

Mark Andrews wrote:

Hi all,

I've downloaded openldap 2.2.17 and 2.2.18 onto an IRIX machine with the
following environment:

Operating system: IRIX 6.5.25m
Compiler: gcc 3.3
Berkeley DB 4.2 compiled and installed in /usr/local/BerkeleyDB.4.2
Cyrus SASL 2.1.20 compiled and installed in /usr/local
Using GNU make 3.80 instead of IRIX make

My configure command line for OpenLDAP is:

env CFLAGS=-O3 CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include
-I/usr/local/ssl/include -I/usr/local/incude"
LDFLAGS="-L/usr/local/ssl/lib -L/usr/local/lib
-L/usr/local/BerkeleyDB.4.2/lib -Wl,-rpath
-Wl,/usr/local/BerkeleyDB.4.2/lib -Wl,-rpath -Wl,/usr/local/lib" CC=gcc
./configure

Everything compiles and links fine. When I execute "make test", slapd
doesn't start:

o2-489 [~/openldap-2.2.18]$ gmake test
cd tests; make test
make[1]: Entering directory `/usr/people/mark/openldap-2.2.18/tests'
make[2]: Entering directory `/usr/people/mark/openldap-2.2.18/tests'
Initiating LDAP tests for BDB...
Cleaning up test run directory leftover from previous run.
Running ./scripts/all...


Executing all LDAP tests for bdb
Starting test000-rootdse ...


running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve the root DSE...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
kill: 194918: no such process
ldap_bind: Can't contact LDAP server (-1)


Test failed
./scripts/test000-rootdse failed (exit 1)


make[2]: *** [bdb-yes] Error 1
make[2]: Leaving directory `/usr/people/mark/openldap-2.2.18/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/usr/people/mark/openldap-2.2.18/tests'
gmake: *** [test] Error 2

and the slapd log file in ~/openldap-2.2.18/tests/testrun ends with the
following:

slapd startup: initiated.
backend_startup: starting "o=OpenLDAP Project,l=Internet"
bdb_db_open: o=OpenLDAP Project,l=Internet
bdb_db_open: dbenv_open(./testrun/db.1.a)
bdb(o=OpenLDAP Project,l=Internet): write: 0x7fff0ab0, 8192: Invalid
argument
bdb_db_open: dbenv_open failed: Invalid argument (22)
backend_startup: bi_db_open failed! (22)
slapd shutdown: initiated
====> bdb_cache_release_all
bdb(o=OpenLDAP Project,l=Internet): DB_ENV->lock_id_free interface
requires an environment configured for the locking subsystem
slapd shutdown: freeing system resources.
bdb(o=OpenLDAP Project,l=Internet): txn_checkpoint interface requires an
environment configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
slapd stopped.
connections_destroy: nothing to destroy.

Has anyone seen something like this before? From my point of view, I've
performed all the
necessary steps, but it's consistently failing.

Thanks











--
 -- Howard Chu
 Chief Architect, Symas Corp.       Director, Highland Sun
 http://www.symas.com               http://highlandsun.com/hyc
 Symas: Premier OpenSource Development and Support