Le 11/11/2015 01:09, Howard Chu a écrit :
Aaron Richton wrote:
On Tue, 10 Nov 2015, Cl?ment OUDOT wrote:
Could it be a problem on my build machine?
Not directly IMO. Some (older?) pthreads implementations are PTHREAD_MUTEX_ROBUST_NP, etc.
one thing to try would be:
#ifdef PTHREAD_MUTEX_ROBUST_NP #define PTHREAD_MUTEX_ROBUST PTHREAD_MUTEX_ROBUST_NP #define pthread_mutexattr_setrobust pthread_mutexattr_setrobust_np #define pthread_mutex_consistent pthread_mutex_consistent_np #endif
Unfortunately, PTHREAD_MUTEX_ROBUST_NP is an enum, not a macro, so #ifdef won't work to detect it.
The attached patch should work. Please report back; I won't merge it unless we know it actually helps.
Hello Howard,
I confirm the patch works for CentOS5/RHEL5 32 bits and 64 bits.
I can build without the patch on CentOS 6.
I can now take my plane for LDAPCon ;) See you soon.