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

(ITS#8554) lmdb build failure on GNU/kFreeBSD



Full_Name: Ryan Tandy
Version: 2.4.44
OS: Debian GNU/kFreeBSD
URL: 
Submission from: (NULL) (24.68.41.160)


Forwarded from https://bugs.debian.org/845394:

lmdb fails to build on Debian GNU/kFreeBSD.

https://buildd.debian.org/status/fetch.php?pkg=openldap&arch=kfreebsd-amd64&ver=2.4.44%2Bdfsg-1&stamp=1479854521

mdb.c: In function ?mdb_env_setup_locks?:
mdb.c:4625:13: warning: implicit declaration of function
?pthread_mutexattr_setrobust? [-Wimplicit-function-declaration]
    || (rc = pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST))
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
mdb:4A4625:49: error: ?PTHREAD_MUTEX_ROBUST? undeclared (first use in this
function)
    || (rc = pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST))
                                                 ^~~~~~~~~~~~~~~~~~~~
mdb.c:4625:%3: note: each undeclared identifier is reported only once for each
function it appears in
mdb.c: In function ?mdb_mutex_failed?:
mdb.c:351:37: warning: implicit declaration of function
?pthread_mutex_consistent? [-Wimplicit-function-declaration]
 #define mdb_mutex_consistent(mutex) pthread_mutex_consistent(mutex)
                                     ^
mdb.c:10002:10: note: in expansion of macro ?mdb_mutex_consistent?
    rc2 = mdb_mutex_consistent(mutex);
          ^~~~~~~~~~~~~~~~~~~~

The patch applied by Ondřej Surý to the Debian lmdb package fixes this,
please consider applying it.

http://sources.debian.net/data/main/l/lmdb/0.9.18-5/debian/patches/0003-Use-MDB_USE_POSIX_SEM-on-kFreeBSD.patch