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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4b8b96f06 system/uORB: fix orb_subscribe_multi undefined
4b8b96f06 is described below

commit 4b8b96f060ae35632b488fccb79a6f338f5023ea
Author: wangjianyu3 <wangjian...@xiaomi.com>
AuthorDate: Wed Jun 4 19:39:02 2025 +0800

    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 <wangjian...@xiaomi.com>
---
 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)

Reply via email to