[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error: conflicting types for 'gettimeofday'
- Date: Thu, 31 Jan 2008 02:51:46 +0100
- From: ralf.corsepius at rtems.org (Ralf Corsepius)
- Subject: error: conflicting types for 'gettimeofday'
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