(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) Trash : (Answer) configure fails to recognize Pthreads on some Linux systems, what do I do?
LinuxThreads are preemptive and hence are not safe to use with OpenLDAP 1.x.

See also:

 (Xref) Is OpenLDAP thread safe?
 (Xref) Are third party thread packages supported?

The <pthread.h> on some Linux systems (such as Caldera OpenLinux) uses a preprocessor macro definition to select the type of threads to use. The default is not compatible with libraries selected by OpenLDAP. Use:
make veryclean
CPPFLAGS="-D_MIT_POSIX_THREADS"; export CPPFLAGS
./configure
to select a compatible POSIX thread implementation.
Environmental variable details are provided in the release INSTALL document
[Append to This Answer]
Previous: (Answer) pthread_create fails around connection 312-340
Next: (Answer) Are LinuxThreads compatible with OpenLDAP?
This document is: http://www.openldap.org/faq/index.cgi?file=19
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
© Copyright 2004, OpenLDAP Foundation, info@OpenLDAP.org