Helpful Information
 
 
Category: LDAP Programming
problem configuring ldap-2.1.22

Freebsd-5.1-stable
bd4.1-25 compilled and installed in /usr/local
trying to configure ldap-2.1.22, however it gives me a hard time with:
checking for Berkeley DB link (default)... yes
checking for Berkeley DB thread support... no
checking Berkeley DB version for BDB backend... no
configure: error: BDB: BerkeleyDB version incompatible

I have checked the db.h for existence od VERSION_MAJOR/MINOR = 4/1. It is there.

env CPPFLAGS=-I/usr/local/include
env LDFLAGS=-L/usr/local/include

was there too. What now? Is there a bug?
configuring with:
./configure --prefix=/usr/local/openldap --with-cyrus-sasl --with-threads --with-tls --enable-crypt --enable-spasswd --enable-slp --enable-perl --enable-slurpd

http://forums.devshed.com/t63488/s.html

Check the last post, maybe try installing the patch or it could be that it thinks it's intalled but it's not.

It moved on. I use a script that had these:
env CPPFLAGS=-I/usr/local/include
env LDFLAGS=-L/usr/local/include
misstyped.
Despite this success I still have trubles compiling Cyrus-SASL.
And that doesn't look like a missing component. :)
More info I'll drop tomorrow from work.
Thank you

By the way, is there something like FreeBSD devel packages as in Linux?

there is ports for freebsd

I usualy use ftp. Where can I find it? I can locate Cyrus-SASL package, but the ldap configure script is complaining about missing include files of Cyrus-SASL (I suppose the header files).

http://www.freebsd.org/ports/

I have aproblem making test that kick me off with:
database differ.

I need slurpd and it requires thread supporting ldap.
The default is --with-thread [auto], but if I axplicitly opt --with-thread it still fails to make test till the successful end.

I also found:
include/ldap_int_thread.h:177:#define NO_THREADS 1

1. Why is that? It disables threads, but why when slurping may be defaultly needed?

I'll test it and may find a solution before a reply. Thanky anyways for a note.

I had this problem to. It appeared to me that my OS (FreeBSD) had a version installed already. To get arround this I downloaded the latest version of sleepycat (The DB) and installed it in it's own directory. Next I added the "-I/usr/local/<db directory>/include" to the make command. This fixed the problem...


Michael










privacy (GDPR)