Re: [Mingw-w64-public] [patch/cygwin]: Add crt/intrin.h to the list of installed w32api headers

2013-04-04 Thread Corinna Vinschen
On Apr  4 17:45, Corinna Vinschen wrote:
> Hi,
> 
> now that Cygwin also provides the intrinsics, it also needs the intrin.h
> header to build crt without parallel header files.  The intrin.h header
> just needs a minor tweak to exclude setjmp definitions.  The below patch
> implements that.
> 
> Ok to apply?

No, it's not.  There's more stuff necessary to make it work in a Cygwin
environment.  The problem is the usage of long in the declarations and
definitions of the intrinsic functions.  To make this work on 64 bit
Cygwin, the long's have to be convert to __LONG32, similar to the
changes for 64 bit Cygwin last year.  I'm going to work on that.


Corinna

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] _(w|f)?stat*: sanitize msvcr* exports

2013-04-04 Thread Rafaël Carré
Only msvcrt.dll exports the i64 suffix
Make _(w|f)?stat* alias _(w|f)?stat* _(w|f)?stat*32 on 32bits
Make _(w|f)?stat* alias _(w|f)?stat* _(w|f)?stat*64i32 on 64bits
Do not use local definition (w|f)hen 64i32 version is already exported
---
This version adds _*stati64 alias and fix a bug in lib64/msvcr100.def

 mingw-w64-crt/Makefile.am|2 +-
 mingw-w64-crt/lib32/msvcr100.def |   12 +++---
 mingw-w64-crt/lib32/msvcr110.def |6 +
 mingw-w64-crt/lib32/msvcr80.def  |   24 +++-
 mingw-w64-crt/lib32/msvcr90.def  |   12 +++---
 mingw-w64-crt/lib32/msvcr90d.def |6 +
 mingw-w64-crt/lib32/msvcrt.def   |   11 ++
 mingw-w64-crt/lib64/msvcr100.def |   12 +++---
 mingw-w64-crt/lib64/msvcr110.def |6 +
 mingw-w64-crt/lib64/msvcr80.def  |   18 ---
 mingw-w64-crt/lib64/msvcr90.def  |   12 +++---
 mingw-w64-crt/lib64/msvcr90d.def |6 +
 mingw-w64-crt/lib64/msvcrt.def   |9 +---
 mingw-w64-crt/stdio/_fstati64.c  |   45 --
 mingw-w64-crt/stdio/_stati64.c   |   45 --
 mingw-w64-crt/stdio/_wstati64.c  |   45 --
 16 files changed, 107 insertions(+), 164 deletions(-)
 delete mode 100755 mingw-w64-crt/stdio/_fstati64.c
 delete mode 100755 mingw-w64-crt/stdio/_stati64.c
 delete mode 100755 mingw-w64-crt/stdio/_wstati64.c

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index efbe3ea..cbaf238 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -200,7 +200,7 @@ src_libmingwex=\
   stdio/vfscanf2.S stdio/vfwscanf2.S stdio/vscanf2.S  
stdio/vsscanf2.S  stdio/vswscanf2.S \
   stdio/vwscanf2.S \
   stdio/_Exit.cstdio/_findfirst64i32.c   stdio/_findnext64i32.c   
stdio/_fstat.c \
-  stdio/_fstat64i32.c stdio/_fstati64.c stdio/_stati64.c stdio/_wstati64.c \
+  stdio/_fstat64i32.c  \
   stdio/_ftime.cstdio/_getc_nolock.c stdio/_getwc_nolock.c 
stdio/_putc_nolock.c\
   stdio/_putwc_nolock.cstdio/_stat.c stdio/_stat64i32.c   
stdio/_wfindfirst64i32.c  stdio/_wfindnext64i32.c \
   stdio/_wstat.c   stdio/_wstat64i32.c   stdio/asprintf.c 
stdio/atoll.c stdio/fgetpos64.c   \
diff --git a/mingw-w64-crt/lib32/msvcr100.def b/mingw-w64-crt/lib32/msvcr100.def
index 4cae46a..f877e33 100644
--- a/mingw-w64-crt/lib32/msvcr100.def
+++ b/mingw-w64-crt/lib32/msvcr100.def
@@ -882,9 +882,11 @@ _fseeki64 DATA
 _fseeki64_nolock
 _fsopen
 _fstat32
+_fstat == _fstat32
+_fstati64 == _fstat32i64
 _fstat32i64
 _fstat64
-_fstat64i32 DATA
+_fstat64i32
 _ftell_nolock
 _ftelli64 DATA
 _ftelli64_nolock
@@ -1358,9 +1360,11 @@ _sprintf_s_l
 _sscanf_l
 _sscanf_s_l
 _stat32
+_stat == _stat32
+_stati64 == _stat32i64
 _stat32i64
 _stat64
-_stat64i32 DATA
+_stat64i32
 _statusfp
 _statusfp2
 _strcoll_l
@@ -1633,9 +1637,11 @@ _wspawnvpe
 _wsplitpath
 _wsplitpath_s
 _wstat32
+_wstat == _wstat32
+_wstati64 == _wstat32i64
 _wstat32i64
 _wstat64
-_wstat64i32 DATA
+_wstat64i32
 _wstrdate
 _wstrdate_s
 _wstrtime
diff --git a/mingw-w64-crt/lib32/msvcr110.def b/mingw-w64-crt/lib32/msvcr110.def
index a3f1952..c3413f5 100644
--- a/mingw-w64-crt/lib32/msvcr110.def
+++ b/mingw-w64-crt/lib32/msvcr110.def
@@ -1008,6 +1008,8 @@ _fstat32
 _fstat32i64
 _fstat64
 _fstat64i32
+_fstat == _fstat32
+_fstati64 == _fstat32i64
 _ftell_nolock
 _ftelli64
 _ftelli64_nolock
@@ -1494,6 +1496,8 @@ _stat32
 _stat32i64
 _stat64
 _stat64i32
+_stat == _stat32
+_stati64 == _stat32i64
 _statusfp
 _statusfp2
 _strcoll_l
@@ -1769,6 +1773,8 @@ _wstat32
 _wstat32i64
 _wstat64
 _wstat64i32
+_wstat == _wstat32
+_wstati64 == _wstat32i64
 _wstrdate
 _wstrdate_s
 _wstrtime
diff --git a/mingw-w64-crt/lib32/msvcr80.def b/mingw-w64-crt/lib32/msvcr80.def
index c09a404..9c28d30 100644
--- a/mingw-w64-crt/lib32/msvcr80.def
+++ b/mingw-w64-crt/lib32/msvcr80.def
@@ -188,7 +188,12 @@ _fpreset DATA
 _fputchar
 _fputwchar
 _fsopen
-_fstat
+_fstat32
+_fstat == _fstat32
+_fstati64 == _fstat32i64
+_fstat32i64
+_fstat64
+_fstat64i32
 _ftime
 _ftol
 _fullpath
@@ -393,7 +398,12 @@ _spawnve
 _spawnvp
 _spawnvpe
 _splitpath
-_stat
+_stat32
+_stat == _stat32
+_stati64 == _stat32i64
+_stat32i64
+_stat64
+_stat64i32
 _statusfp
 _strcmpi
 _strdate
@@ -505,7 +515,12 @@ _wspawnve
 _wspawnvp
 _wspawnvpe
 _wsplitpath
-_wstat
+_wstat32
+_wstat == _wstat32
+_wstati64 == _wstat32i64
+_wstat32i64
+_wstat64
+_wstat64i32
 _wstrdate
 _wstrtime
 _wsystem
@@ -728,7 +743,6 @@ _chkesp
 _ctime64
 _findfirst64
 _findnext64
-_fstat64
 _ftime64
 _futime64
 _gmtime64
@@ -736,13 +750,11 @@ _localtime64
 _mbcasemap
 _mktime64
 _osplatformDATA
-_stat64
 _time64
 _utime64
 _wctime64
 _wfindfirst64
 _wfindnext64
-_wstat64
 _wutime64
 ; msvcr70.dll amd later
 __buffer_overrun
diff --git a/mingw-w64-crt/lib32/msvcr90.def b/mingw-w64-crt/lib32/ms

[Mingw-w64-public] [patch/cygwin]: Add crt/intrin.h to the list of installed w32api headers

2013-04-04 Thread Corinna Vinschen
Hi,

now that Cygwin also provides the intrinsics, it also needs the intrin.h
header to build crt without parallel header files.  The intrin.h header
just needs a minor tweak to exclude setjmp definitions.  The below patch
implements that.

Ok to apply?


Thanks,
Corinna


* crt/intrin.h: Exclude setjmp stuff when bulding under Cygwin.
* configure.ac (BASEHEAD_LIST): Add crt/intrin.h.
* configure: Regenerate.


Index: crt/intrin.h
===
--- crt/intrin.h(revision 5723)
+++ crt/intrin.h(working copy)
@@ -8,7 +8,11 @@
 #ifndef RC_INVOKED
 
 #include 
+#ifdef __CYGWIN__
+#define USE_NO_MINGW_SETJMP_TWO_ARGS
+#else
 #include 
+#endif
 #include 
 
 #if defined(__GNUC__) && \
@@ -341,7 +345,9 @@
 __MACHINEIA64(void __lfetchfault_excl(int,void const *))
 __MACHINEIA64(__MINGW_EXTENSION __int64 __load128(void *,__int64 *))
 __MACHINEIA64(__MINGW_EXTENSION __int64 __load128_acq(void *,__int64 *))
+#ifndef __CYGWIN__
 __MACHINEZ(void __cdecl longjmp(jmp_buf,int))
+#endif
 
 #pragma push_macro ("_lrotl")
 #undef _lrotl
Index: configure.ac
===
--- configure.ac(revision 5723)
+++ configure.ac(working copy)
@@ -39,7 +39,7 @@
 
 # Checks for header files.
 
-BASEHEAD_LIST="crt/_bsd_types.h crt/_cygwin.h crt/_mingw.h crt/_mingw_mac.h 
crt/_mingw_print_push.h crt/_mingw_print_pop.h crt/_mingw_secapi.h 
crt/_mingw_unicode.h crt/_timeval.h crt/crtdefs.h crt/excpt.h crt/vadefs.h 
"$srcdir/include/*.h
+BASEHEAD_LIST="crt/_bsd_types.h crt/_cygwin.h crt/_mingw.h crt/_mingw_mac.h 
crt/_mingw_print_push.h crt/_mingw_print_pop.h crt/_mingw_secapi.h 
crt/_mingw_unicode.h crt/_timeval.h crt/crtdefs.h crt/excpt.h crt/intrin.h 
crt/vadefs.h "$srcdir/include/*.h
 SECHEAD_LIST="$srcdir/crt/sec_api/stralign_s.h"
 for i in dlg h16 hxx rh ver; do
   BASEHEAD_LIST="$BASEHEAD_LIST "$srcdir/include/*.$i

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] _(w|f)?stat*: sanitize msvcr* exports

2013-04-04 Thread Rafaël Carré
Only msvcrt.dll exports the i64 suffix
Make _(w|f)?stat* alias _(w|f)?stat* _(w|f)?stat*32 on 32bits
Make _(w|f)?stat* alias _(w|f)?stat* _(w|f)?stat*64i32 on 64bits
Do not use local definition (w|f)hen 64i32 version is already exported
---
 mingw-w64-crt/Makefile.am|2 +-
 mingw-w64-crt/lib32/msvcr100.def |9 +---
 mingw-w64-crt/lib32/msvcr110.def |3 +++
 mingw-w64-crt/lib32/msvcr80.def  |   21 +-
 mingw-w64-crt/lib32/msvcr90.def  |9 +---
 mingw-w64-crt/lib32/msvcr90d.def |3 +++
 mingw-w64-crt/lib32/msvcrt.def   |   11 ++
 mingw-w64-crt/lib64/msvcr100.def |9 +---
 mingw-w64-crt/lib64/msvcr110.def |3 +++
 mingw-w64-crt/lib64/msvcr80.def  |   15 ++---
 mingw-w64-crt/lib64/msvcr90.def  |9 +---
 mingw-w64-crt/lib64/msvcr90d.def |3 +++
 mingw-w64-crt/lib64/msvcrt.def   |9 +---
 mingw-w64-crt/stdio/_fstati64.c  |   45 --
 mingw-w64-crt/stdio/_stati64.c   |   45 --
 mingw-w64-crt/stdio/_wstati64.c  |   45 --
 16 files changed, 77 insertions(+), 164 deletions(-)
 delete mode 100755 mingw-w64-crt/stdio/_fstati64.c
 delete mode 100755 mingw-w64-crt/stdio/_stati64.c
 delete mode 100755 mingw-w64-crt/stdio/_wstati64.c

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index efbe3ea..cbaf238 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -200,7 +200,7 @@ src_libmingwex=\
   stdio/vfscanf2.S stdio/vfwscanf2.S stdio/vscanf2.S  
stdio/vsscanf2.S  stdio/vswscanf2.S \
   stdio/vwscanf2.S \
   stdio/_Exit.cstdio/_findfirst64i32.c   stdio/_findnext64i32.c   
stdio/_fstat.c \
-  stdio/_fstat64i32.c stdio/_fstati64.c stdio/_stati64.c stdio/_wstati64.c \
+  stdio/_fstat64i32.c  \
   stdio/_ftime.cstdio/_getc_nolock.c stdio/_getwc_nolock.c 
stdio/_putc_nolock.c\
   stdio/_putwc_nolock.cstdio/_stat.c stdio/_stat64i32.c   
stdio/_wfindfirst64i32.c  stdio/_wfindnext64i32.c \
   stdio/_wstat.c   stdio/_wstat64i32.c   stdio/asprintf.c 
stdio/atoll.c stdio/fgetpos64.c   \
diff --git a/mingw-w64-crt/lib32/msvcr100.def b/mingw-w64-crt/lib32/msvcr100.def
index 4cae46a..2d11a06 100644
--- a/mingw-w64-crt/lib32/msvcr100.def
+++ b/mingw-w64-crt/lib32/msvcr100.def
@@ -882,9 +882,10 @@ _fseeki64 DATA
 _fseeki64_nolock
 _fsopen
 _fstat32
+_fstat == _fstat32
 _fstat32i64
 _fstat64
-_fstat64i32 DATA
+_fstat64i32
 _ftell_nolock
 _ftelli64 DATA
 _ftelli64_nolock
@@ -1358,9 +1359,10 @@ _sprintf_s_l
 _sscanf_l
 _sscanf_s_l
 _stat32
+_stat == _stat32
 _stat32i64
 _stat64
-_stat64i32 DATA
+_stat64i32
 _statusfp
 _statusfp2
 _strcoll_l
@@ -1633,9 +1635,10 @@ _wspawnvpe
 _wsplitpath
 _wsplitpath_s
 _wstat32
+_wstat == _wstat32
 _wstat32i64
 _wstat64
-_wstat64i32 DATA
+_wstat64i32
 _wstrdate
 _wstrdate_s
 _wstrtime
diff --git a/mingw-w64-crt/lib32/msvcr110.def b/mingw-w64-crt/lib32/msvcr110.def
index a3f1952..fc0cc78 100644
--- a/mingw-w64-crt/lib32/msvcr110.def
+++ b/mingw-w64-crt/lib32/msvcr110.def
@@ -1008,6 +1008,7 @@ _fstat32
 _fstat32i64
 _fstat64
 _fstat64i32
+_fstat == _fstat32
 _ftell_nolock
 _ftelli64
 _ftelli64_nolock
@@ -1494,6 +1495,7 @@ _stat32
 _stat32i64
 _stat64
 _stat64i32
+_stat == _stat32
 _statusfp
 _statusfp2
 _strcoll_l
@@ -1769,6 +1771,7 @@ _wstat32
 _wstat32i64
 _wstat64
 _wstat64i32
+_wstat == _wstat32
 _wstrdate
 _wstrdate_s
 _wstrtime
diff --git a/mingw-w64-crt/lib32/msvcr80.def b/mingw-w64-crt/lib32/msvcr80.def
index c09a404..6bb2ddf 100644
--- a/mingw-w64-crt/lib32/msvcr80.def
+++ b/mingw-w64-crt/lib32/msvcr80.def
@@ -188,7 +188,11 @@ _fpreset DATA
 _fputchar
 _fputwchar
 _fsopen
-_fstat
+_fstat32
+_fstat == _fstat32
+_fstat32i64
+_fstat64
+_fstat64i32
 _ftime
 _ftol
 _fullpath
@@ -393,7 +397,11 @@ _spawnve
 _spawnvp
 _spawnvpe
 _splitpath
-_stat
+_stat32
+_stat == _stat32
+_stat32i64
+_stat64
+_stat64i32
 _statusfp
 _strcmpi
 _strdate
@@ -505,7 +513,11 @@ _wspawnve
 _wspawnvp
 _wspawnvpe
 _wsplitpath
-_wstat
+_wstat32
+_wstat == _wstat32
+_wstat32i64
+_wstat64
+_wstat64i32
 _wstrdate
 _wstrtime
 _wsystem
@@ -728,7 +740,6 @@ _chkesp
 _ctime64
 _findfirst64
 _findnext64
-_fstat64
 _ftime64
 _futime64
 _gmtime64
@@ -736,13 +747,11 @@ _localtime64
 _mbcasemap
 _mktime64
 _osplatformDATA
-_stat64
 _time64
 _utime64
 _wctime64
 _wfindfirst64
 _wfindnext64
-_wstat64
 _wutime64
 ; msvcr70.dll amd later
 __buffer_overrun
diff --git a/mingw-w64-crt/lib32/msvcr90.def b/mingw-w64-crt/lib32/msvcr90.def
index 367af5f..c872d62 100644
--- a/mingw-w64-crt/lib32/msvcr90.def
+++ b/mingw-w64-crt/lib32/msvcr90.def
@@ -509,9 +509,10 @@ _fseeki64 DATA
 _fseeki64_nolock
 _fsopen
 _fstat32
+_fstat == _fstat32
 _fstat32i64
 _fstat64
-_fstat64i32 DATA
+_fstat64i32
 _ftell_nolock
 _ftelli64 DATA
 _ftelli64_nolock
@@ -992,

Re: [Mingw-w64-public] [patch] Prefer to use local headers over installed headers

2013-04-04 Thread NightStrike
On Thu, Apr 4, 2013 at 11:23 AM, Corinna Vinschen  wrote:
> Hi,
>
> On Mar 15 16:14, Corinna Vinschen wrote:
>> On Mar 15 06:09, JonY wrote:
>> > On 3/14/2013 23:52, Corinna Vinschen wrote:
>> > >
>> > > What two build systems?  It's a fairly simple patch which allows the
>> > > normal user of mingw64 to build the entire source tree in a single
>> > > `configure; make; make install', nothing more, nothing less.  I don't
>> > > understand why the unnecessary complicated 2-stage process is enforced.
>> > >
>> > >
>> >
>> > After having some proper sleep and looking at your patch again, I can
>> > see what you are trying to do.
>> >
>> > Please keep the changes to the top level configure, pass the -I
>> > arguments to the lower levels. None of the lower modules have any
>> > business getting too familiar with each other.
>>
>> I think NightStrike is already looking into this, so I shut up for now.
>> Feel free to ping me if I I'm supposed to do something in this matter.
>
> Is there some progress in this matter, which allows to build the headers
> and crt in a single configure/make run?  Just asking...

Yes, just slow.

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [patch] Prefer to use local headers over installed headers

2013-04-04 Thread Corinna Vinschen
Hi,

On Mar 15 16:14, Corinna Vinschen wrote:
> On Mar 15 06:09, JonY wrote:
> > On 3/14/2013 23:52, Corinna Vinschen wrote:
> > > 
> > > What two build systems?  It's a fairly simple patch which allows the
> > > normal user of mingw64 to build the entire source tree in a single
> > > `configure; make; make install', nothing more, nothing less.  I don't
> > > understand why the unnecessary complicated 2-stage process is enforced.
> > > 
> > > 
> > 
> > After having some proper sleep and looking at your patch again, I can
> > see what you are trying to do.
> > 
> > Please keep the changes to the top level configure, pass the -I
> > arguments to the lower levels. None of the lower modules have any
> > business getting too familiar with each other.
> 
> I think NightStrike is already looking into this, so I shut up for now.
> Feel free to ping me if I I'm supposed to do something in this matter.

Is there some progress in this matter, which allows to build the headers
and crt in a single configure/make run?  Just asking...


Thanks,
Corinna

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH 1/2] msvcr110: use local implementation of longjmp

2013-04-04 Thread Rafaël Carré
---
 mingw-w64-crt/lib32/msvcr110.def |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-crt/lib32/msvcr110.def b/mingw-w64-crt/lib32/msvcr110.def
index 4d26f36..01f38a4 100644
--- a/mingw-w64-crt/lib32/msvcr110.def
+++ b/mingw-w64-crt/lib32/msvcr110.def
@@ -1893,7 +1893,7 @@ lldiv
 localeconv
 log
 log10
-longjmp ; Check!!! Couldn't determine function argument count. Function 
doesn't return. 
+longjmp DATA
 malloc
 mblen
 mbrlen
-- 
1.7.10.4

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH 2/2] Provide vsnprintf alias for _vsnprintf

2013-04-04 Thread Rafaël Carré
---
 mingw-w64-crt/lib32/msvcr100.def |1 +
 mingw-w64-crt/lib32/msvcr110.def |1 +
 mingw-w64-crt/lib32/msvcr80.def  |1 +
 mingw-w64-crt/lib32/msvcr90.def  |1 +
 mingw-w64-crt/lib32/msvcr90d.def |1 +
 mingw-w64-crt/lib32/msvcrt.def   |1 +
 mingw-w64-crt/lib64/msvcr100.def |1 +
 mingw-w64-crt/lib64/msvcr110.def |1 +
 mingw-w64-crt/lib64/msvcr80.def  |1 +
 mingw-w64-crt/lib64/msvcr90.def  |1 +
 mingw-w64-crt/lib64/msvcr90d.def |1 +
 11 files changed, 11 insertions(+)

diff --git a/mingw-w64-crt/lib32/msvcr100.def b/mingw-w64-crt/lib32/msvcr100.def
index 419d9aa..4cae46a 100644
--- a/mingw-w64-crt/lib32/msvcr100.def
+++ b/mingw-w64-crt/lib32/msvcr100.def
@@ -1484,6 +1484,7 @@ _vscwprintf_l
 _vscwprintf_p
 _vscwprintf_p_l
 _vsnprintf
+vsnprintf == _vsnprintf
 _vsnprintf_c
 _vsnprintf_c_l
 _vsnprintf_l
diff --git a/mingw-w64-crt/lib32/msvcr110.def b/mingw-w64-crt/lib32/msvcr110.def
index 01f38a4..a3f1952 100644
--- a/mingw-w64-crt/lib32/msvcr110.def
+++ b/mingw-w64-crt/lib32/msvcr110.def
@@ -1617,6 +1617,7 @@ _vscwprintf_l
 _vscwprintf_p
 _vscwprintf_p_l
 _vsnprintf
+vsnprintf == _vsnprintf
 _vsnprintf_c
 _vsnprintf_c_l
 _vsnprintf_l
diff --git a/mingw-w64-crt/lib32/msvcr80.def b/mingw-w64-crt/lib32/msvcr80.def
index 53f9242..c09a404 100644
--- a/mingw-w64-crt/lib32/msvcr80.def
+++ b/mingw-w64-crt/lib32/msvcr80.def
@@ -432,6 +432,7 @@ _unloaddll
 _unlock
 _utime
 _vsnprintf
+vsnprintf == _vsnprintf
 _vsnwprintf
 _waccess
 _wasctime
diff --git a/mingw-w64-crt/lib32/msvcr90.def b/mingw-w64-crt/lib32/msvcr90.def
index 3c253a9..367af5f 100644
--- a/mingw-w64-crt/lib32/msvcr90.def
+++ b/mingw-w64-crt/lib32/msvcr90.def
@@ -1118,6 +1118,7 @@ _vscwprintf_l
 _vscwprintf_p
 _vscwprintf_p_l
 _vsnprintf
+vsnprintf == _vsnprintf
 _vsnprintf_c
 _vsnprintf_c_l
 _vsnprintf_l
diff --git a/mingw-w64-crt/lib32/msvcr90d.def b/mingw-w64-crt/lib32/msvcr90d.def
index 490d2eb..16c8e36 100644
--- a/mingw-w64-crt/lib32/msvcr90d.def
+++ b/mingw-w64-crt/lib32/msvcr90d.def
@@ -1184,6 +1184,7 @@ _vscwprintf_l
 _vscwprintf_p
 _vscwprintf_p_l
 _vsnprintf
+vsnprintf == _vsnprintf
 _vsnprintf_c
 _vsnprintf_c_l
 _vsnprintf_l
diff --git a/mingw-w64-crt/lib32/msvcrt.def b/mingw-w64-crt/lib32/msvcrt.def
index 4f74808..171d446 100644
--- a/mingw-w64-crt/lib32/msvcrt.def
+++ b/mingw-w64-crt/lib32/msvcrt.def
@@ -433,6 +433,7 @@ _unloaddll
 _unlock
 _utime
 _vsnprintf
+vsnprintf == _vsnprintf
 _vsnwprintf
 _waccess
 _wasctime
diff --git a/mingw-w64-crt/lib64/msvcr100.def b/mingw-w64-crt/lib64/msvcr100.def
index defdd38..000a92b 100644
--- a/mingw-w64-crt/lib64/msvcr100.def
+++ b/mingw-w64-crt/lib64/msvcr100.def
@@ -1431,6 +1431,7 @@ _vscwprintf_l
 _vscwprintf_p
 _vscwprintf_p_l
 _vsnprintf
+vsnprintf == _vsnprintf
 _vsnprintf_c
 _vsnprintf_c_l
 _vsnprintf_l
diff --git a/mingw-w64-crt/lib64/msvcr110.def b/mingw-w64-crt/lib64/msvcr110.def
index 7d33fa1..77760a6 100644
--- a/mingw-w64-crt/lib64/msvcr110.def
+++ b/mingw-w64-crt/lib64/msvcr110.def
@@ -1555,6 +1555,7 @@ _vscwprintf_l
 _vscwprintf_p
 _vscwprintf_p_l
 _vsnprintf
+vsnprintf == _vsnprintf
 _vsnprintf_c
 _vsnprintf_c_l
 _vsnprintf_l
diff --git a/mingw-w64-crt/lib64/msvcr80.def b/mingw-w64-crt/lib64/msvcr80.def
index 0c66c11..a8fdd00 100644
--- a/mingw-w64-crt/lib64/msvcr80.def
+++ b/mingw-w64-crt/lib64/msvcr80.def
@@ -544,6 +544,7 @@ _utime64
 _vscprintf
 _vscwprintf
 _vsnprintf
+vsnprintf == _vsnprintf
 _vsnwprintf
 _waccess
 _wasctime
diff --git a/mingw-w64-crt/lib64/msvcr90.def b/mingw-w64-crt/lib64/msvcr90.def
index 7162261..6afa032 100644
--- a/mingw-w64-crt/lib64/msvcr90.def
+++ b/mingw-w64-crt/lib64/msvcr90.def
@@ -1051,6 +1051,7 @@ _vscwprintf_l
 _vscwprintf_p
 _vscwprintf_p_l
 _vsnprintf
+vsnprintf == _vsnprintf
 _vsnprintf_c
 _vsnprintf_c_l
 _vsnprintf_l
diff --git a/mingw-w64-crt/lib64/msvcr90d.def b/mingw-w64-crt/lib64/msvcr90d.def
index 73fe346..7389adb 100644
--- a/mingw-w64-crt/lib64/msvcr90d.def
+++ b/mingw-w64-crt/lib64/msvcr90d.def
@@ -,6 +,7 @@ _vscwprintf_l
 _vscwprintf_p
 _vscwprintf_p_l
 _vsnprintf
+vsnprintf == _vsnprintf
 _vsnprintf_c
 _vsnprintf_c_l
 _vsnprintf_l
-- 
1.7.10.4

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] _w?find(next|first)*: sanitize msvcr* exports

2013-04-04 Thread Rafaël Carré
Only msvcrt.dll exports the i64 suffix
Make _w?find* alias _w?find* _w?find*32 on 32bits
Make _w?find* alias _w?find* _w?find*64i32 on 64bits
Do not use local definition when 64i32 version is already exported
Add a test for _findfirst/_findnext/_findclose
---
 mingw-w64-crt/Makefile.am |1 +
 mingw-w64-crt/lib32/msvcr100.def  |   12 
 mingw-w64-crt/lib32/msvcr110.def  |4 
 mingw-w64-crt/lib32/msvcr80.def   |   24 
 mingw-w64-crt/lib32/msvcr90.def   |   12 
 mingw-w64-crt/lib32/msvcr90d.def  |4 
 mingw-w64-crt/lib32/msvcrt.def|8 
 mingw-w64-crt/lib64/msvcr100.def  |   12 
 mingw-w64-crt/lib64/msvcr110.def  |4 
 mingw-w64-crt/lib64/msvcr80.def   |   24 
 mingw-w64-crt/lib64/msvcr90.def   |   12 
 mingw-w64-crt/lib64/msvcr90d.def  |4 
 mingw-w64-crt/lib64/msvcrt.def|4 
 mingw-w64-crt/testcases/t_findfirst.c |   20 
 14 files changed, 113 insertions(+), 32 deletions(-)
 create mode 100644 mingw-w64-crt/testcases/t_findfirst.c

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index a356c8d..efbe3ea 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -1146,6 +1146,7 @@ testcase_progs = \
   testcases/tstmaincpp \
   testcases/tstmain_sys_xxx \
   testcases/t_ansi_io \
+  testcases/t_findfirst \
   testcases/t_float  \
   testcases/t_fstat \
   testcases/t_intrinc \
diff --git a/mingw-w64-crt/lib32/msvcr100.def b/mingw-w64-crt/lib32/msvcr100.def
index 1f72ace..419d9aa 100644
--- a/mingw-w64-crt/lib32/msvcr100.def
+++ b/mingw-w64-crt/lib32/msvcr100.def
@@ -848,11 +848,13 @@ _findclose
 _findfirst32
 _findfirst32i64
 _findfirst64
-_findfirst64i32 DATA
+_findfirst64i32
+_findfirst == _findfirst32
 _findnext32
 _findnext32i64
 _findnext64
-_findnext64i32 DATA
+_findnext64i32
+_findnext == _findnext32
 _finite
 _flsbuf
 _flushall
@@ -1575,11 +1577,13 @@ _wfdopen
 _wfindfirst32
 _wfindfirst32i64
 _wfindfirst64
-_wfindfirst64i32 DATA
+_wfindfirst64i32
+_wfindfirst == _wfindfirst32
 _wfindnext32
 _wfindnext32i64
 _wfindnext64
-_wfindnext64i32 DATA
+_wfindnext64i32
+_wfindnext == _wfindnext32
 _wfopen
 _wfopen_s
 _wfreopen
diff --git a/mingw-w64-crt/lib32/msvcr110.def b/mingw-w64-crt/lib32/msvcr110.def
index 66246d2..4d26f36 100644
--- a/mingw-w64-crt/lib32/msvcr110.def
+++ b/mingw-w64-crt/lib32/msvcr110.def
@@ -969,10 +969,12 @@ _filelengthi64
 _fileno
 _findclose
 _findfirst32
+_findfirst == _findfirst32
 _findfirst32i64
 _findfirst64
 _findfirst64i32
 _findnext32
+_findnext == _findnext32
 _findnext32i64
 _findnext64
 _findnext64i32
@@ -1709,10 +1711,12 @@ _wfdopen
 _wfindfirst32
 _wfindfirst32i64
 _wfindfirst64
+_wfindfirst == _wfindfirst32
 _wfindfirst64i32
 _wfindnext32
 _wfindnext32i64
 _wfindnext64
+_wfindnext == _wfindnext32
 _wfindnext64i32
 _wfopen
 _wfopen_s
diff --git a/mingw-w64-crt/lib32/msvcr80.def b/mingw-w64-crt/lib32/msvcr80.def
index d65cab9..53f9242 100644
--- a/mingw-w64-crt/lib32/msvcr80.def
+++ b/mingw-w64-crt/lib32/msvcr80.def
@@ -170,10 +170,14 @@ _filelength
 _filelengthi64
 _fileno
 _findclose
-_findfirst
-_findfirsti64
-_findnext
-_findnexti64
+_findfirst32
+_findfirst == _findfirst32
+_findfirst64i32
+_findfirst32i64
+_findnext32
+_findnext == _findnext32
+_findnext64i32
+_findnext32i64
 _finite
 _flsbuf
 _flushall
@@ -458,10 +462,14 @@ _wexecve
 _wexecvp
 _wexecvpe
 _wfdopen
-_wfindfirst
-_wfindfirsti64
-_wfindnext
-_wfindnexti64
+_wfindfirst32
+_wfindfirst == _wfindfirst32
+_wfindfirst32i64
+_wfindfirst64i32
+_wfindnext32
+_wfindnext == _wfindnext32
+_wfindnext32i64
+_wfindnext64i32
 _wfopen
 _wfreopen
 _wfsopen
diff --git a/mingw-w64-crt/lib32/msvcr90.def b/mingw-w64-crt/lib32/msvcr90.def
index 7f86c5e..3c253a9 100644
--- a/mingw-w64-crt/lib32/msvcr90.def
+++ b/mingw-w64-crt/lib32/msvcr90.def
@@ -473,13 +473,15 @@ _filelengthi64
 _fileno
 _findclose
 _findfirst32
+_findfirst == _findfirst32
 _findfirst32i64
 _findfirst64
-_findfirst64i32 DATA
+_findfirst64i32
 _findnext32
+_findnext == _findnext32
 _findnext32i64
 _findnext64
-_findnext64i32 DATA
+_findnext64i32
 _finite
 _flsbuf
 _flushall
@@ -1207,13 +1209,15 @@ _wexecvp
 _wexecvpe
 _wfdopen
 _wfindfirst32
+_wfindfirst == _wfindfirst32
 _wfindfirst32i64
 _wfindfirst64
-_wfindfirst64i32 DATA
+_wfindfirst64i32
 _wfindnext32
+_wfindnext == _wfindnext32
 _wfindnext32i64
 _wfindnext64
-_wfindnext64i32 DATA
+_wfindnext64i32
 _wfopen
 _wfopen_s
 _wfreopen
diff --git a/mingw-w64-crt/lib32/msvcr90d.def b/mingw-w64-crt/lib32/msvcr90d.def
index dcf47c5..490d2eb 100644
--- a/mingw-w64-crt/lib32/msvcr90d.def
+++ b/mingw-w64-crt/lib32/msvcr90d.def
@@ -531,10 +531,12 @@ _filelengthi64
 _fileno
 _findclose
 _findfirst32
+_findfirst == _findfirst32
 _findfirst32i64
 _findfirst64
 _findfirst64i32
 _findnext32
+_findnext == _findnext32
 _findnext32i64
 _findnext64
 _findnext64i32
@@

Re: [Mingw-w64-public] segfault

2013-04-04 Thread Ruben Van Boxem
2013/4/4 Ahso Aa 

> Thanks again. It works now with mingw64 curl libs but vc2010 build. With
> the mingw64 build I still get the runtime segfault. The mingw64 libs only
> seem to need msvcrt hence I might be lucky...
>

Your code may invoke undefined behavior or it may not be doing what you
expect. With the information you have given it is pretty impossible to help
any further.

Good luck,

Ruben


>
>
>
>   --
> *From:* Ruben Van Boxem 
> *To:* mingw-w64-public@lists.sourceforge.net
> *Sent:* Thursday, April 4, 2013 11:43 AM
> *Subject:* Re: [Mingw-w64-public] segfault
>
> 2013/4/4 Ahso Aa 
>
> Ruben thanks, rebuilt with mingw32 and 64. -32 works fine and in
> dependency walker I only see msvcrt.dll. (no more msvcr80.dll) Should I be
> fine with that to not need redist anymore?
>
>
> Yes, msvcrt.dll is a part of every Windows install.
>
>
> - 64 seems the same and I don't get a segfault for now but it says to need
> zlib1.dll. I have that for 32bit but cannot find it for 64bit. Also the
> instructions in the zlib source seem only
> for win32? Hmmm I never compiled something on windows command line...
>
>
> The win32 instructions should be fine but you'll need to get the "-m64" in
> there somewhere. I think zlib still uses a makefile build for Windows, so
> perhaps this would do:
>
> make CC="gcc -m64" -f theMakefile
>
> Alternatively, you can use the old zlib build I uploaded a couple of years
> ago:
>
> https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/Binaries%20%2864-bit%29/
>
> It's two versions behind 1.2.7 though...
>
> Ruben
>
>
>
>
>   --
> *From:* Ruben Van Boxem 
> *To:* mingw-w64-public@lists.sourceforge.net
> *Sent:* Thursday, April 4, 2013 9:15 AM
> *Subject:* Re: [Mingw-w64-public] segfault
>
> 2013/4/4 Ahso Aa 
>
> Thanks Ruben. Now I see in a dependency dll from curl that it uses
> msvcr80.dll. That's VS2008? Could I most easily resolve that by downloading
> VC2008 and compile my stuff with that
> and /MT flag?
> Or what do you suggest that I should do?
>
>
> The easiest solution is to install the MSVC++2005 redistributable. This
> dependency means everyone using your program needs this as well.
>
> The "better" solution is to recompile curl with MinGW-w64, or even better,
> use the provided binary packages here: http://curl.haxx.se/download.html(near 
> the bottom there's 64-bit MinGW-w64 binaries).
>
> This might not be related to the segfault though...
>
> Ruben
>
>
> Many thanks again
> Michael
>
>
>
>   --
> *From:* Ruben Van Boxem 
> *To:* mingw-w64-public@lists.sourceforge.net
> *Sent:* Wednesday, April 3, 2013 6:29 PM
> *Subject:* Re: [Mingw-w64-public] segfault
>
> Op 3 apr. 2013 18:21 schreef "Ahso Aa"  het volgende:
> >
> >
> >
> > The MSVC++ DLL's are also ABI incompatible among versions. Even Service
> Packs break ABI compatibility.
> >
> > sigh...I'm a happy Linux user but need to support Windows...of course.
> >
> > How to see the toolchain? I remember to have seen (vc build?) in
> dependency walker msvcpd80.dll or alike. Would that
> > cause the segfault? Funny that 32bit mingw works, I'll have a look at
> that build in dependency walker tomorrow.
> That's a debug msvc++ dll, remember people without visual studio have no
> way of getting it and you can't distribute it. Are you using the right GCC
> dll's in the crashing app's PATH?
> Ruben
> >
> > Michael
> >
> >
> >
> >
> --
> > Minimize network downtime and maximize team effectiveness.
> > Reduce network management and security costs.Learn how to hire
> > the most talented Cisco Certified professionals. Visit the
> > Employer Resources Portal
> > http://www.cisco.com/web/learning/employer_resources/index.html
> > ___
> > Mingw-w64-public mailing list
> > Mingw-w64-public@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
> >
>
>
> --
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
>
>
> --
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> __

Re: [Mingw-w64-public] segfault

2013-04-04 Thread Ahso Aa
Thanks again. It works now with mingw64 curl libs but vc2010 build. With the 
mingw64 build I still get the runtime segfault. The mingw64 libs only seem to 
need msvcrt hence I might be lucky...






 From: Ruben Van Boxem 
To: mingw-w64-public@lists.sourceforge.net 
Sent: Thursday, April 4, 2013 11:43 AM
Subject: Re: [Mingw-w64-public] segfault
 

2013/4/4 Ahso Aa 

Ruben thanks, rebuilt with mingw32 and 64. -32 works fine and in dependency 
walker I only see msvcrt.dll. (no more msvcr80.dll) Should I be fine with that 
to not need redist anymore?

Yes, msvcrt.dll is a part of every Windows install.

 
- 64 seems the same and I don't get a segfault for now but it says to need 
zlib1.dll. I have that for 32bit but cannot find it for 64bit. Also the 
instructions in the zlib source seem only 
>
>for win32? Hmmm I never compiled something on windows command line...
>

The win32 instructions should be fine but you'll need to get the "-m64" in 
there somewhere. I think zlib still uses a makefile build for Windows, so 
perhaps this would do:


make CC="gcc -m64" -f theMakefile


Alternatively, you can use the old zlib build I uploaded a couple of years ago:
https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/Binaries%20%2864-bit%29/


It's two versions behind 1.2.7 though...


Ruben

 

>
>
>
>
>
> From: Ruben Van Boxem 
>To: mingw-w64-public@lists.sourceforge.net 
>Sent: Thursday, April 4, 2013 9:15 AM
>Subject: Re: [Mingw-w64-public] segfault
> 
>
>
>2013/4/4 Ahso Aa 
>
>Thanks Ruben. Now I see in a dependency dll from curl that it uses 
>msvcr80.dll. That's VS2008? Could I most easily resolve that by downloading 
>VC2008 and compile my stuff with that 
>>
>>and /MT flag?
>>Or what do you suggest that I should do?
>
>
>The easiest solution is to install the MSVC++2005 redistributable. This 
>dependency means everyone using your program needs this as well.
>
>
>The "better" solution is to recompile curl with MinGW-w64, or even better, use 
>the provided binary packages here: http://curl.haxx.se/download.html (near the 
>bottom there's 64-bit MinGW-w64 binaries).
>
>
>This might not be related to the segfault though...
>
>
>Ruben
>
> 
>Many thanks again
>>Michael
>>
>>
>>
>>
>>
>>
>>
>>
>> From: Ruben Van Boxem 
>>To: mingw-w64-public@lists.sourceforge.net 
>>Sent: Wednesday, April 3, 2013 6:29 PM
>>Subject: Re: [Mingw-w64-public] segfault
>> 
>>
>>
>>Op 3 apr. 2013 18:21 schreef "Ahso Aa"  het volgende:
>>>
>>>
>>>
>>> The MSVC++ DLL's are also ABI incompatible among versions. Even Service 
>>> Packs break ABI compatibility.
>>>
>>> sigh...I'm a happy Linux user but need to support Windows...of course.
>>>
>>> How to see the toolchain? I remember to have seen (vc build?) in dependency 
>>> walker msvcpd80.dll or alike. Would that 
>>> cause the segfault? Funny that 32bit mingw works, I'll have a look at that 
>>> build in dependency walker tomorrow.
>>That's a debug msvc++ dll, remember people without visual studio have no way 
>>of getting it and you can't distribute it. Are you using the right GCC dll's 
>>in the crashing app's PATH?
>>Ruben
>>>
>>> Michael
>>>
>>>
>>>
>>> --
>>> Minimize network downtime and maximize team effectiveness.
>>> Reduce network management and security costs.Learn how to hire
>>> the most talented Cisco Certified professionals. Visit the
>>> Employer Resources Portal
>>> http://www.cisco.com/web/learning/employer_resources/index.html
>>> ___
>>> Mingw-w64-public mailing list
>>> Mingw-w64-public@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>>
>>
>>--
>>Minimize network downtime and maximize team effectiveness.
>>Reduce network management and security costs.Learn how to hire 
>>the most talented Cisco Certified professionals. Visit the 
>>Employer Resources Portal
>>http://www.cisco.com/web/learning/employer_resources/index.html
>>___
>>Mingw-w64-public mailing list
>>Mingw-w64-public@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>>
>>
>>--
>>Minimize network downtime and maximize team effectiveness.
>>Reduce network management and security costs.Learn how to hire
>>the most talented Cisco Certified professionals. Visit the
>>Employer Resources Portal
>>http://www.cisco.com/web/learning/employer_resources/index.html
>>___
>>Mingw-w64-public mailing list
>>Mingw-w64-public@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>>
>
>---

Re: [Mingw-w64-public] [PATCH 6/6] Provide _mkgmtime/_mkgmtime32/_mkgmtime64 for all msvcrt versions through .def files

2013-04-04 Thread Rafaël Carré
Le 04/04/2013 11:56, Kai Tietz a écrit :
> Thanks for these changes.  Patch is ok

Thanks for review,

Committed as r5717-r5723 (1 more commit due to ChangeLog and Makefile.in
regeneration)

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH 6/6] Provide _mkgmtime/_mkgmtime32/_mkgmtime64 for all msvcrt versions through .def files

2013-04-04 Thread Kai Tietz
Thanks for these changes.  Patch is ok

Kai

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH 4/6] Provide _wctime/_wctime32/_wctime64 for all msvcrt versions through .def files

2013-04-04 Thread Kai Tietz
Ok, please apply

Kai

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH 1/6] Provide ctime/_ctime32/_ctime64 for all msvcrt versions through .def files

2013-04-04 Thread Kai Tietz
Ok,

Kai

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH 3/6] Provide mktime/_mktime32/_mktime64 for all msvcrt versions through .def files

2013-04-04 Thread Kai Tietz
Ok

Thanks,
Kai

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH 2/6] Provide gmtime/_gmtime32/_gmtime64 for all msvcrt versions through .def files

2013-04-04 Thread Kai Tietz
This is ok, too.

Kai

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH 5/6] Provide localtime/_localtime32/_localtime64 for all msvcrt versions through .def files

2013-04-04 Thread Kai Tietz
Patch is ok,

Thanks,
Kai

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH 2/6] Provide gmtime/_gmtime32/_gmtime64 for all msvcrt versions through .def files

2013-04-04 Thread Rafaël Carré
Remove gmtime/_gmtime32 .c replacements
---
 mingw-w64-crt/Makefile.am|4 ++--
 mingw-w64-crt/lib32/msvcr100.def |3 ++-
 mingw-w64-crt/lib32/msvcr110.def |1 +
 mingw-w64-crt/lib32/msvcr80.def  |4 ++--
 mingw-w64-crt/lib32/msvcr90.def  |3 ++-
 mingw-w64-crt/lib32/msvcr90d.def |1 +
 mingw-w64-crt/lib32/msvcrt.def   |4 ++--
 mingw-w64-crt/lib64/msvcr100.def |3 ++-
 mingw-w64-crt/lib64/msvcr110.def |1 +
 mingw-w64-crt/lib64/msvcr80.def  |4 ++--
 mingw-w64-crt/lib64/msvcr90.def  |3 ++-
 mingw-w64-crt/lib64/msvcr90d.def |1 +
 mingw-w64-crt/lib64/msvcrt.def   |3 +--
 mingw-w64-crt/misc/_gmtime32.c   |   11 ---
 mingw-w64-crt/misc/gmtime.c  |   20 
 15 files changed, 21 insertions(+), 45 deletions(-)
 delete mode 100644 mingw-w64-crt/misc/_gmtime32.c
 delete mode 100644 mingw-w64-crt/misc/gmtime.c

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 0682d2c..3892922 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -175,7 +175,7 @@ src_libmingwex=\
   math/powi.def.h   math/sin.def.h math/sqrt.def.h   \
   math/cephes_emath.h  math/cephes_mconf.h  math/fastmath.h  math/fp_consts.h  
math/abs64.c \
   \
- misc/_gmtime32.c misc/_localtime32.c  
   misc/_mkgmtime.c   misc/_mkgmtime32.c\
+  misc/_localtime32.c  
   misc/_mkgmtime.c   misc/_mkgmtime32.c\
   misc/_mktime32.c   misc/_wctime.c   misc/_wctime32.c 
   misc/alarm.c  \
   misc/basename.cmisc/btowc.c  
   misc/delay-f.c misc/delay-n.c\
   misc/delayimp.cmisc/difftime.c  misc/difftime32.c
   misc/difftime64.c  misc/dirent.c \
@@ -183,7 +183,7 @@ src_libmingwex=\
   misc/feclearexcept.c   misc/fegetenv.c  misc/fegetexceptflag.c   
   misc/fegetround.c  misc/feholdexcept.c   \
   misc/feraiseexcept.c   misc/fesetenv.c  misc/fesetexceptflag.c   
   misc/fesetround.c  misc/fetestexcept.c   \
   misc/feupdateenv.c misc/ftruncate.c misc/fwide.c 
   misc/getlogin.cmisc/getopt.c \
-  misc/gettimeofday.cmisc/gmtime.cmisc/imaxabs.c   
   misc/imaxdiv.c misc/isblank.c\
+  misc/gettimeofday.c misc/imaxabs.c   
   misc/imaxdiv.c misc/isblank.c\
   misc/iswblank.cmisc/localtime.c misc/mb_wc_common.h  
   misc/mbrtowc.c misc/mbsinit.c\
   misc/mempcpy.c misc/mingw-aligned-malloc.c  misc/mingw-fseek.c   
   misc/mingw_get_codepage.c  misc/mingw_getsp.S\
   misc/mingw_matherr.c   misc/mingw_mbwc_convert.c
misc/mingw_output_format.c  misc/mingw_usleep.cmisc/mingw_wcstod.c   \
diff --git a/mingw-w64-crt/lib32/msvcr100.def b/mingw-w64-crt/lib32/msvcr100.def
index 4531a4e..512aef5 100644
--- a/mingw-w64-crt/lib32/msvcr100.def
+++ b/mingw-w64-crt/lib32/msvcr100.def
@@ -946,7 +946,8 @@ _getwche_nolock
 _getws
 _getws_s
 _global_unwind2
-_gmtime32 DATA
+_gmtime32
+gmtime == _gmtime32
 _gmtime32_s
 _gmtime64
 _gmtime64_s
diff --git a/mingw-w64-crt/lib32/msvcr110.def b/mingw-w64-crt/lib32/msvcr110.def
index 70e4331..a949eb7 100644
--- a/mingw-w64-crt/lib32/msvcr110.def
+++ b/mingw-w64-crt/lib32/msvcr110.def
@@ -1069,6 +1069,7 @@ _getws
 _getws_s
 _global_unwind2
 _gmtime32
+gmtime == _gmtime32
 _gmtime32_s
 _gmtime64
 _gmtime64_s
diff --git a/mingw-w64-crt/lib32/msvcr80.def b/mingw-w64-crt/lib32/msvcr80.def
index 2280373..fa62936 100644
--- a/mingw-w64-crt/lib32/msvcr80.def
+++ b/mingw-w64-crt/lib32/msvcr80.def
@@ -569,8 +569,8 @@ getenv
 gets
 getwc
 getwchar
-gmtime DATA
-;_gmtime32 = gmtime
+_gmtime32
+gmtime == _gmtime32
 is_wctype
 isalnum
 isalpha
diff --git a/mingw-w64-crt/lib32/msvcr90.def b/mingw-w64-crt/lib32/msvcr90.def
index 2bfbd11..f9090b6 100644
--- a/mingw-w64-crt/lib32/msvcr90.def
+++ b/mingw-w64-crt/lib32/msvcr90.def
@@ -575,7 +575,8 @@ _getwche_nolock
 _getws
 _getws_s
 _global_unwind2
-_gmtime32 DATA
+_gmtime32
+gmtime == _gmtime32
 _gmtime32_s
 _gmtime64
 _gmtime64_s
diff --git a/mingw-w64-crt/lib32/msvcr90d.def b/mingw-w64-crt/lib32/msvcr90d.def
index d16967a..d7194ac 100644
--- a/mingw-w64-crt/lib32/msvcr90d.def
+++ b/mingw-w64-crt/lib32/msvcr90d.def
@@ -639,6 +639,7 @@ _getws
 _getws_s
 _global_unwind2
 _gmtime32
+gmtime == _gmtime32
 _gmtime32_s
 _gmtime64
 _gmtime64_s
diff --git a/mingw-w64-crt/lib32/msvcrt.def b/mingw-w64-crt/lib32/msvcrt.def
index 0a1e4de..8931f6b 100644
--- a/mingw-w64-crt/lib32/msvcrt.def
+++ b/mingw-w64-crt/lib32/msvcrt.def
@@ -571,8 +571,8 @@ getenv
 gets
 getwc
 getwchar
-gmtime DATA
-;_gmtime32 = gmtime
+gmtime
+_gmtime32 == gmtime
 is_wctype
 isalnum
 isalpha
diff --gi

[Mingw-w64-public] [PATCH 6/6] Provide _mkgmtime/_mkgmtime32/_mkgmtime64 for all msvcrt versions through .def files

2013-04-04 Thread Rafaël Carré
Remove _mkgmtime/_mkgmtime32 .c replacements

msvcrt.dll does not provide these symbols in 32bits
---
 mingw-w64-crt/Makefile.am|1 -
 mingw-w64-crt/lib32/msvcr100.def |3 ++-
 mingw-w64-crt/lib32/msvcr110.def |1 +
 mingw-w64-crt/lib32/msvcr80.def  |4 ++--
 mingw-w64-crt/lib32/msvcr90.def  |3 ++-
 mingw-w64-crt/lib32/msvcr90d.def |1 +
 mingw-w64-crt/lib32/msvcrt.def   |3 ---
 mingw-w64-crt/lib64/msvcr100.def |3 ++-
 mingw-w64-crt/lib64/msvcr110.def |1 +
 mingw-w64-crt/lib64/msvcr80.def  |4 ++--
 mingw-w64-crt/lib64/msvcr90.def  |3 ++-
 mingw-w64-crt/lib64/msvcr90d.def |1 +
 mingw-w64-crt/lib64/msvcrt.def   |3 +--
 mingw-w64-crt/misc/_mkgmtime.c   |   19 ---
 mingw-w64-crt/misc/_mkgmtime32.c |   11 ---
 15 files changed, 17 insertions(+), 44 deletions(-)
 delete mode 100644 mingw-w64-crt/misc/_mkgmtime.c
 delete mode 100644 mingw-w64-crt/misc/_mkgmtime32.c

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 1050a32..a356c8d 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -175,7 +175,6 @@ src_libmingwex=\
   math/powi.def.h   math/sin.def.h math/sqrt.def.h   \
   math/cephes_emath.h  math/cephes_mconf.h  math/fastmath.h  math/fp_consts.h  
math/abs64.c \
   \
-   
   misc/_mkgmtime.c   misc/_mkgmtime32.c\

   misc/alarm.c  \
   misc/basename.cmisc/btowc.c  
   misc/delay-f.c misc/delay-n.c\
   misc/delayimp.cmisc/difftime.c  misc/difftime32.c
   misc/difftime64.c  misc/dirent.c \
diff --git a/mingw-w64-crt/lib32/msvcr100.def b/mingw-w64-crt/lib32/msvcr100.def
index a3910dd..1f72ace 100644
--- a/mingw-w64-crt/lib32/msvcr100.def
+++ b/mingw-w64-crt/lib32/msvcr100.def
@@ -1238,7 +1238,8 @@ _memccpy
 _memicmp
 _memicmp_l
 _mkdir
-_mkgmtime32 DATA
+_mkgmtime32
+_mkgmtime == _mkgmtime32
 _mkgmtime64
 _mktemp
 _mktemp_s
diff --git a/mingw-w64-crt/lib32/msvcr110.def b/mingw-w64-crt/lib32/msvcr110.def
index 893b84f..66246d2 100644
--- a/mingw-w64-crt/lib32/msvcr110.def
+++ b/mingw-w64-crt/lib32/msvcr110.def
@@ -1372,6 +1372,7 @@ _memicmp
 _memicmp_l
 _mkdir
 _mkgmtime32
+_mkgmtime == _mkgmtime32
 _mkgmtime64
 _mktemp
 _mktemp_s
diff --git a/mingw-w64-crt/lib32/msvcr80.def b/mingw-w64-crt/lib32/msvcr80.def
index c5e51df..d65cab9 100644
--- a/mingw-w64-crt/lib32/msvcr80.def
+++ b/mingw-w64-crt/lib32/msvcr80.def
@@ -328,8 +328,8 @@ _mbsstr
 _mbstok
 _mbstrlen
 _mbsupr
-_mkgmtime DATA
-;_mkgmtime32 = _mkgmtime
+_mkgmtime32
+_mkgmtime == _mkgmtime32
 _mkgmtime64
 _memccpy
 _memicmp
diff --git a/mingw-w64-crt/lib32/msvcr90.def b/mingw-w64-crt/lib32/msvcr90.def
index 2c479c2..7f86c5e 100644
--- a/mingw-w64-crt/lib32/msvcr90.def
+++ b/mingw-w64-crt/lib32/msvcr90.def
@@ -866,7 +866,8 @@ _memccpy
 _memicmp
 _memicmp_l
 _mkdir
-_mkgmtime32 DATA
+_mkgmtime32
+_mkgmtime == _mkgmtime32
 _mkgmtime64
 _mktemp
 _mktemp_s
diff --git a/mingw-w64-crt/lib32/msvcr90d.def b/mingw-w64-crt/lib32/msvcr90d.def
index b90a268..dcf47c5 100644
--- a/mingw-w64-crt/lib32/msvcr90d.def
+++ b/mingw-w64-crt/lib32/msvcr90d.def
@@ -930,6 +930,7 @@ _memicmp
 _memicmp_l
 _mkdir
 _mkgmtime32
+_mkgmtime == _mkgmtime32
 _mkgmtime64
 _mktemp
 _mktemp_s
diff --git a/mingw-w64-crt/lib32/msvcrt.def b/mingw-w64-crt/lib32/msvcrt.def
index f83bc14..cc07444 100644
--- a/mingw-w64-crt/lib32/msvcrt.def
+++ b/mingw-w64-crt/lib32/msvcrt.def
@@ -727,9 +727,6 @@ _gmtime64
 ; _localtime32_s replaced by emu
 _localtime64
 ; _localtime64_s replaced by emu
-_mkgmtime DATA
-;_mkgmtime32 = _mkgmtime
-_mkgmtime64
 _mbcasemap
 _mktime64
 _osplatformDATA
diff --git a/mingw-w64-crt/lib64/msvcr100.def b/mingw-w64-crt/lib64/msvcr100.def
index a439782..23e9ff3 100644
--- a/mingw-w64-crt/lib64/msvcr100.def
+++ b/mingw-w64-crt/lib64/msvcr100.def
@@ -1190,8 +1190,9 @@ _memccpy
 _memicmp
 _memicmp_l
 _mkdir
-_mkgmtime32 DATA
+_mkgmtime32
 _mkgmtime64
+_mkgmtime == _mkgmtime64
 _mktemp
 _mktemp_s
 _mktime32
diff --git a/mingw-w64-crt/lib64/msvcr110.def b/mingw-w64-crt/lib64/msvcr110.def
index e3beeec..6eb90c2 100644
--- a/mingw-w64-crt/lib64/msvcr110.def
+++ b/mingw-w64-crt/lib64/msvcr110.def
@@ -1316,6 +1316,7 @@ _memicmp_l
 _mkdir
 _mkgmtime32
 _mkgmtime64
+_mkgmtime == _mkgmtime64
 _mktemp
 _mktemp_s
 _mktime32
diff --git a/mingw-w64-crt/lib64/msvcr80.def b/mingw-w64-crt/lib64/msvcr80.def
index 8a6b2c3..6d97174 100644
--- a/mingw-w64-crt/lib64/msvcr80.def
+++ b/mingw-w64-crt/lib64/msvcr80.def
@@ -429,9 +429,9 @@ _mbsupr
 _memccpy
 _memicmp
 _mkdir
-_mkgmtime DATA
-;_mkgmtime32 = _mkgmtime
+_mkgmtime32
 _mkgmtime64
+_mkgmtime == _mkgmtime64
 _mktemp
 _mktime64
 mktime == _mktime64
diff --git a/mingw-w64-crt/lib64/msvcr90.def b/mingw-w64-crt/lib64/msvcr90.def
index

[Mingw-w64-public] [PATCH 4/6] Provide _wctime/_wctime32/_wctime64 for all msvcrt versions through .def files

2013-04-04 Thread Rafaël Carré
Remove _wctime/_wctime32 .c replacements
---
 mingw-w64-crt/Makefile.am|2 +-
 mingw-w64-crt/lib32/msvcr100.def |3 ++-
 mingw-w64-crt/lib32/msvcr110.def |1 +
 mingw-w64-crt/lib32/msvcr80.def  |4 ++--
 mingw-w64-crt/lib32/msvcr90.def  |3 ++-
 mingw-w64-crt/lib32/msvcr90d.def |1 +
 mingw-w64-crt/lib32/msvcrt.def   |4 ++--
 mingw-w64-crt/lib64/msvcr100.def |3 ++-
 mingw-w64-crt/lib64/msvcr110.def |1 +
 mingw-w64-crt/lib64/msvcr80.def  |4 ++--
 mingw-w64-crt/lib64/msvcr90.def  |3 ++-
 mingw-w64-crt/lib64/msvcr90d.def |1 +
 mingw-w64-crt/lib64/msvcrt.def   |3 +--
 mingw-w64-crt/misc/_wctime.c |   22 --
 mingw-w64-crt/misc/_wctime32.c   |   17 -
 15 files changed, 20 insertions(+), 52 deletions(-)
 delete mode 100644 mingw-w64-crt/misc/_wctime.c
 delete mode 100644 mingw-w64-crt/misc/_wctime32.c

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 7049c86..5d3ac16 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -176,7 +176,7 @@ src_libmingwex=\
   math/cephes_emath.h  math/cephes_mconf.h  math/fastmath.h  math/fp_consts.h  
math/abs64.c \
   \
   misc/_localtime32.c  
   misc/_mkgmtime.c   misc/_mkgmtime32.c\
- misc/_wctime.c   misc/_wctime32.c 
   misc/alarm.c  \
+   
   misc/alarm.c  \
   misc/basename.cmisc/btowc.c  
   misc/delay-f.c misc/delay-n.c\
   misc/delayimp.cmisc/difftime.c  misc/difftime32.c
   misc/difftime64.c  misc/dirent.c \
   misc/dirname.c misc/execv.c misc/execve.c
   misc/execvp.c  misc/execvpe.c\
diff --git a/mingw-w64-crt/lib32/msvcr100.def b/mingw-w64-crt/lib32/msvcr100.def
index b5f4583..6bf7650 100644
--- a/mingw-w64-crt/lib32/msvcr100.def
+++ b/mingw-w64-crt/lib32/msvcr100.def
@@ -1551,7 +1551,8 @@ _wcsupr_l
 _wcsupr_s
 _wcsupr_s_l
 _wcsxfrm_l
-_wctime32 DATA
+_wctime32
+_wctime == _wctime32
 _wctime32_s
 _wctime64
 _wctime64_s
diff --git a/mingw-w64-crt/lib32/msvcr110.def b/mingw-w64-crt/lib32/msvcr110.def
index 199834b..959b99c 100644
--- a/mingw-w64-crt/lib32/msvcr110.def
+++ b/mingw-w64-crt/lib32/msvcr110.def
@@ -1686,6 +1686,7 @@ _wcsupr_s
 _wcsupr_s_l
 _wcsxfrm_l
 _wctime32
+_wctime == _wctime32
 _wctime32_s
 _wctime64
 _wctime64_s
diff --git a/mingw-w64-crt/lib32/msvcr80.def b/mingw-w64-crt/lib32/msvcr80.def
index c9fb7f1..2a1db1f 100644
--- a/mingw-w64-crt/lib32/msvcr80.def
+++ b/mingw-w64-crt/lib32/msvcr80.def
@@ -446,8 +446,8 @@ _wcsnset
 _wcsrev
 _wcsset
 _wcsupr
-_wctime DATA
-;_wctime32 = _wctime
+_wctime32
+_wctime == _wctime32
 _wenviron DATA
 _wexecl
 _wexecle
diff --git a/mingw-w64-crt/lib32/msvcr90.def b/mingw-w64-crt/lib32/msvcr90.def
index c2f93f9..b3111df 100644
--- a/mingw-w64-crt/lib32/msvcr90.def
+++ b/mingw-w64-crt/lib32/msvcr90.def
@@ -1185,7 +1185,8 @@ _wcsupr_l
 _wcsupr_s
 _wcsupr_s_l
 _wcsxfrm_l
-_wctime32 DATA
+_wctime32
+_wctime == _wctime32
 _wctime32_s
 _wctime64
 _wctime64_s
diff --git a/mingw-w64-crt/lib32/msvcr90d.def b/mingw-w64-crt/lib32/msvcr90d.def
index dbf2d8b..c0951fc 100644
--- a/mingw-w64-crt/lib32/msvcr90d.def
+++ b/mingw-w64-crt/lib32/msvcr90d.def
@@ -1253,6 +1253,7 @@ _wcsupr_s
 _wcsupr_s_l
 _wcsxfrm_l
 _wctime32
+_wctime == _wctime32
 _wctime32_s
 _wctime64
 _wctime64_s
diff --git a/mingw-w64-crt/lib32/msvcrt.def b/mingw-w64-crt/lib32/msvcrt.def
index 2ad325b..39c41f8 100644
--- a/mingw-w64-crt/lib32/msvcrt.def
+++ b/mingw-w64-crt/lib32/msvcrt.def
@@ -447,8 +447,8 @@ _wcsnset
 _wcsrev
 _wcsset
 _wcsupr
-_wctime DATA
-;_wctime32 = _wctime
+_wctime
+_wctime32 == _wctime
 _wenviron DATA
 _wexecl
 _wexecle
diff --git a/mingw-w64-crt/lib64/msvcr100.def b/mingw-w64-crt/lib64/msvcr100.def
index a7f9a64..7bca3fe 100644
--- a/mingw-w64-crt/lib64/msvcr100.def
+++ b/mingw-w64-crt/lib64/msvcr100.def
@@ -1498,9 +1498,10 @@ _wcsupr_l
 _wcsupr_s
 _wcsupr_s_l
 _wcsxfrm_l
-_wctime32 DATA
+_wctime32
 _wctime32_s
 _wctime64
+_wctime == _wctime64
 _wctime64_s
 _wctomb_l
 _wctomb_s_l
diff --git a/mingw-w64-crt/lib64/msvcr110.def b/mingw-w64-crt/lib64/msvcr110.def
index 557be22..8e856a7 100644
--- a/mingw-w64-crt/lib64/msvcr110.def
+++ b/mingw-w64-crt/lib64/msvcr110.def
@@ -1626,6 +1626,7 @@ _wcsxfrm_l
 _wctime32
 _wctime32_s
 _wctime64
+_wctime == _wctime64
 _wctime64_s
 _wctomb_l
 _wctomb_s_l
diff --git a/mingw-w64-crt/lib64/msvcr80.def b/mingw-w64-crt/lib64/msvcr80.def
index 1267595..e21d10f 100644
--- a/mingw-w64-crt/lib64/msvcr80.def
+++ b/mingw-w64-crt/lib64/msvcr80.def
@@ -560,9 +560,9 @@ _wcsset
 _wcstoi64
 _wcstoui64
 _wcsupr
-_wctime DATA
-;_wctime32 = _wctime
+_wctime32
 _wctime64
+_wctime == _wctime64
 _wctype
 _wenviron DATA
 _wexecl
di

[Mingw-w64-public] [PATCH 5/6] Provide localtime/_localtime32/_localtime64 for all msvcrt versions through .def files

2013-04-04 Thread Rafaël Carré
Remove localtime/_localtime32 .c replacements
---
 mingw-w64-crt/Makefile.am |4 ++--
 mingw-w64-crt/lib32/msvcr100.def  |3 ++-
 mingw-w64-crt/lib32/msvcr110.def  |1 +
 mingw-w64-crt/lib32/msvcr80.def   |4 ++--
 mingw-w64-crt/lib32/msvcr90.def   |3 ++-
 mingw-w64-crt/lib32/msvcr90d.def  |1 +
 mingw-w64-crt/lib32/msvcrt.def|4 ++--
 mingw-w64-crt/lib64/msvcr100.def  |3 ++-
 mingw-w64-crt/lib64/msvcr110.def  |1 +
 mingw-w64-crt/lib64/msvcr80.def   |4 ++--
 mingw-w64-crt/lib64/msvcr90.def   |3 ++-
 mingw-w64-crt/lib64/msvcr90d.def  |1 +
 mingw-w64-crt/lib64/msvcrt.def|3 +--
 mingw-w64-crt/misc/_localtime32.c |   12 
 mingw-w64-crt/misc/localtime.c|   20 
 15 files changed, 21 insertions(+), 46 deletions(-)
 delete mode 100644 mingw-w64-crt/misc/_localtime32.c
 delete mode 100644 mingw-w64-crt/misc/localtime.c

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 5d3ac16..1050a32 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -175,7 +175,7 @@ src_libmingwex=\
   math/powi.def.h   math/sin.def.h math/sqrt.def.h   \
   math/cephes_emath.h  math/cephes_mconf.h  math/fastmath.h  math/fp_consts.h  
math/abs64.c \
   \
-  misc/_localtime32.c  
   misc/_mkgmtime.c   misc/_mkgmtime32.c\
+   
   misc/_mkgmtime.c   misc/_mkgmtime32.c\

   misc/alarm.c  \
   misc/basename.cmisc/btowc.c  
   misc/delay-f.c misc/delay-n.c\
   misc/delayimp.cmisc/difftime.c  misc/difftime32.c
   misc/difftime64.c  misc/dirent.c \
@@ -184,7 +184,7 @@ src_libmingwex=\
   misc/feraiseexcept.c   misc/fesetenv.c  misc/fesetexceptflag.c   
   misc/fesetround.c  misc/fetestexcept.c   \
   misc/feupdateenv.c misc/ftruncate.c misc/fwide.c 
   misc/getlogin.cmisc/getopt.c \
   misc/gettimeofday.c misc/imaxabs.c   
   misc/imaxdiv.c misc/isblank.c\
-  misc/iswblank.cmisc/localtime.c misc/mb_wc_common.h  
   misc/mbrtowc.c misc/mbsinit.c\
+  misc/iswblank.c misc/mb_wc_common.h  
   misc/mbrtowc.c misc/mbsinit.c\
   misc/mempcpy.c misc/mingw-aligned-malloc.c  misc/mingw-fseek.c   
   misc/mingw_get_codepage.c  misc/mingw_getsp.S\
   misc/mingw_matherr.c   misc/mingw_mbwc_convert.c
misc/mingw_output_format.c  misc/mingw_usleep.cmisc/mingw_wcstod.c   \
   misc/mingw_wcstof.cmisc/mingw_wcstold.c  
   misc/seterrno.cmisc/sleep.c  \
diff --git a/mingw-w64-crt/lib32/msvcr100.def b/mingw-w64-crt/lib32/msvcr100.def
index 6bf7650..a3910dd 100644
--- a/mingw-w64-crt/lib32/msvcr100.def
+++ b/mingw-w64-crt/lib32/msvcr100.def
@@ -1075,7 +1075,8 @@ _lfind_s
 _loaddll
 _local_unwind2
 _local_unwind4
-_localtime32 DATA
+_localtime32
+localtime == _localtime32
 _localtime32_s
 _localtime64
 _localtime64_s
diff --git a/mingw-w64-crt/lib32/msvcr110.def b/mingw-w64-crt/lib32/msvcr110.def
index 959b99c..893b84f 100644
--- a/mingw-w64-crt/lib32/msvcr110.def
+++ b/mingw-w64-crt/lib32/msvcr110.def
@@ -1209,6 +1209,7 @@ _loaddll
 _local_unwind2
 _local_unwind4
 _localtime32
+localtime == _localtime32
 _localtime32_s
 _localtime64
 _localtime64_s
diff --git a/mingw-w64-crt/lib32/msvcr80.def b/mingw-w64-crt/lib32/msvcr80.def
index 2a1db1f..c5e51df 100644
--- a/mingw-w64-crt/lib32/msvcr80.def
+++ b/mingw-w64-crt/lib32/msvcr80.def
@@ -601,8 +601,8 @@ labs
 ldexp DATA
 ldiv
 localeconv
-localtime DATA
-;_localtime32 = localtime
+localtime == _localtime32
+_localtime32
 log DATA
 log10
 longjmp DATA
diff --git a/mingw-w64-crt/lib32/msvcr90.def b/mingw-w64-crt/lib32/msvcr90.def
index b3111df..2c479c2 100644
--- a/mingw-w64-crt/lib32/msvcr90.def
+++ b/mingw-w64-crt/lib32/msvcr90.def
@@ -703,7 +703,8 @@ _lfind_s
 _loaddll
 _local_unwind2
 _local_unwind4
-_localtime32 DATA
+_localtime32
+localtime == _localtime32
 _localtime32_s
 _localtime64
 _localtime64_s
diff --git a/mingw-w64-crt/lib32/msvcr90d.def b/mingw-w64-crt/lib32/msvcr90d.def
index c0951fc..b90a268 100644
--- a/mingw-w64-crt/lib32/msvcr90d.def
+++ b/mingw-w64-crt/lib32/msvcr90d.def
@@ -766,6 +766,7 @@ _loaddll
 _local_unwind2
 _local_unwind4
 _localtime32
+localtime == _localtime32
 _localtime32_s
 _localtime64
 _localtime64_s
diff --git a/mingw-w64-crt/lib32/msvcrt.def b/mingw-w64-crt/lib32/msvcrt.def
index 39c41f8..f83bc14 100644
--- a/mingw-w64-crt/lib32/msvcrt.def
+++ b/mingw-w64-crt/lib32/msvcrt.def
@@ -

[Mingw-w64-public] [PATCH 0/6] Provide *time replacements through msvcr*.def

2013-04-04 Thread Rafaël Carré
Hello,

Those patches provide symbol aliases, like was done for _time32/_time64/time
Note:

The 64bit msvcrt.dll doesn't provide 32bits equivalents (at least for XP, they 
seem to have been added in later releases).
mkgmtime* are not available in XP 32bits msvcrt.dll

I did not touch difftime, as at least one version would be needed for msvcrt.dll

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH 3/6] Provide mktime/_mktime32/_mktime64 for all msvcrt versions through .def files

2013-04-04 Thread Rafaël Carré
Remove mktime/_mktime32 .c replacements
---
 mingw-w64-crt/Makefile.am|4 ++--
 mingw-w64-crt/lib32/msvcr100.def |3 ++-
 mingw-w64-crt/lib32/msvcr110.def |1 +
 mingw-w64-crt/lib32/msvcr80.def  |4 ++--
 mingw-w64-crt/lib32/msvcr90.def  |3 ++-
 mingw-w64-crt/lib32/msvcr90d.def |1 +
 mingw-w64-crt/lib32/msvcrt.def   |4 ++--
 mingw-w64-crt/lib64/msvcr100.def |3 ++-
 mingw-w64-crt/lib64/msvcr110.def |1 +
 mingw-w64-crt/lib64/msvcr80.def  |4 ++--
 mingw-w64-crt/lib64/msvcr90.def  |3 ++-
 mingw-w64-crt/lib64/msvcr90d.def |1 +
 mingw-w64-crt/lib64/msvcrt.def   |3 +--
 mingw-w64-crt/misc/_mktime32.c   |   12 
 mingw-w64-crt/misc/mktime.c  |   20 
 15 files changed, 21 insertions(+), 46 deletions(-)
 delete mode 100644 mingw-w64-crt/misc/_mktime32.c
 delete mode 100644 mingw-w64-crt/misc/mktime.c

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 3892922..7049c86 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -176,7 +176,7 @@ src_libmingwex=\
   math/cephes_emath.h  math/cephes_mconf.h  math/fastmath.h  math/fp_consts.h  
math/abs64.c \
   \
   misc/_localtime32.c  
   misc/_mkgmtime.c   misc/_mkgmtime32.c\
-  misc/_mktime32.c   misc/_wctime.c   misc/_wctime32.c 
   misc/alarm.c  \
+ misc/_wctime.c   misc/_wctime32.c 
   misc/alarm.c  \
   misc/basename.cmisc/btowc.c  
   misc/delay-f.c misc/delay-n.c\
   misc/delayimp.cmisc/difftime.c  misc/difftime32.c
   misc/difftime64.c  misc/dirent.c \
   misc/dirname.c misc/execv.c misc/execve.c
   misc/execvp.c  misc/execvpe.c\
@@ -187,7 +187,7 @@ src_libmingwex=\
   misc/iswblank.cmisc/localtime.c misc/mb_wc_common.h  
   misc/mbrtowc.c misc/mbsinit.c\
   misc/mempcpy.c misc/mingw-aligned-malloc.c  misc/mingw-fseek.c   
   misc/mingw_get_codepage.c  misc/mingw_getsp.S\
   misc/mingw_matherr.c   misc/mingw_mbwc_convert.c
misc/mingw_output_format.c  misc/mingw_usleep.cmisc/mingw_wcstod.c   \
-  misc/mingw_wcstof.cmisc/mingw_wcstold.c misc/mktime.c
   misc/seterrno.cmisc/sleep.c  \
+  misc/mingw_wcstof.cmisc/mingw_wcstold.c  
   misc/seterrno.cmisc/sleep.c  \
   misc/spawnv.c  misc/spawnve.c   misc/spawnvp.c   
   misc/spawnvpe.cmisc/strnlen.c\
   misc/strsafe.c misc/strtoimax.c misc/strtold.c   
   misc/strtoumax.c   misc/tdelete.c\
   misc/tfind.c   misc/tsearch.c   misc/twalk.c 
   misc/uchar_c16rtomb.c \
diff --git a/mingw-w64-crt/lib32/msvcr100.def b/mingw-w64-crt/lib32/msvcr100.def
index 512aef5..b5f4583 100644
--- a/mingw-w64-crt/lib32/msvcr100.def
+++ b/mingw-w64-crt/lib32/msvcr100.def
@@ -1241,7 +1241,8 @@ _mkgmtime32 DATA
 _mkgmtime64
 _mktemp
 _mktemp_s
-_mktime32 DATA
+_mktime32
+mktime == _mktime32
 _mktime64
 _msize
 _nextafter
diff --git a/mingw-w64-crt/lib32/msvcr110.def b/mingw-w64-crt/lib32/msvcr110.def
index a949eb7..199834b 100644
--- a/mingw-w64-crt/lib32/msvcr110.def
+++ b/mingw-w64-crt/lib32/msvcr110.def
@@ -1375,6 +1375,7 @@ _mkgmtime64
 _mktemp
 _mktemp_s
 _mktime32
+mktime == _mktime32
 _mktime64
 _msize
 _nextafter
diff --git a/mingw-w64-crt/lib32/msvcr80.def b/mingw-w64-crt/lib32/msvcr80.def
index fa62936..c9fb7f1 100644
--- a/mingw-w64-crt/lib32/msvcr80.def
+++ b/mingw-w64-crt/lib32/msvcr80.def
@@ -615,8 +615,8 @@ memcmp
 memcpy
 memmove
 memset
-mktime DATA
-;_mktime32 = mktime
+mktime == _mktime32
+_mktime32
 modf
 perror
 ;pow
diff --git a/mingw-w64-crt/lib32/msvcr90.def b/mingw-w64-crt/lib32/msvcr90.def
index f9090b6..c2f93f9 100644
--- a/mingw-w64-crt/lib32/msvcr90.def
+++ b/mingw-w64-crt/lib32/msvcr90.def
@@ -869,7 +869,8 @@ _mkgmtime32 DATA
 _mkgmtime64
 _mktemp
 _mktemp_s
-_mktime32 DATA
+_mktime32
+mktime == _mktime32
 _mktime64
 _msize
 _nextafter
diff --git a/mingw-w64-crt/lib32/msvcr90d.def b/mingw-w64-crt/lib32/msvcr90d.def
index d7194ac..dbf2d8b 100644
--- a/mingw-w64-crt/lib32/msvcr90d.def
+++ b/mingw-w64-crt/lib32/msvcr90d.def
@@ -933,6 +933,7 @@ _mkgmtime64
 _mktemp
 _mktemp_s
 _mktime32
+mktime == _mktime32
 _mktime64
 _msize
 _msize_dbg
diff --git a/mingw-w64-crt/lib32/msvcrt.def b/mingw-w64-crt/lib32/msvcrt.def
index 8931f6b..2ad325b 100644
--- a/mingw-w64-crt/lib32/msvcrt.def
+++ b/mingw-w64-crt/lib32/msvcrt.def
@@ -617,8 +617,8 @@ memcmp
 memcpy
 memmove
 memset
-mktime DATA
-;_mktime32 = mktime
+mktime
+_mktime32 == mktime
 modf
 perror
 ;pow
diff --git a/mingw-w64-crt/lib64/msvc

[Mingw-w64-public] [PATCH 1/6] Provide ctime/_ctime32/_ctime64 for all msvcrt versions through .def files

2013-04-04 Thread Rafaël Carré
Remove ctime/_ctime32 .c replacements
---
 mingw-w64-crt/Makefile.am|4 ++--
 mingw-w64-crt/lib32/msvcr100.def |3 ++-
 mingw-w64-crt/lib32/msvcr110.def |1 +
 mingw-w64-crt/lib32/msvcr80.def  |4 ++--
 mingw-w64-crt/lib32/msvcr90.def  |3 ++-
 mingw-w64-crt/lib32/msvcr90d.def |1 +
 mingw-w64-crt/lib32/msvcrt.def   |4 ++--
 mingw-w64-crt/lib64/msvcr100.def |3 ++-
 mingw-w64-crt/lib64/msvcr110.def |1 +
 mingw-w64-crt/lib64/msvcr80.def  |4 ++--
 mingw-w64-crt/lib64/msvcr90.def  |3 ++-
 mingw-w64-crt/lib64/msvcr90d.def |1 +
 mingw-w64-crt/lib64/msvcrt.def   |3 +--
 mingw-w64-crt/misc/_ctime32.c|   12 
 mingw-w64-crt/misc/ctime.c   |   19 ---
 15 files changed, 21 insertions(+), 45 deletions(-)
 delete mode 100644 mingw-w64-crt/misc/_ctime32.c
 delete mode 100644 mingw-w64-crt/misc/ctime.c

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 6de6720..0682d2c 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -175,9 +175,9 @@ src_libmingwex=\
   math/powi.def.h   math/sin.def.h math/sqrt.def.h   \
   math/cephes_emath.h  math/cephes_mconf.h  math/fastmath.h  math/fp_consts.h  
math/abs64.c \
   \
-  misc/_ctime32.cmisc/_gmtime32.c misc/_localtime32.c  
   misc/_mkgmtime.c   misc/_mkgmtime32.c\
+ misc/_gmtime32.c misc/_localtime32.c  
   misc/_mkgmtime.c   misc/_mkgmtime32.c\
   misc/_mktime32.c   misc/_wctime.c   misc/_wctime32.c 
   misc/alarm.c  \
-  misc/basename.cmisc/btowc.c misc/ctime.c 
   misc/delay-f.c misc/delay-n.c\
+  misc/basename.cmisc/btowc.c  
   misc/delay-f.c misc/delay-n.c\
   misc/delayimp.cmisc/difftime.c  misc/difftime32.c
   misc/difftime64.c  misc/dirent.c \
   misc/dirname.c misc/execv.c misc/execve.c
   misc/execvp.c  misc/execvpe.c\
   misc/feclearexcept.c   misc/fegetenv.c  misc/fegetexceptflag.c   
   misc/fegetround.c  misc/feholdexcept.c   \
diff --git a/mingw-w64-crt/lib32/msvcr100.def b/mingw-w64-crt/lib32/msvcr100.def
index c12275b..4531a4e 100644
--- a/mingw-w64-crt/lib32/msvcr100.def
+++ b/mingw-w64-crt/lib32/msvcr100.def
@@ -786,7 +786,8 @@ _cscanf
 _cscanf_l
 _cscanf_s
 _cscanf_s_l
-_ctime32 DATA
+_ctime32
+ctime == _ctime32
 _ctime32_s
 _ctime64
 _ctime64_s
diff --git a/mingw-w64-crt/lib32/msvcr110.def b/mingw-w64-crt/lib32/msvcr110.def
index 69b74a0..70e4331 100644
--- a/mingw-w64-crt/lib32/msvcr110.def
+++ b/mingw-w64-crt/lib32/msvcr110.def
@@ -911,6 +911,7 @@ _cscanf_l
 _cscanf_s
 _cscanf_s_l
 _ctime32
+ctime == _ctime32
 _ctime32_s
 _ctime64
 _ctime64_s
diff --git a/mingw-w64-crt/lib32/msvcr80.def b/mingw-w64-crt/lib32/msvcr80.def
index 824b7bc..2280373 100644
--- a/mingw-w64-crt/lib32/msvcr80.def
+++ b/mingw-w64-crt/lib32/msvcr80.def
@@ -528,8 +528,8 @@ clearerr
 clock
 cos
 cosh
-ctime DATA
-;_ctime32 = ctime
+_ctime32
+ctime == _ctime32
 difftime
 div
 exit
diff --git a/mingw-w64-crt/lib32/msvcr90.def b/mingw-w64-crt/lib32/msvcr90.def
index 7403049..2bfbd11 100644
--- a/mingw-w64-crt/lib32/msvcr90.def
+++ b/mingw-w64-crt/lib32/msvcr90.def
@@ -411,7 +411,8 @@ _cscanf
 _cscanf_l
 _cscanf_s
 _cscanf_s_l
-_ctime32 DATA
+_ctime32
+ctime == _ctime32
 _ctime32_s
 _ctime64
 _ctime64_s
diff --git a/mingw-w64-crt/lib32/msvcr90d.def b/mingw-w64-crt/lib32/msvcr90d.def
index f803b12..d16967a 100644
--- a/mingw-w64-crt/lib32/msvcr90d.def
+++ b/mingw-w64-crt/lib32/msvcr90d.def
@@ -468,6 +468,7 @@ _cscanf_l
 _cscanf_s
 _cscanf_s_l
 _ctime32
+ctime == _ctime32
 _ctime32_s
 _ctime64
 _ctime64_s
diff --git a/mingw-w64-crt/lib32/msvcrt.def b/mingw-w64-crt/lib32/msvcrt.def
index 38f3f73..0a1e4de 100644
--- a/mingw-w64-crt/lib32/msvcrt.def
+++ b/mingw-w64-crt/lib32/msvcrt.def
@@ -530,8 +530,8 @@ clearerr
 clock
 cos
 cosh
-ctime DATA
-;_ctime32 = ctime
+ctime
+_ctime32 == ctime
 difftime
 div
 exit
diff --git a/mingw-w64-crt/lib64/msvcr100.def b/mingw-w64-crt/lib64/msvcr100.def
index 162872f..ec85dc0 100644
--- a/mingw-w64-crt/lib64/msvcr100.def
+++ b/mingw-w64-crt/lib64/msvcr100.def
@@ -744,9 +744,10 @@ _cscanf
 _cscanf_l
 _cscanf_s
 _cscanf_s_l
-_ctime32 DATA
+_ctime32
 _ctime32_s
 _ctime64
+ctime == _ctime64
 _ctime64_s
 _cwait
 _cwprintf
diff --git a/mingw-w64-crt/lib64/msvcr110.def b/mingw-w64-crt/lib64/msvcr110.def
index f1f2c56..5e40913 100644
--- a/mingw-w64-crt/lib64/msvcr110.def
+++ b/mingw-w64-crt/lib64/msvcr110.def
@@ -873,6 +873,7 @@ _cscanf_s_l
 _ctime32
 _ctime32_s
 _ctime64
+ctime == _ctime64
 _ctime64_s
 _cwait
 _cwprintf
diff --git a/mingw-w64-crt/lib64/msvcr80.def b/mingw-w64-crt/lib64/msvcr80.def
index 922fee7..47aa3f2 100644
--- a/mingw-w64-crt/lib64/msvcr80.def
+++

Re: [Mingw-w64-public] segfault

2013-04-04 Thread Ruben Van Boxem
2013/4/4 Ahso Aa 

> Ruben thanks, rebuilt with mingw32 and 64. -32 works fine and in
> dependency walker I only see msvcrt.dll. (no more msvcr80.dll) Should I be
> fine with that to not need redist anymore?
>

Yes, msvcrt.dll is a part of every Windows install.


> - 64 seems the same and I don't get a segfault for now but it says to need
> zlib1.dll. I have that for 32bit but cannot find it for 64bit. Also the
> instructions in the zlib source seem only
> for win32? Hmmm I never compiled something on windows command line...
>

The win32 instructions should be fine but you'll need to get the "-m64" in
there somewhere. I think zlib still uses a makefile build for Windows, so
perhaps this would do:

make CC="gcc -m64" -f theMakefile

Alternatively, you can use the old zlib build I uploaded a couple of years
ago:
https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/Binaries%20%2864-bit%29/

It's two versions behind 1.2.7 though...

Ruben


>
>
>   --
> *From:* Ruben Van Boxem 
> *To:* mingw-w64-public@lists.sourceforge.net
> *Sent:* Thursday, April 4, 2013 9:15 AM
> *Subject:* Re: [Mingw-w64-public] segfault
>
> 2013/4/4 Ahso Aa 
>
> Thanks Ruben. Now I see in a dependency dll from curl that it uses
> msvcr80.dll. That's VS2008? Could I most easily resolve that by downloading
> VC2008 and compile my stuff with that
> and /MT flag?
> Or what do you suggest that I should do?
>
>
> The easiest solution is to install the MSVC++2005 redistributable. This
> dependency means everyone using your program needs this as well.
>
> The "better" solution is to recompile curl with MinGW-w64, or even better,
> use the provided binary packages here: http://curl.haxx.se/download.html(near 
> the bottom there's 64-bit MinGW-w64 binaries).
>
> This might not be related to the segfault though...
>
> Ruben
>
>
> Many thanks again
> Michael
>
>
>
>   --
> *From:* Ruben Van Boxem 
> *To:* mingw-w64-public@lists.sourceforge.net
> *Sent:* Wednesday, April 3, 2013 6:29 PM
> *Subject:* Re: [Mingw-w64-public] segfault
>
> Op 3 apr. 2013 18:21 schreef "Ahso Aa"  het volgende:
> >
> >
> >
> > The MSVC++ DLL's are also ABI incompatible among versions. Even Service
> Packs break ABI compatibility.
> >
> > sigh...I'm a happy Linux user but need to support Windows...of course.
> >
> > How to see the toolchain? I remember to have seen (vc build?) in
> dependency walker msvcpd80.dll or alike. Would that
> > cause the segfault? Funny that 32bit mingw works, I'll have a look at
> that build in dependency walker tomorrow.
> That's a debug msvc++ dll, remember people without visual studio have no
> way of getting it and you can't distribute it. Are you using the right GCC
> dll's in the crashing app's PATH?
> Ruben
> >
> > Michael
> >
> >
> >
> >
> --
> > Minimize network downtime and maximize team effectiveness.
> > Reduce network management and security costs.Learn how to hire
> > the most talented Cisco Certified professionals. Visit the
> > Employer Resources Portal
> > http://www.cisco.com/web/learning/employer_resources/index.html
> > ___
> > Mingw-w64-public mailing list
> > Mingw-w64-public@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
> >
>
>
> --
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
>
>
> --
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
>
>
> --
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> ___
> Mingw-w64-public mailing list
> Mingw-

Re: [Mingw-w64-public] segfault

2013-04-04 Thread Ahso Aa
Ruben thanks, rebuilt with mingw32 and 64. -32 works fine and in dependency 
walker I only see msvcrt.dll. (no more msvcr80.dll) Should I be fine with that 
to not need redist anymore?
- 64 seems the same and I don't get a segfault for now but it says to need 
zlib1.dll. I have that for 32bit but cannot find it for 64bit. Also the 
instructions in the zlib source seem only 

for win32? Hmmm I never compiled something on windows command line...





 From: Ruben Van Boxem 
To: mingw-w64-public@lists.sourceforge.net 
Sent: Thursday, April 4, 2013 9:15 AM
Subject: Re: [Mingw-w64-public] segfault
 

2013/4/4 Ahso Aa 

Thanks Ruben. Now I see in a dependency dll from curl that it uses msvcr80.dll. 
That's VS2008? Could I most easily resolve that by downloading VC2008 and 
compile my stuff with that 
>
>and /MT flag?
>Or what do you suggest that I should do?

The easiest solution is to install the MSVC++2005 redistributable. This 
dependency means everyone using your program needs this as well.


The "better" solution is to recompile curl with MinGW-w64, or even better, use 
the provided binary packages here: http://curl.haxx.se/download.html (near the 
bottom there's 64-bit MinGW-w64 binaries).


This might not be related to the segfault though...


Ruben

 
Many thanks again
>Michael
>
>
>
>
>
>
>
>
> From: Ruben Van Boxem 
>To: mingw-w64-public@lists.sourceforge.net 
>Sent: Wednesday, April 3, 2013 6:29 PM
>Subject: Re: [Mingw-w64-public] segfault
> 
>
>
>Op 3 apr. 2013 18:21 schreef "Ahso Aa"  het volgende:
>>
>>
>>
>> The MSVC++ DLL's are also ABI incompatible among versions. Even Service 
>> Packs break ABI compatibility.
>>
>> sigh...I'm a happy Linux user but need to support Windows...of course.
>>
>> How to see the toolchain? I remember to have seen (vc build?) in dependency 
>> walker msvcpd80.dll or alike. Would that 
>> cause the segfault? Funny that 32bit mingw works, I'll have a look at that 
>> build in dependency walker tomorrow.
>That's a debug msvc++ dll, remember people without visual studio have no way 
>of getting it and you can't distribute it. Are you using the right GCC dll's 
>in the crashing app's PATH?
>Ruben
>>
>> Michael
>>
>>
>>
>> --
>> Minimize network downtime and maximize team effectiveness.
>> Reduce network management and security costs.Learn how to hire
>> the most talented Cisco Certified professionals. Visit the
>> Employer Resources Portal
>> http://www.cisco.com/web/learning/employer_resources/index.html
>> ___
>> Mingw-w64-public mailing list
>> Mingw-w64-public@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>
>--
>Minimize network downtime and maximize team effectiveness.
>Reduce network management and security costs.Learn how to hire 
>the most talented Cisco Certified professionals. Visit the 
>Employer Resources Portal
>http://www.cisco.com/web/learning/employer_resources/index.html
>___
>Mingw-w64-public mailing list
>Mingw-w64-public@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
>
>--
>Minimize network downtime and maximize team effectiveness.
>Reduce network management and security costs.Learn how to hire
>the most talented Cisco Certified professionals. Visit the
>Employer Resources Portal
>http://www.cisco.com/web/learning/employer_resources/index.html
>___
>Mingw-w64-public mailing list
>Mingw-w64-public@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Regarding mingw_getsp error

2013-04-04 Thread Kai Tietz
Hi,

your issue is that you are trying to use static libraries in foreign
link-environment.  Some symbols, which are present in mingw-w64's
library-set, aren't present in VC.  You see that by that error-messages you
got.

I would suggest that you build instead of static libraries a DLL out of
this, and then generate a VC-compatible import-library for that DLL.  Then
you should be able to use this library without issues.

We disencourage people to try to mix static libraries between VC and gcc.
If you insist to do so, you are on your own.

Regards,
Kai



2013/4/3 sivasubramani 

>  Dear Team,
>
> ** **
>
> I have created libpng using *x86_64-w64-mingw32-gcc  *compiler
> and I created a wrapper static library for that libpng using visual c++
>  for 64 bit windows 7 platform . while I try to run that library I got the
> following error’s
>
> ** **
>
> “error LNK2019: unresolved external symbol mingw_getsp referenced in
> function read_png”
>
> “error LNK2001: unresolved external symbol mingw_getsp”
>
> “error LNK2001: unresolved external symbol mingw_getsp”
>
> “error LNK2019: unresolved external symbol  __strtod referenced in
> function png_handle_sCAL”
>
> ** **
>
> LSpng.lib(pngreadwrite.o) : error LNK2001: unresolved external symbol
> mingw_getsp referenced in function read_png
>
> LSpng.lib(pngread.o) : error LNK2001: unresolved external symbol
> mingw_getsp
>
> LSpng.lib(pngread.o) : error LNK2001: unresolved external symbol
> mingw_getsp
>
> LSpng.lib(pngrutil.o) : error LNK2019: unresolved external symbol
>  __strtod referenced in function png_handle_sCAL
>
> ** **
>
> I did same thing using mingw32 for 32 bit windows machine. It was compiled
> and worked properly
>
> ** **
>
> How can I resolve this problem can anyone help me please.
>
> ** **
>
> ** **
>
> ** **
>
> Thanks & Regards,
>
>  Siva
>
> ** **
>
> This communication may contain confidential information. If you are not
> the intended recipient it may be unlawful for you to read, copy,
> distribute, disclose or otherwise use the information contained within this
> communication.. Errors and Omissions may occur in the contents of this
> Email arising out of or in connection with data transmission, network
> malfunction or failure, machine or software error, malfunction, or operator
> errors by the person who is sending the email. Precision Group accepts no
> responsibility for any such errors or omissions. The information, views and
> comments within this communication are those of the individual and not
> necessarily those of Precision Group. All email that is sent from/to
> Precision Group is scanned for the presence of computer viruses, security
> issues and inappropriate content. However, it is the recipient's
> responsibility to check any attachments for viruses before use.
>
>
> --
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] segfault

2013-04-04 Thread Ruben Van Boxem
2013/4/4 Ahso Aa 

> Thanks Ruben. Now I see in a dependency dll from curl that it uses
> msvcr80.dll. That's VS2008? Could I most easily resolve that by downloading
> VC2008 and compile my stuff with that
> and /MT flag?
> Or what do you suggest that I should do?
>

The easiest solution is to install the MSVC++2005 redistributable. This
dependency means everyone using your program needs this as well.

The "better" solution is to recompile curl with MinGW-w64, or even better,
use the provided binary packages here:
http://curl.haxx.se/download.html(near the bottom there's 64-bit
MinGW-w64 binaries).

This might not be related to the segfault though...

Ruben


> Many thanks again
> Michael
>
>
>
>   --
> *From:* Ruben Van Boxem 
> *To:* mingw-w64-public@lists.sourceforge.net
> *Sent:* Wednesday, April 3, 2013 6:29 PM
> *Subject:* Re: [Mingw-w64-public] segfault
>
> Op 3 apr. 2013 18:21 schreef "Ahso Aa"  het volgende:
> >
> >
> >
> > The MSVC++ DLL's are also ABI incompatible among versions. Even Service
> Packs break ABI compatibility.
> >
> > sigh...I'm a happy Linux user but need to support Windows...of course.
> >
> > How to see the toolchain? I remember to have seen (vc build?) in
> dependency walker msvcpd80.dll or alike. Would that
> > cause the segfault? Funny that 32bit mingw works, I'll have a look at
> that build in dependency walker tomorrow.
> That's a debug msvc++ dll, remember people without visual studio have no
> way of getting it and you can't distribute it. Are you using the right GCC
> dll's in the crashing app's PATH?
> Ruben
> >
> > Michael
> >
> >
> >
> >
> --
> > Minimize network downtime and maximize team effectiveness.
> > Reduce network management and security costs.Learn how to hire
> > the most talented Cisco Certified professionals. Visit the
> > Employer Resources Portal
> > http://www.cisco.com/web/learning/employer_resources/index.html
> > ___
> > Mingw-w64-public mailing list
> > Mingw-w64-public@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
> >
>
>
> --
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
>
>
> --
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public