Frank Offermanns wrote:
Build fails for 32 bit msys/mingw (and config --prefix=/mingw --enable-accesslog --with-tls --enable-syncprov)
slapadd.o: In function `getrec0': C:/msys/1.0/openldap-2.4.41Git/servers/slapd/slapadd.c:116: undefined reference to `ftello' slapadd.o: In function `slapadd': C:/msys/1.0/openldap-2.4.41Git/servers/slapd/slapadd.c:486: undefined reference to `ftello' libbackends.a(mdbmdb.o): In function `mdb_cursor_push': C:/msys/1.0/openldap-2.4.41Git/servers/slapd/back-mdb/./../../../libraries/liblm
db/mdb.c:5001: undefined reference to `GetFileSizeEx' collect2: ld returned 1 exit status make[2]: *** [slapd.exp] Error 1 make[2]: Leaving directory `/openldap-2.4.41Git/servers/slapd' make[1]: *** [all-common] Error 1 make[1]: Leaving directory `/openldap-2.4.41Git/servers' make: *** [all-common] Error 1
You already encountered this a few months ago.
http://www.openldap.org/lists/openldap-technical/201501/msg00135.html
Submit an ITS if you want a fix committed, otherwise fix your build as was already suggested on the original email thread.