This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/PROCESSOR-SDK-AM335X: NDK build issue

Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Using new SYS Bios 6.53.0.11 with XDC 3.50.3.33 with NDK 2.25.1.11 leads to definition conflict of timeval. I get following error message when trying to build my project with new SYS Bios. Any ideas how to fix this?

In file included from C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/socket.h:43:0,
                 from C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/stacksys.h:77,
                 from C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/netmain.h:39,
                 from package/cfg/app_pa8fg.c:2675:
C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/socketndk.h:293:8: error: redefinition of 'struct timeval'
 struct timeval {
        ^~~~~~~
In file included from package/cfg/app_pa8fg.c:2356:0:
c:\ti\bios_6_53_00_11\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\reent.h:103:8: note: originally defined here
 struct timeval;
        ^~~~~~~

 


One definition can be found at "c:\ti\bios_6_53_00_11\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\reent.h" which states that the struct "timeval" is not namespace safe.

file extract:

/* FIXME: not namespace clean */
struct stat;
struct tms;
struct timeval;
struct timezone;

 

regards,

David