[BUG] Implicit definiton of accept4 function when building simulator on Arch Linux #2632
Open
1 task done
Labels
Arch: simulator
Area: Applications
Area: Build System
Area: Configuring
Area: Networking
OS: Linux
Type: Bug
Something isn't working
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 raninto 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 thatI 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
The text was updated successfully, but these errors were encountered: