[BUG] stdlib.h: system
prototype
#15721
Labels
Arch: all
Issues that apply to all architectures
Area: Kernel
Kernel issues
OS: Linux
Issues related to Linux (building system, etc)
Type: Bug
Something isn't working
Description / Steps to reproduce the issue
The Error
While trying to build Python with
system
function during thepass2dep
phase, it triggers the following warning (that may be treated as an error):Although the source includes
stdlib.h
, it fails because__KERNEL__
is defined and, thus, thesystem
prototype is not defined.Why?
There is a "trap" here:
__KERNEL__
(with$(KDEFINE)
) is defined in the following snippet:$(KERNDEPDIRS)
includes the$(APPDIR)
folder here for flat build:Proposed Fixes
We should either 1) remove
$(APPDIR)
from$(KERNDEPDIRS)
(adding it to$(USERDEPDIRS)
for both PROTECTED and FLAT BUILD or 2) define the prototype atnuttx/include/stdlib.h
with the following if clause (which particularly I prefer):Any thoughts about it?
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Manjaro
NuttX Version
master
Issue Architecture
[Arch: all]
Issue Area
[Area: Kernel]
Host information
No response
Verification
The text was updated successfully, but these errors were encountered: