error: conflicting types for 'gettimeofday'
Joel Sherrill
joel.sherrill at OARcorp.com
Fri Feb 1 17:11:01 UTC 2008
João Craveiro wrote:
> Thank you. That tarball would be welcome, too (the project in which I am
> using RTEMS could well use that kind of way to guarantee that everyone
> involved has the same code), so thanks for that too.
>
I've had some family issues that have kept me from
cutting a release but 4.8.0 is high on my todo list.
--joel
>
> João Craveiro
>
>
>
>
> Ralf Corsepius wrote:
>
>> On Wed, 2008-01-30 at 18:32 +0000, João Craveiro wrote:
>>
>>
>>> Hi there,
>>>
>>> I am trying to build RTEMS 4.7.99.2 both on Fedora 6 and Fedora 8 boxes
>>> (following the instructions in
>>> http://www.rtems.com/wiki/index.php/Quick_Start), and I get the same
>>> error as stated here:
>>>
>>> http://www.rtems.com/ml/rtems-users/2008/january/msg00017.html
>>>
>>>
>>> ../../../../../../rtems-4.7.99.2/c/src/../../cpukit/libcsupport/src/__gettod.c:40:
>>> error: conflicting types for 'gettimeofday'
>>>
>>> /opt/rtems-4.8/lib/gcc/sparc-rtems4.8/4.2.2/../../../../sparc-rtems4.8/include/sys/time.h:73:
>>> error: previous declaration of 'gettimeofday' was here
>>>
>>> The tools installed are the latest RPMs from the Yum repository.
>>>
>>> Any hints? Thanks in advance,
>>>
>>>
>> Update your RTEMS sources (e.g. from rtems-4-8-branch in RTEMS CVS).
>>
>> The declaration of gettimeofday() in sys/time.h had been changed to
>> comply with POSIX, but your version of RTEMS still contains the old
>> (non-POSIX compliant) version of it.
>>
>> @Joel: Do we have a snapshot tarball from rtems-4-8-branch, which has
>> these changes inside? I don't think so.
>>
>> Ralf
>>
>>
>>
>>
>>
>>
>>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list