Web lists-archives.com

Re: [Mingw-users] GCC-4.9.3 is now our current release

On 29/02/16 15:22, Roger Wells wrote:
> Do you use pthreads?  Even this fails to compile (tstest.c):

Perhaps you didn't read the announcement carefully enough?

>> It is NOT OpenMP enabled, (because I have not been able to create a
>> _reliable_ build of POSIX threads support, to accompany it), ...

Note, in particular, the explanation in parentheses.

> $ gcc -c tstest.c
> In file included from tstest.c:1:0:
> c:\mingw\include\pthread.h:320:8: error: redefinition of 'struct timespec'
>  struct timespec {
>         ^
> In file included from c:\mingw\include\time.h:53:0,

This is a bug in pthreads-win32, about which I have recently engaged in
a continuing discussion with Ross Johnston, (the pthreads-win32, a.k.a
pthreads4W, maintainer).  See, since mingwrt-3.21, MinGW _has_ provided
a definition of struct timespec, but pthreads-win32 continues to
gratuitously assume that it does not.  You need to fix your pthread.h,
to correct that bogus assumption.  Indeed, it's just plain wrong for
pthread.h to define this structure anyway; POSIX says it should be
defined in sched.h, (which is also part of the pthreads-win32 package),
to match the definition provided in time.h


Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

Attachment: signature.asc
Description: OpenPGP digital signature

Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe