Web lists-archives.com

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




On 02/29/2016 11:53 AM, Roger Wells wrote:
> On 02/29/2016 11:23 AM, Keith Marshall wrote:
>> 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?
> 
> Oh, I caught that, I was just hoping that "reliable" gave some hope that
> this one might work.
>>
>>>> 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
> 
> I will attempt to fix the pthread.h as you suggest and let you know.
> 
> Thanks for responding.
> Roger Wells

Eliminated the timespec definition in pthread.h.
Works fine now
Thanks again
rkw

> 
>>
>>
>>
>> ------------------------------------------------------------------------------
>> 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!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>>
>>
>>
>> _______________________________________________
>> MinGW-users mailing list
>> MinGW-users@xxxxxxxxxxxxxxxxxxxxx
>>
>> This list observes the Etiquette found at 
>> http://www.mingw.org/Mailing_Lists.
>> 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:
>> https://lists.sourceforge.net/lists/listinfo/mingw-users
>> Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe
>>
> 
> 


-- 
Roger Wells, P.E.
leidos
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger.k.wells@xxxxxxxxxx

------------------------------------------------------------------------------
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!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
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:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe