Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile BSD layer anymore #4

Open
phalox opened this issue May 17, 2017 · 3 comments
Open

Can't compile BSD layer anymore #4

phalox opened this issue May 17, 2017 · 3 comments

Comments

@phalox
Copy link

phalox commented May 17, 2017

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?

@phalox
Copy link
Author

phalox commented May 17, 2017

@frederikvs maybe you have a clue?

@maximevince
Copy link
Contributor

maximevince commented May 17, 2017 via email

@ronnyzhao
Copy link

how to compile picotcp-bsd?
how to use picotcp-bsd?
give a example please!
thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants