(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Installation : (Category) Platform Hints : (Category) IBM AIX : (Answer) configure: error: pthread.h and pthread_create are not compatible
Threads don't work with AIX (tested with 4.1.5, 4.3.x and xlC compiler.

Build OpenLDAP 1.x with --without-threads

Developer's interested in working on AIX Thread support are encourged to contact project@OpenLDAP.org.
I have successfully built without this error on AIX 4.3.2 with ibmcxx 3.6.6 (ibmcxx.cmp 3.6.6.2).

Under AIX 4.1.5 and 4.2.1, you _must_ specify one of the _r compilers to get the correct configuration. Threads build fine with xlc_r (same 3.6.6 ibmcxx compilers).

This is not an issue with the libs, it is one of defines, etc. Simply configuring with:

CC=/usr/ibmcxx/bin/xlc_r ./configure ...
is all that is required.
[Append to This Answer]
Next: (Answer) Running "make depend" causes problems?
This document is: http://www.openldap.org/faq/index.cgi?file=128
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org