I've just tried compiling the latest diffutils with the GCCSDK
version 4.1.2 and 4.7 are both the same and it comes up with
the error:
CC gettime.o
In file included from ./sys/time.h:30,
from gettime.c:24:
/home/riscos/cross/lib/gcc/arm-unknown-riscos/4.1.2/../../../../arm-unknown-riscos/include/sys/time.h:75: error: conflicting types for 'rpl_gettimeofday'
./sys/time.h:401: error: previous declaration of 'rpl_gettimeofday' was here
make[2]: *** [gettime.o] Error 1
make[2]: Leaving directory `/home/alanb/build/diffutils/diffutils-3.3/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/alanb/build/diffutils/diffutils-3.3/lib'
make: *** [all-recursive] Error 1
I've tried to untangle what's going on and it seems like <sys/time.h> is
including the local sys/time.h rather than the system one. But I may
be wrong?
Can someone have a look at it and see how to fix it please?
Thanks,
Alan
No comments:
Post a Comment