1 Berkeley DB version 2.x and OpenLDAP running threads
2 ====================================================
4 Special care has to be taken, if OpenLDAP is to be used with threads
5 activated, while at the same time using Berkeley DB, version 2.x, as
6 a slapd back-end. Both, OpenLDAP AND Berkeley DB have to be compiled
7 with thread support activated.
9 The configuration tool of Sleepycat's Berkeley DB will take provion
10 for that on IRIX, OSF/1, and SUN Solaris platforms (version 2.3.16),
11 as well as FreeBSD (version 2.6.4), but NOT e.g. on LINUX platforms.
13 On PC-LINUX (kernel version 2.0.35, linux kernel threads as imple-
14 mented by libpthreads.so.1.60.4) with gcc as the standard compiler
15 the environment variable CPPFLAGS must define -D_REENTRANT, while
16 building the Berkeley DB package.
17 DO NOT USE THE -ansi CFLAG, SINCE THEN THE DB PACKAGE'S CONFIGURE
18 CANNOT FIND THE X86/GCC SPINLOCKS, WHICH ARE NEEDED FOR THREAD-
19 SUPPORT WITH THE BERKELEY DB.
21 Please check carefully, if your platform is not mentioned above.
23 The OpenLDAP configure tool will most probably find the correct con-
24 figuration itself, so that no special action has to be taken, while
25 building the OpenLDAP package.
27 Jan, 9th, 1999, /KSp (ksp@openldap.org)