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

Re: Tests-bdb succeed but ldbm fail ?



søn, 21.12.2003 kl. 17.52 skrev Ace Suares:

> ./configure --prefix=/usr/local/openldap-2.1.25 --enable-crypt 
> - --enable-wrappers
> 
> It couldn't find the BDB stuff, but after these commands:
> 
> ln -s /usr/local/BerkeleyDB.4.2/include/db.h /usr/include/db.h
> ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so /usr/lib/libdb-4.2.so
> 
> it worked fine. 

You say (later) that you use Debian. I use RedHat RHEL 3.

The symlinks you're making are unnecessary. By simply stating:

CPPFLAGS=" -I/usr/local/BerkeleyDB.4.2/include" \
LDFLAGS=" -L/usr/local/BerkeleyDB.4.2/lib" \
	./configure

you'd avoid the necessity for the symlinks. Especially the db.h symlink
could possibly make things difficult for you on non-compatible compiles
later, should you forget it. 

[...]

> But, when the last test completes, I got this:
> 
> >>>>> Test succeeded
> >>>>> ./scripts/test016-subref completed OK.
> >>>>> waiting 10 seconds for things to exit
> 
> ln: `./data': cannot overwrite directory
> make[1]: [test-ldbm] Error 1 (ignored)
> ln: `./schema': File exists
> make[1]: [test-ldbm] Error 1 (ignored)
> ln: `ucdata/liblunicode': File exists
> make[1]: [test-ldbm] Error 1 (ignored)
> run configure with --enable-ldbm
> make[1]: Leaving directory `/usr/src/openldap-2.1.25/tests'
> marge:/usr/src/openldap-2.1.25#
> 
> Now, I assume that everything is allright and that I don't have to configure 
> with --enable-ldbm.
> 
> Is that right !?

It won't stop things working in practice. For my own part, I prefer to
have all the tests complete satisfactorily, so I *do* configure 
with --enable-ldbm. No reason why you should, though.

--Tonni

-- 
mail: billy - at - billy.demon.nl
http://billy.demon.nl