Closed linguini1 closed 1 month ago
Thanks @linguini1 yes this problem was introduced recently by https://github.com/apache/nuttx-apps/pull/2595 we are looking for a solution should show up soon :-)
Thanks @linguini1 yes this problem was introduced recently by https://github.com/apache/nuttx-apps/pull/2595 we are looking for a solution should show up soon :-)
Ah, I missed seeing that! Would it be preferable for me to open a PR to add this new define, or shall I leave the solution to the original author?
Lets wait for the original change author to reply.. accept4
is a non-standard extension that increases security.. we already noticed problems on macOS that does not have that call implemented.. no clue how _GNU_SOURCE
will impact other compilers / compatibility avalanche.. but your hint may be right the solution!! :-)
we can call accept4 on nuttx, but call accept on host.
Description / Steps to reproduce the issue
I was attempting to build the Simulator with the
tcpblaster
configuration to test out some NuttX networking, but I ran into an implicit function definition error:Looking at the manpages for
accept4
, it seems to require that_GNU_SOURCE
be defined before the header is included. I added-D_GNU_SOURCE
to this line of the TCP blaster example, and it fixed the build issue on my machine. Others that I am working with were able to build the example without any issues on Ubuntu, so I wanted to check and see if I am perhaps taking the wrong approach before I open a PR to permanently add that change to the example.I followed the first three steps listed in the simulator docs here.
On which OS does this issue occur?
[Linux]
What is the version of your OS?
Linux 6.10.10-arch1-1 x86_64 GNU/Linux
NuttX Version
master
Issue Architecture
[simulator]
Issue Area
[Applications], [Build System], [Configuring], [Networking]
Verification