[Tarantool-patches] [PATCH v2 0/2] Unhide symbols
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Tue Apr 28 01:58:51 MSK 2020
I managed to find a workaround. I took it from the old
version of the CMake file here:
https://github.com/tarantool/tarantool/commit/6a75d0b0c086dac7c0c46a9d80fcccd2f99958f0
Diff:
====================
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 64f0198db..7a718fde9 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -254,4 +254,11 @@ add_executable(
add_dependencies(tarantool build_bundled_libs sql)
target_link_libraries(tarantool box ${common_libraries})
+if (TARGET_OS_FREEBSD AND NOT TARGET_OS_DEBIAN_FREEBSD)
+ # Without rdynamic FreeBSD does not export some symbols even
+ # when they are used in the final executable and their
+ # addresses are accessed explicitly.
+ set_target_properties(tarantool PROPERTIES LINK_FLAGS "-rdynamic")
+endif()
+
install (TARGETS tarantool DESTINATION bin)
====================
However I don't know why it helped. Tried to install FreeBSD in VirtualBox,
but it just crashed after installation and an attempt to install git.
Now tests pass (after several reruns, because there are many flaky tests).
More information about the Tarantool-patches
mailing list