Piotr Caban | 1 Oct 12:07 2014

reusing wine's msvcrt code

Hi,

you can reuse my msvcrt code from The Wine Project under a MIT, BSD or 
ZPL license.

Cheers,
Piotr

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
André Hentschel | 30 Sep 23:40 2014
Picon

[PATCH] mingw-w64-headers: Make ARM assembler Thumb compatible

Please review, i'll commit it, just need an OK.
Attachment (email.diff): text/x-patch, 645 bytes
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Sebastian Wolff | 30 Sep 11:48 2014
Picon

Issue with gs_support.c in MinGW-w64 runtime

Dear list,

I am struggling a little with a recent revision of the MinGW-w64 runtime. I use the latest snapshot from openSuse to install my cross-compiler tool chain. I used Qt4 in the past and want to migrate to Qt5. During this process I experience the following issue:

In my project I link against MSVCR110.DLL and other libs from Microsoft SDKs. For example against RUNTMCHK.LIB from Visual Studio 2012. When linking the executable I get the following error:

runtmchk.lib(f:/dd/vctools/crt_bld/SELF_64_amd64/crt/src/build/amd64/dll_obj/nativec/gs_report.obj):(.text[__report_gsfailure]+0x0): multiple definition of `__report_gsfailure'
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libmingw32.a(lib64_libmingw32_a-gs_support.o):/home/abuild/rpmbuild/BUILD/mingw-w64-crt/crt/gs_support.c:104: first defined here


Seems that MinGW tries to provide some functionality that was used to be provided by runtmchk.lib. I still need this lib, however, since MinGW-w64 only supports a little subset from there. Now my question to you: What steps would you recommend to solve this issue?

What I did here was: I recompiled the MinGW-w64 runtime and removed the function report_gsfailure from the runtime. In this case, however, my executable crashes during initialisation of Qt5 on Windows 7 and in Wine. Hence I guess this was not the optimal solution attempt.

Best regards
Sebastian


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Marat Radchenko | 28 Sep 14:29 2014

[PATCH] _mingw.h.in: drop 'extern' from __forceinline macro

 1. In 6500e4fd, FORCEINLINE in winnt.h was fixed to omit 'extern'
 2. In d66ee5e8, FORCEINLINE was also fixed in ntdef.h

Now, it's time to fix one more definition.

Cause for this change is still the same - 'extern' doesn't play with 'static':
http://sourceforge.net/p/mingw-w64/mailman/message/28323884/
---
 mingw-w64-headers/crt/_mingw.h.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-headers/crt/_mingw.h.in b/mingw-w64-headers/crt/_mingw.h.in
index 2742b11..fc1f9dd 100644
--- a/mingw-w64-headers/crt/_mingw.h.in
+++ b/mingw-w64-headers/crt/_mingw.h.in
 <at>  <at>  -256,7 +256,7  <at>  <at>  typedef int __int128 __attribute__ ((__mode__ (TI)));
 #ifdef __cplusplus
 #define __forceinline inline __attribute__((__always_inline__))
 #else
-#define __forceinline extern __inline__ __attribute__((__always_inline__,__gnu_inline__))
+#define __forceinline __inline__ __attribute__((__always_inline__,__gnu_inline__))
 #endif /* __cplusplus */
 #endif /* __GNUC__ */

--

-- 
2.1.1

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
Marat Radchenko | 28 Sep 13:04 2014

Release with changes from master?

Are there any plans to make a release that includes `master` branch commits?

More specifically, I am interested in b354505e:

Author: Kai Tietz <ktietz70@...>
Date:   Thu Dec 5 10:06:07 2013 +0000

    Add winapi-family feature, added missing Windows 7 + 8 stuff, consolidate header

    
    git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk <at> 6392 4407c894-4637-0410-b4f5-ada5f102cad1

b354505e fixes the fact that MinGW-W64 hides MsgWaitForMultipleObjects behind #ifndef NOGDI [1].

And until this bug is fixed, there are issues compiling git(1) with MinGW-W64.

[1] http://sourceforge.net/p/mingw-w64/bugs/397/

P.S. Please, add me to CC when replying, I'm not subscribed to ML.

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
Vincent Torri | 28 Sep 07:31 2014
Picon

about localtime_r()

hey

in the mingw-w64 version i have (installed by win-builds 1.4),
localtime_r() is guarded by _POSIX (see time.h), so any program that
uses localtime_r has to pass -D_POSIX.

jony mentioned on IRC that, as guards were removed for strtok_r(),
maybe it should also be the case for localtime_r.

also note that http://linux.die.net/man/3/localtime_r gives another
set of guards.

what do you think ?

Vincent Torri

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
Loïc Le Cunff | 28 Sep 03:06 2014
Picon

std::thread and memory leaks

Greetings,

This is an issue that I've had for a while actually as I had it in 
TDM-GCC one year ago.

Now, since TDM-GCC appears to be based on MinGW-w64's winpthread, I 
tried going back to the source hoping for a fix, and so I installed 
MinGW-w64 based on gcc 4.9.1 for x86_64, using posix threads, build 
revision 1.

Basically, it appears there's a memory leak when std::threads are either 
created, joined or destructed, and so a simple testcase like
__________________________________

#include <iostream>
#include <thread>

void tmp_thr(double a) { std::cout<<a<<std::endl; }

int main()
{
     int j;

     for(j=0;j<800000;j++)
     {
         std::thread tEx(tmp_thr,j);
         tEx.join();
     }
}

__________________________________

makes the memory usage (as seen in the task manager) grow until either 
the program ends, or crashes. The leak appears to be fairly small, about 
130 bytes of memory per thread so unless someone spawns millions of them 
(like I do) it won't be felt.

I've been advised on the IRC channel to send this to the mailing list so 
here am I.
Is there something incredibly wrong in this testcase or is there an 
issue with the compiler?

Regards.

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
Jim Michaels | 28 Sep 05:16 2014
Picon

Bash shellshock

just got this from O'reilly.com, it's a security alert.
as you know, MSYS uses BASH and so does cygwin.


-------- Forwarded Message -------- Subject: Date: From: To:
Programming Today: Bash shellshock, Python 3, peer code review + more
Sat, 27 Sep 2014 06:10:26 -0700
O'Reilly Media <oreilly-HpEIymqFz0ygfV3Yru/wKg@public.gmane.org>
jmichae3-/E1597aS9LQAvxtiuMwx3w@public.gmane.org


Programming Newsletter - O'Reilly Media span[class="preheader"] { display: none !important; } <at> media only screen and (max-width:640px) { table[class="fullwidth"] { width: 100% !important; height: auto !important; -webkit-text-size-adjust: none !important; border-width: 0px !important; } img[class="img-news"] { max-width: 90% !important; padding: 0px 0px 0 0 !important; } img[class="img-header"] { max-width: 90% !important; padding: 3px 10px 0 0px !important; } img[class="image"] { max-width: 40% !important; -ms-interpolation-mode: bicubic !important; image-rendering: optimizeQuality !important; } td[class="hidden"], img[class="hidden"], br[class="hidden"] { display: none !important; width: 0px !important; overflow: hidden !important; disabled: disabled !important; } h2[class="head2"], span[class="head2"] { font-size: 24px !important; line-height: 28px !important; color: #7354AE !important; } a { font-weight: bold; text-decoration: none; color: #00e; } }

60 recipes to make your cloud even betterView in browser)

1. Bash shellshock vulnerability

While the world awaits a complete fix, what is known so far is that the vulnerability identified as CVE-2014-6271, aka shellshock, affects the widely used bash shell and has the potential to become a serious threat. If you haven't already, do yourself a favor and go patch your system. We'll be here when you get back, promise.

2. Python 3: threat or menace?

There's a sea change in the move from Python 2 to Python 3. Many popular third-party tools have been ported over from 2 to 3 and there's a concerted effort within the greater Python community to accelerate the move forward. If you find yourself on the fence, you'll want to follow Bill Lubanovic as he details why he chose to go with Python 3 for his new book, Introducing Python: Modern Computing in Simple Packages.

3. Let's get practical

Code reviews are a great way to distinguish yourself as a competent programmer and team player. Not only do they provide a second set of eyes, but they're a great way to share knowledge and encourage thoroughness in others. To get a head start with this common practice, Nat from 4 Short Links points to these Practical Lessons in Peer Code Review.
Sponsored Content

60 recipes to make your cloud even better

Build an effective cloud platform with 60 Recipes for Apache CloudStack, the new ebook covering the entire Apache CloudStack ecosystem. It also includes tools such as Chef, Ansible, and Vagrant; applications like Hadoop; and storage solutions like RiakCS.

If you work with Apache CloudStack, these recipes will empower you to work better and faster, whether you're building a public, private, or hybrid cloud. This ebook is free for a limited time, compliments of Citrix.

Get Your Free Ebook →

4. Look up in the sky, it's a bird, it's a plane

The latest efforts in affordable high-speed connectivity have made considerable progress this week. Astro Teller, head of the Google X lab, recently announced that the ornithologically codenamed Project Loon aims to have a semipermanent ring of balloons deployed somewhere in the Southern Hemisphere within the next year or so. Not to be overshadowed, Facebook recently announced that they will begin testing solar-powered internet-beaming drones in 2015.

5. Git for grown-ups

Do you find that you just don't "git it?" Join Emma Jane Westby for a hands-on introduction to Git in a unique webcast experience where you'll actually sketch–on paper–how version control works, using terms and scenarios that make sense to you. It's also a great session to attend if you want to develop a deeper understanding of why your previous attempts to explain Git to others have failed.

6. tail -f /dev/newsletter

If you were wondering how to log out of your Netflix account on your gigantic Vizio flatscreen TV, you'll find that the process is a little more complicated than expected. Fortunately, the developers at Netflix used a modified version of the classic Konami code easter egg to save you the trouble of signing out of all your devices from your main account. Pop open the Vizio Netflix app, then enter "Up, Up, Down, Down, Left, Right, Left, Right, Up, Up, Up, Up" with the arrow keys on your remote to sign out.

You are receiving this because you're a customer of O'Reilly Media, or you've signed up to receive email from us. We hope you found this message to be useful. However, if you'd rather not receive future emails of this type from O'Reilly, please manage your preferences or unsubscribe here.

Did someone forward this to you? Sign up here.

To ensure delivery to your inbox (not bulk or junk folders), please add oreilly-HpEIymqFz0ygfV3Yru/wKg@public.gmane.org to your address book.

O'Reilly Media, Inc. 1005 Gravenstein Highway North, Sebastopol, CA 95472 (707) 827-7000




------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Jean-Baptiste Kempf | 26 Sep 20:06 2014

[PATCH] winpthread: use GetSystemTimeAsFileTime instead of _ftime

First, _ftime is not present in all msvcrt versions,
then, _ftime is the "current local time".
---
 mingw-w64-libraries/winpthreads/src/misc.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/mingw-w64-libraries/winpthreads/src/misc.c b/mingw-w64-libraries/winpthreads/src/misc.c
index 173c5e1..db650c9 100644
--- a/mingw-w64-libraries/winpthreads/src/misc.c
+++ b/mingw-w64-libraries/winpthreads/src/misc.c
 <at>  <at>  -22,13 +22,15  <at>  <at> 

 #include "pthread.h"
 #include "misc.h"
+#include "windows.h"

 unsigned long long _pthread_time_in_ms(void)
 {
-    struct _timeb tb;
+    FILETIME ft;

-    _ftime(&tb);
-    return (unsigned long long)tb.time * 1000ULL + (unsigned long long) tb.millitm;
+    GetSystemTimeAsFileTime(&ft);
+    return (((unsigned long long)ft.dwHighDateTime << 32) + ft.dwLowDateTime
+            - 0x19DB1DED53E8000ULL) / 10000ULL;
 }

 unsigned long long _pthread_time_in_ms_from_timespec(const struct timespec *ts)
--

-- 
2.1.1

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
Jacek Caban | 26 Sep 12:25 2014

windns.h: Don't use __MINGW_TYPEDEF_AW for DNS_RECORD typedef.

This one is a bit more tricky. See affected code:
http://hg.mozilla.org/mozilla-central/file/9e3d649b80a2/netwerk/dns/GetAddrInfo.cpp#l41

Due to other bug in PSDK, some workarounds are needed. They #undef
UNICODE for just one header. This, however, doesn't work on mingw-w64,
because we use __MINGW_TYPEDEF_AW that is defined earlier. IMHO this
kind of problem is so unusual, that a solution of just not using it in
one affected case is good enough.

---
 mingw-w64-headers/include/windns.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Jacek Caban | 26 Sep 12:19 2014

windns.h: Added some missing defines.

Just a few of them. Please review.

---
 mingw-w64-headers/include/windns.h | 3 +++
 1 file changed, 3 insertions(+)

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Gmane