You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to compile (for ARM) the BSD layer (through TCD, but also through the makefile in the repo), I bumped into a couple of issues:
in pico_bsd_syscalls.h:
#if defined (__socklen_t_defined) && defined (REPLACE_STDCALLS)
was never triggered which caused issues.
I get a couple of multiple defines, which I can't seem to fix:
In file included from pico_bsd_sockets.h:328:0,
from pico_bsd_sockets.c:12:
pico_bsd_syscalls.h:275:23: error: static declaration of 'select' follows non-static declaration
static inline int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
^
In file included from /usr/local/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi/include/sys/types.h:68:0,
from /usr/local/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi/include/sys/signal.h:12,
from /usr/local/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi/include/signal.h:6,
from pico_bsd_sockets.h:13,
from pico_bsd_sockets.c:12:
/usr/local/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi/include/sys/select.h:73:5: note: previous declaration of 'select' was here
int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
Any clue what's going on? Do I need to set some specific linker flag?
The text was updated successfully, but these errors were encountered:
Probably some header that includes the "normal" POSIX select() definition
was already included.
They are now clashing.
Op wo 17 mei 2017 om 10:23 schreef Toon Peters <[email protected]>:
When trying to compile (for ARM) the BSD layer (through TCD, but also through the makefile in the repo), I bumped into a couple of issues:
in pico_bsd_syscalls.h:
#if defined (__socklen_t_defined) && defined (REPLACE_STDCALLS)
was never triggered which caused issues.
I get a couple of multiple defines, which I can't seem to fix:
In file included from pico_bsd_sockets.h:328:0,
from pico_bsd_sockets.c:12:
pico_bsd_syscalls.h:275:23: error: static declaration of 'select' follows non-static declaration
static inline int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
^
In file included from /usr/local/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi/include/sys/types.h:68:0,
from /usr/local/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi/include/sys/signal.h:12,
from /usr/local/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi/include/signal.h:6,
from pico_bsd_sockets.h:13,
from pico_bsd_sockets.c:12:
/usr/local/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi/include/sys/select.h:73:5: note: previous declaration of 'select' was here
int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
Any clue what's going on? Do I need to set some specific linker flag?
The text was updated successfully, but these errors were encountered: