[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Errors building Current Git Version with windows

Frank Offermanns wrote:
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?

Ah, yes. I'm only building 64 bit binaries, using Mingw64.


Von: Howard Chu <hyc@symas.com>
An: Frank Offermanns <Frank.Offermanns@caseris.de>,
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':
 > db/mdb.c:4990: undefined reference to `GetFileSizeEx'

According to MSDN this function is available since WindowsXP

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/