Issue 8554 - lmdb build failure on GNU/kFreeBSD
Summary: lmdb build failure on GNU/kFreeBSD
Status: VERIFIED FIXED
Alias: None
Product: LMDB
Classification: Unclassified
Component: liblmdb (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-28 18:22 UTC by Ryan Tandy
Modified: 2020-03-12 15:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ryan Tandy 2016-12-28 18:22:45 UTC
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
Comment 1 Quanah Gibson-Mount 2016-12-28 18:43:02 UTC
changed notes
changed state Open to Test
moved from Incoming to Build
Comment 2 OpenLDAP project 2018-02-09 18:53:04 UTC
Fixed in mdb.master/mdb RE0.9 - 0.9.19
Fixed in master
Fixed in RE25
Comment 3 Quanah Gibson-Mount 2018-02-09 18:53:04 UTC
changed notes
changed state Test to Closed