[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#8684) compiling 2.4.45 under AIX 7.1 fails



Full_Name: Huy Nguyen
Version: 2.4.45
OS: AIX 7.1
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (195.6.223.9)


After running configure and make depend, make fails with the following message
:
./../../../libraries/liblmdb/mdb.c:4853:53: error: 'PTHREAD_MUTEX_ROBUST'
undeclared (first use in this function)
   if (!rc) rc = pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST);
It appears AIX 7?1 doesn't have robust mutexes
(https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/com.ibm.aix.genprogc/interfaces.htm).
Disabling robust mutexes with CPPFLAGS="-DMDB_USE_ROBUST=0" works fine.