(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) Trash : (Answer) OpenLDAP on AIX V4.2.1
I notice that people have been having trouble getting Openldap compiled on AIX. So did I. Eventually I got it to run the test suite by:
   a.  Using V2.7 of Berkeley DB compiled with cc_r
   b.  Compiling Openldap with cc_r, telling it to use ldbm_api=db2
   c.  Recoding the thread create routine in libraries/liblthread/thr_posix.c
       to explicitly set the UNDETACHED attribute (AIX 4.2 defaults to
       detached, 4.3 to undetached).
If you use gcc you cannot use pthreads on AIX, you must use the IBM C compiler in its thread safe form, cc_r.
The Berkeley DB routines would not work reliably until they were compiled in thread safe form (even though this is not supposed to be necessary).
For anyone interested I have placed my modified thr_posix.c file and the compiled programs and libraries on ftp.viacognis.com/pub/ldap.
jstanton@viacognis.com
[Append to This Answer]
Previous: (Answer) slapd segfaults on startup on SuSe SLES 8
Next: (Answer) LDAPzone
This document is: http://www.openldap.org/faq/index.cgi?file=441
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
© Copyright 2004, OpenLDAP Foundation, info@OpenLDAP.org