Open Rayman opened 2 weeks ago
https://github.com/ros2/rosidl_python/pull/140 changed the build to use FindPython3.cmake for building the python modules. This broke our packages that have -Wl,--no-undefined
.
I'm not 100% sure but reading https://gitlab.kitware.com/cmake/cmake/-/issues/18100 it seems that python modules should not be linked to a python library, but instead use the symbols from the interpreter they are run from. This means the have undefined symbols by definition.
So do we want to:
-Wl,--no-undefined
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
Custom messages will compile with
-Wl,--no-undefined
linker flag.Actual behavior
Additional information
These errors indicate that the generated interfaces are not linked correctly to Python3. The solution would be to adjust the cmake files that the generated python interfaces are correctly linked.
I hope I'm filing this bug in the correct repo. If not, please point me in the right direction.