Skip to content

Commit 712d7c5

Browse files
sim_switch_test: link oancommon for NetworkMapper symbol
Linux ld is strict about undefined references in shared libs; oannetutils' LowLatSocket pulls in NetworkMapper::get_mac_by_uid which lives in oancommon. macOS' -undefined,dynamic_lookup link option hid this until CI tried a real Linux build.
1 parent 4041b39 commit 712d7c5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/sim_switch/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ if(OAN_HOST_BACKENDS)
3030
target_link_libraries(sim_switch_test PRIVATE
3131
GTest::gtest GTest::gtest_main
3232
oannetutils
33+
# oannetutils' LowLatSocket calls NetworkMapper::get_mac_by_uid,
34+
# which lives in oancommon. macOS' -undefined,dynamic_lookup
35+
# link option masks this, but Linux ld is strict.
36+
oancommon
3337
)
3438
# Tests need the daemon binary in PATH; expose its build location.
3539
add_test(NAME sim_switch_smoke COMMAND sim_switch_test)

0 commit comments

Comments
 (0)