Hello Howard,
thank you for your reply.
I use mingw32 and produce 32 bit binaries.
Is it possible that you build/test 64
bit binaries, and that maybe a preprocessor definition for 32 bit is different
from 64 bit?
Regards,
Frank
Von:
Howard Chu <hyc@symas.com>
An:
Frank Offermanns <Frank.Offermanns@caseris.de>,
openldap-technical@openldap.org,
Datum:
30.01.2015 15:00
Betreff:
Re: Errors building
Current Git Version with windows
Frank Offermanns wrote:
> Hello,
>
> when building the current GIT Version 2.4.40 with Windows and MinGW/MSYS
> I get 3 errors:
> C:/msys/1.0/openldap-2.4.40git/servers/slapd/slapadd.c:116: undefined
> reference
> to `ftello'
> slapadd.o: In function `slapadd':
> C:/msys/1.0/openldap-2.4.40git/servers/slapd/slapadd.c:486: undefined
> reference
> to `ftello'
Probably you should compile with -Dftello=__ftelli64
I'm a bit surprised, since my MSYS install already does this.
> libbackends.a(mdbmdb.o): In function `mdb_cursor_push':
> C:/msys/1.0/openldap-2.4.40git/servers/slapd/back-mdb/./../../../libraries/liblm
>
> db/mdb.c:4990: undefined reference to `GetFileSizeEx'
According to MSDN this function is available since WindowsXP
https://msdn.microsoft.com/en-us/library/windows/desktop/aa364957%28v=vs.85%29.aspx
again, builds perfectly fine for me.
> collect2: ld returned 1 exit status
> make[2]: *** [slapd.exp] Error 1
>
> Configure was:
> configure --prefix=/mingw --enable-accesslog --with-tls --enable-syncprov
>
> Regards,
> Frank
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/