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

Re: Make test "dbenv_open failed"



* computerd rd <bespartan@yahoo.com> [21-04-03 22:53]:
 
> make test fails on RedHat 8.0 I went through archive
> messages but couldn't fix it.
> 
> Installed BerkeleyDB.4.2.1 using ../distribute
> --disable-largefile ; make ; make install
> 
> Before running ./configure env vars are set as
> export CPPFLAGS=I/usr/local/BerkeleyDB.4.1.2/include
> export LDFLAGS=L/usr/local/BerkeleyDB.4.1.2/lib
> export LD_LIBRARY_PATH =
> /usr/local/BerkeleyDB.4.1.2/lib
> 
> configure, make depend and make run without errors.
> But make test fails. 
> ..............
> 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..
> ............
> 
> Here is the relevant portion of master.log file
> bdb_db_open: o=OpenLDAP Project,l=Internet
> bdb_db_open: dbenv_open(./test-db)
> bdb(o=OpenLDAP Project,l=Internet): write: 0xbfffd090,
> 8192: Invalid argument
> bdb_db_open: dbenv_open failed: Invalid argument (22)
> backend_startup: bi_db_open(0) failed! (22)
> slapd shutdown: initiated
> ====> bdb_cache_release_all
> slapd shutdown: freeing system resources.
> 
> rwx permissions are set for all files and subfolders
> in "tests" folder, for everyone!!
> 
> Any help is greatly appreciated. Thanks

 I bet your slapd doesn't find the BDB-4.1 libs and picks 4.0 libs, I had
this error a couple of times. Look into the log, make test writes a log
file somewhere in the test/ directory, you'll find there the reason for
slapd not starting.

mitu