From 4b8b96f060ae35632b488fccb79a6f338f5023ea Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Wed, 4 Jun 2025 19:39:02 +0800 Subject: [PATCH] system/uORB: fix orb_subscribe_multi undefined Fix `orb_subscribe_multi` undefined error. /workspace/prebuilts/gcc/linux/arm64/bin/../lib/gcc/aarch64-none-elf/13.2.1/../../../../aarch64-none-elf/bin/ld: apps/system/uorb/libapps_uorb_listener.a(listener.c.o): in function `listener_monitor': /workspace/apps/system/uorb/listener.c:803:(.text.listener_monitor.constprop.0+0xe4): undefined reference to `orb_subscribe_multi' /workspace/apps/system/uorb/listener.c:803:(.text.listener_monitor.constprop.0+0xe4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `orb_subscribe_multi' Signed-off-by: wangjianyu3 --- system/uorb/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/uorb/CMakeLists.txt b/system/uorb/CMakeLists.txt index 18a510feb..030339a51 100644 --- a/system/uorb/CMakeLists.txt +++ b/system/uorb/CMakeLists.txt @@ -32,7 +32,7 @@ if(CONFIG_UORB) file(GLOB_RECURSE CSRCS "sensor/*.c" "uORB/uORB.c") if(CONFIG_UORB_LOOP_MAX_EVENTS) - file(GLOB_RECURSE CSRCS "uORB/loop.c" "uORB/epoll.c") + list(APPEND CSRCS "uORB/loop.c" "uORB/epoll.c") endif() if(CONFIG_UORB_LISTENER)