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: [email protected]
          Reporter: [email protected]
  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!

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to