[Date Prev][Date Next]
Compile (libldap_r) fails for HPUX 10.20 (ITS#2820)
Full_Name: Thomas J. Francis, Jr.
OS: HPUX 10.20
Submission from: (NULL) (188.8.131.52)
There are two problems when compiling the client libraries on HPUX 10.20.
The first is in libraries/libldap_r/tpool.c. Thread ids are being compared with
== and != in ldap_pvt_thread_pool_context(). On HPUX 10.20, thread ids are
structures, and need to be compared using pthread_equal(). For reference,
pthread_equal() returns 1 if the thread ids are equal, and 0 if they are not.
The second problem is in libraries/libldap_r/thr_posix.c,
pthread_create() expects a pthread_attr_t for the second parameter, not a
pointer to a pthread_attr_t. This might be true for all Draft 4
Please note I only compiled the client libraries.