https://bugs.openldap.org/show_bug.cgi?id=10434
Issue ID: 10434 Summary: mdb.c error: use of undeclared identifier 'fd' in 0.9.34? Product: LMDB Version: unspecified Hardware: aarch64 OS: Mac OS Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: artkiver@gmail.com Target Milestone: ---
Hi!
I may be jumping the gun a bit, but noticed via repology.org that some distros had updated to LMDB 0.9.34 though I acknowledge the tagged commit reads:
" 03d56d53 · Prep for release (0.9.34) · 2 days ago "
From: https://gitlab.com/openldap/openldap/-/tags/LMDB_0.9.34
Regardless, I thought I would download the tarball and give it a whirl?
For reference I am using macOS, more specifically:
macOS 26.2 25C56 arm64 Command Line Tools 26.2.0.0.1.1764812424
Alas, I encountered the following errors when I attempted to build it:
% make gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized -c mdb.c mdb.c:2589:33: error: use of undeclared identifier 'fd' 2589 | else if (flags == MS_SYNC && MDB_FDATASYNC(env->me_fd)) | ^ mdb.c:132:32: note: expanded from macro 'MDB_FDATASYNC' 132 | # define MDB_FDATASYNC fcntl(fd, F_FULLFSYNC) | ^ mdb.c:2599:8: error: use of undeclared identifier 'fd' 2599 | if (MDB_FDATASYNC(env->me_fd)) | ^ mdb.c:132:32: note: expanded from macro 'MDB_FDATASYNC' 132 | # define MDB_FDATASYNC fcntl(fd, F_FULLFSYNC) | ^ 2 errors generated. make: *** [mdb.o] Error 1
A little bit more longwinded version (of basically the same error, though using MacPorts as it is my intention to update the Portfile for that project once it's functioning correctly) I've documented within MacPorts here, mentioning it more for reference: https://trac.macports.org/ticket/73204#comment:3
My apologies in advance if I am being too eager and 0.9.34 isn't officially released yet! Perhaps this is already known and planned to be fixed. I hope I'm not wasting anyone's time or attention erroneously.
Thanks!
https://bugs.openldap.org/show_bug.cgi?id=10434
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |IN_PROGRESS Keywords|needs_review |
--- Comment #1 from Howard Chu hyc@openldap.org --- Not sure how that snuck in there, since it's correct in mdb.master. Fixed now in mdb.RE/0.9.
https://bugs.openldap.org/show_bug.cgi?id=10434
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |TEST Status|IN_PROGRESS |RESOLVED Target Milestone|--- |0.9.35
https://bugs.openldap.org/show_bug.cgi?id=10434
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|TEST |FIXED Status|RESOLVED |VERIFIED
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- • 33ca271e by Howard Chu at 2026-01-29T13:17:46+00:00 ITS#10434 lmdb: fix typo on MacOSX
https://bugs.openldap.org/show_bug.cgi?id=10434
--- Comment #3 from グレェ「grey」 artkiver@gmail.com --- Awesome! Thank you for the quick fix!