Dies ist eine mehrteilige Nachricht im MIME-Format. --=_alternative 00233070C1257E3D_= Content-Type: text/plain; charset="US-ASCII"
Hi, thanks for your patch. But since I am compilling 32 Bit, it doesn't work. I modified your patch to #define ftello ftell Then it works. But I still have the GetFileSizeEx problem. I use MinGW-5.1.6 and here is my installed.ini: [settings] mirror= installtype=current [components] runtime=mingwrt-3.17-mingw32-dev.tar.gz w32api=w32api-3.14-mingw32-dev.tar.gz binutils=binutils-2.20-1-mingw32-bin.tar.gz core=gcc-core-3.4.5-20060117-3.tar.gz gpp=gcc-g++-3.4.5-20060117-3.tar.gz g77= ada= java= objc=gcc-objc-3.4.5-20060117-3.tar.gz make=make-3.81-20090914-mingw32-bin.tar.gz runtimeDLL=mingwrt-3.17-mingw32-dll.tar.gz Regards, Frank Von: [email protected] An: [email protected] Datum: 05.05.2015 20:40 Betreff: Re: (ITS#8127) 32 bit windows build fails with mingw Gesendet von: "openldap-bugs" <[email protected]> This is a multi-part message in MIME format. --Multipart=_Tue__5_May_2015_11_37_19_-0700_mOvLt1ph20aiKu+q Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hello, Give this a try; it's a patch vs RE24 but should be broadly applicable. Still investigating your trouble with GetFileSizeEx from mdb.c. Which MinGW distribution are you using, exactly? -- Emily Backes Symas Corporation [email protected] --Multipart=_Tue__5_May_2015_11_37_19_-0700_mOvLt1ph20aiKu+q Content-Type: text/x-diff; name="0001-ftello-compat-for-windows-slapadd-meter.patch" Content-Disposition: attachment; filename="0001-ftello-compat-for-windows-slapadd-meter.patch" Content-Transfer-Encoding: 7bit >From 330ee6483c404d7e993df41f55a490c7b34ea2bf Mon Sep 17 00:00:00 2001 From: Emily Backes <[email protected]> Date: Thu, 5 Feb 2015 18:56:51 -0800 Subject: [PATCH] ftello compat for windows slapadd meter --- servers/slapd/slapadd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/slapadd.c b/servers/slapd/slapadd.c index 8cfdebd..29a3ff4 100644 --- a/servers/slapd/slapadd.c +++ b/servers/slapd/slapadd.c @@ -44,6 +44,10 @@ extern int slap_DN_strict; /* dn.c */ static char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ]; +#ifdef _WIN32 +#define ftello _ftelli64 +#endif + typedef struct Erec { Entry *e; unsigned long lineno; -- Emily Backes Symas Corporation [email protected] --Multipart=_Tue__5_May_2015_11_37_19_-0700_mOvLt1ph20aiKu+q-- --=_alternative 00233070C1257E3D_= Content-Type: text/html; charset="US-ASCII" <font size=2 face="sans-serif">Hi,</font> <br> <br><font size=2 face="sans-serif">thanks for your patch. But since I am compilling 32 Bit, it doesn't work. </font> <br><font size=2 face="sans-serif">I modified your patch to </font> <br><font size=2 face="sans-serif">#define ftello ftell</font> <br><font size=2 face="sans-serif">Then it works. </font> <br> <br><font size=2 face="sans-serif">But I still have the GetFileSizeEx problem. </font> <br><font size=2 face="sans-serif">I use MinGW-5.1.6 and here is my installed.ini:</font> <br><font size=2 face="sans-serif">[settings]</font> <br><font size=2 face="sans-serif">mirror=</font> <br><font size=2 face="sans-serif">installtype=current</font> <br> <br><font size=2 face="sans-serif">[components]</font> <br><font size=2 face="sans-serif">runtime=mingwrt-3.17-mingw32-dev.tar.gz</font> <br><font size=2 face="sans-serif">w32api=w32api-3.14-mingw32-dev.tar.gz</font> <br><font size=2 face="sans-serif">binutils=binutils-2.20-1-mingw32-bin.tar.gz</font> <br><font size=2 face="sans-serif">core=gcc-core-3.4.5-20060117-3.tar.gz</font> <br><font size=2 face="sans-serif">gpp=gcc-g++-3.4.5-20060117-3.tar.gz</font> <br><font size=2 face="sans-serif">g77=</font> <br><font size=2 face="sans-serif">ada=</font> <br><font size=2 face="sans-serif">java=</font> <br><font size=2 face="sans-serif">objc=gcc-objc-3.4.5-20060117-3.tar.gz</font> <br><font size=2 face="sans-serif">make=make-3.81-20090914-mingw32-bin.tar.gz</font> <br><font size=2 face="sans-serif">runtimeDLL=mingwrt-3.17-mingw32-dll.tar.gz</font> <br> <br><font size=2 face="sans-serif">Regards,</font> <br><font size=2 face="sans-serif">Frank</font> <br> <br> <br> <br> <br><font size=1 color=#5f5f5f face="sans-serif">Von: </font><font size=1 face="sans-serif">[email protected]</font> <br><font size=1 color=#5f5f5f face="sans-serif">An: </font><font size=1 face="sans-serif">[email protected]</font> <br><font size=1 color=#5f5f5f face="sans-serif">Datum: </font><font size=1 face="sans-serif">05.05.2015 20:40</font> <br><font size=1 color=#5f5f5f face="sans-serif">Betreff: </font><font size=1 face="sans-serif">Re: (ITS#8127) 32 bit windows build fails with mingw</font> <br><font size=1 color=#5f5f5f face="sans-serif">Gesendet von: </font><font size=1 face="sans-serif">"openldap-bugs" <[email protected]></font> <br> <hr noshade> <br> <br> <br><tt><font size=2>This is a multi-part message in MIME format.<br> <br> --Multipart=_Tue__5_May_2015_11_37_19_-0700_mOvLt1ph20aiKu+q<br> Content-Type: text/plain; charset=US-ASCII<br> Content-Transfer-Encoding: 7bit<br> <br> Hello,<br> <br> Give this a try; it's a patch vs RE24 but should be broadly<br> applicable. Still investigating your trouble with GetFileSizeEx from<br> mdb.c.<br> <br> Which MinGW distribution are you using, exactly?<br> <br> -- <br> Emily Backes<br> Symas Corporation<br> [email protected]<br> <br> --Multipart=_Tue__5_May_2015_11_37_19_-0700_mOvLt1ph20aiKu+q<br> Content-Type: text/x-diff;<br> name="0001-ftello-compat-for-windows-slapadd-meter.patch"<br> Content-Disposition: attachment;<br> filename="0001-ftello-compat-for-windows-slapadd-meter.patch"<br> Content-Transfer-Encoding: 7bit<br> <br> >From 330ee6483c404d7e993df41f55a490c7b34ea2bf Mon Sep 17 00:00:00 2001<br> From: Emily Backes <[email protected]><br> Date: Thu, 5 Feb 2015 18:56:51 -0800<br> Subject: [PATCH] ftello compat for windows slapadd meter<br> <br> ---<br> servers/slapd/slapadd.c | 4 ++++<br> 1 file changed, 4 insertions(+)<br> <br> diff --git a/servers/slapd/slapadd.c b/servers/slapd/slapadd.c<br> index 8cfdebd..29a3ff4 100644<br> --- a/servers/slapd/slapadd.c<br> +++ b/servers/slapd/slapadd.c<br> @@ -44,6 +44,10 @@ extern int slap_DN_strict; /* dn.c */<br> <br> static char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ];<br> <br> +#ifdef _WIN32<br> +#define ftello _ftelli64<br> +#endif <br> +<br> typedef struct Erec {<br> Entry *e;<br> unsigned long lineno;<br> -- <br> Emily Backes<br> Symas Corporation<br> [email protected]<br> <br> <br> --Multipart=_Tue__5_May_2015_11_37_19_-0700_mOvLt1ph20aiKu+q--<br> <br> <br> <br> </font></tt> <br> <br> --=_alternative 00233070C1257E3D_=--
