https://bugs.openldap.org/show_bug.cgi?id=9916
--- Comment #2 from Howard Chu hyc@openldap.org ---
Adding __attribute__((packed)) to the MDB_page struct creates some memory alignment warnings, but it will make the test cases succeed:
Interesting, since the fields of the MDB_page struct are already naturally aligned. LMDB was tested thoroughly on Sparc64 / Solaris and no such compiler attributes were needed so this requirement appears to be a compiler bug.
I've submitted a request for an account on the compile farm since we long ago decommissioned our Sparc servers (and they were only running Solaris anyway, not Linux).