i am getting the following name conflicts when building console.c on ubuntu LTS 32bit:
Code: Select all
ChibiOS//os/hal/platforms/Posix/console.c: In function ‘putt’:
ChibiOS//os/hal/platforms/Posix/console.c:77:50: error: declaration of ‘time’ shadows a global declaration [-Werror=shadow]
ChibiOS//os/hal/platforms/Posix/console.c: In function ‘gett’:
ChibiOS//os/hal/platforms/Posix/console.c:86:39: error: declaration of ‘time’ shadows a global declaration [-Werror=shadow]
ChibiOS//os/hal/platforms/Posix/console.c: In function ‘writet’:
ChibiOS//os/hal/platforms/Posix/console.c:93:71: error: declaration of ‘time’ shadows a global declaration [-Werror=shadow]
ChibiOS//os/hal/platforms/Posix/console.c: In function ‘readt’:
ChibiOS//os/hal/platforms/Posix/console.c:103:64: error: declaration of ‘time’ shadows a global declaration [-Werror=shadow]
ChibiOS//os/kernel/src/chvt.c: In function ‘chVTSetI’:
ChibiOS//os/kernel/src/chvt.c:76:44: error: declaration of ‘time’ shadows a global declaration
ChibiOS//os/kernel/src/chschd.c: In function ‘chSchGoSleepTimeoutS’:
ChibiOS//os/kernel/src/chschd.c:189:57: error: declaration of ‘time’ shadows a global declaration
cc1: all warnings being treated as errors
Building on linux mint 15 amd64 doesn't produce this error.
It looks like libc is exporting "time" as a global symbol.
Cheers,
Vinz