This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 9503d576343 posix_test: fix the ltp project link error
9503d576343 is described below

commit 9503d57634396497162c66d8a26c4783bb5da170
Author: guoshichao <[email protected]>
AuthorDate: Mon Jul 14 14:45:54 2025 +0800

    posix_test: fix the ltp project link error
    
    Add CONFIG_NET, CONFIG_NET_SOCKOPTS, and CONFIG_SYSTEM_SYSTEM to
    posix_test configuration to provide the network socket options and
    NXsystem() API required by LTP testcases, resolving undefined
    reference errors during linking.
    
    the following are the detailed link error:
    ```
    
/home/testing/apps/testing/ltp/ltp/testcases/kernel/device-drivers/zram/zram03.c:175:
 undefined reference to `NXsystem'
    /usr/bin/ld: nuttx.rel: in function `setup':
    
/home/testing/apps/testing/ltp/ltp/testcases/kernel/device-drivers/zram/zram03.c:158:
 undefined reference to `NXsystem'
    /usr/bin/ld: nuttx.rel: in function `setup':
    
/home/testing/apps/testing/ltp/ltp/testcases/kernel/syscalls/sendmsg/sendmsg01.c:554:
 undefined reference to `NXsystem'
    /usr/bin/ld: 
/home/testing/apps/testing/ltp/ltp/testcases/kernel/syscalls/sendmsg/sendmsg01.c:556:
 undefined reference to `NXsystem'
    /usr/bin/ld: nuttx.rel: in function `ltp_fs_inode_inode01_main':
    
    /home/testing/apps/testing/ltp/ltp/ltp/lib/safe_net.c:511: undefined 
reference to `NXsetsocket'
    /usr/bin/ld: nuttx.rel: in function `safe_getsockopt':
    ```
    
    Signed-off-by: guoshichao <[email protected]>
---
 boards/sim/sim/sim/configs/posix_test/defconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/boards/sim/sim/sim/configs/posix_test/defconfig 
b/boards/sim/sim/sim/configs/posix_test/defconfig
index c9a79c18664..4e936955c26 100644
--- a/boards/sim/sim/sim/configs/posix_test/defconfig
+++ b/boards/sim/sim/sim/configs/posix_test/defconfig
@@ -59,6 +59,8 @@ CONFIG_LIBC_NUMBERED_ARGS=y
 CONFIG_LIBC_PASSWD_FILE=y
 CONFIG_MQ_MAXMSGSIZE=64
 CONFIG_NDEBUG=y
+CONFIG_NET=y
+CONFIG_NET_SOCKOPTS=y
 CONFIG_NSH_ARCHINIT=y
 CONFIG_NSH_BUILTIN_APPS=y
 CONFIG_NSH_FILE_APPS=y
@@ -81,7 +83,6 @@ CONFIG_SCHED_LPNTHREADS=1
 CONFIG_SCHED_LPWORK=y
 CONFIG_SCHED_SPORADIC=y
 CONFIG_SCHED_USER_IDENTITY=y
-CONFIG_SCHED_WAITPID=y
 CONFIG_SIG_DEFAULT=y
 CONFIG_SIG_EVTHREAD=y
 CONFIG_SIM_HOSTFS=y
@@ -91,6 +92,7 @@ CONFIG_START_MONTH=6
 CONFIG_START_YEAR=2008
 CONFIG_SYSTEM_DUMPSTACK=y
 CONFIG_SYSTEM_NSH=y
+CONFIG_SYSTEM_SYSTEM=y
 CONFIG_TESTING_LTP=y
 CONFIG_TLS_NCLEANUP=4
 CONFIG_TLS_NELEM=16

Reply via email to