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 |