[Date Prev][Date Next]
RE: Compile (libldap_r) fails for HPUX 10.20 (ITS#2820)
> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of
> Full_Name: Thomas J. Francis, Jr.
> Version: 2.1.23
> OS: HPUX 10.20
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (220.127.116.11)
> 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.
This was already fixed in HEAD, but the fix wasn't migrated to Release 2.1.
> 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
This is now fixed in HEAD.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
Symas: Premier OpenSource Development and Support