https://bugs.openldap.org/show_bug.cgi?id=9987
--- Comment #2 from Sam James sam@gentoo.org --- (In reply to Howard Chu from comment #1)
As your referenced link shows, you just need to define -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE when compiling. You can add this to CPPFLAGS manually when running configure. The INSTALL doc already tells you how to do this. No issue here, closing this ticket.
autoconf can do that for you if you set AC_SYS_LARGEFILE. Why not add that?