(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) Trash : (Answer) Running under FreeBSD port of LinuxThreads
LinuxThreads are preemptive and hence are not safe to use with OpenLDAP 1.x. See also: (Xref) Is OpenLDAP thread safe?
After installing the LinuxThreads port for FreeBSD (available at <http://lt.tar.com>), OpenLDAP can be configured to use LinuxThreads as follows:
VersionCommands
1.2env ol_cv_linux_threads=yes CPPFLAGS=-DLINUXTHREADS ./configure --with-threads=posix
-develenv CPPFLAGS=-DLINUXTHREADS ./configure --with-threads=posix

OpenLDAP can still be configured to use FreeBSD "user threads" as follows:
VersionCommands
1.2env ol_cv_kthread_flag=no ./configure --with-threads=posix
-develenv ol_cv_pthread_kthread=no ./configure --with-threads=posix

You must ensure that all libraries linked OpenLDAP threaded applications are compiled appropriately to support LinuxThreads. Libraries compiled with "user threads" are unusable.
[Append to This Answer]
This document is: http://www.openldap.org/faq/index.cgi?file=94
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org