Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Timur Safin <tsafin@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH v2 0/2] Unhide symbols
Date: Tue, 28 Apr 2020 00:58:51 +0200	[thread overview]
Message-ID: <f4820a85-9b78-63fd-c400-a8876e126a85@tarantool.org> (raw)
In-Reply-To: <1587984247.370896242@f138.i.mail.ru>

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).

  parent reply	other threads:[~2020-04-27 22:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-17 23:48 Vladislav Shpilevoy
2020-04-17 23:48 ` [Tarantool-patches] [PATCH v2 1/2] cmake: remove double usage of some source files Vladislav Shpilevoy
2020-04-18  9:22   ` Timur Safin
2020-04-18 16:51     ` Vladislav Shpilevoy
2020-04-17 23:48 ` [Tarantool-patches] [PATCH v2 2/2] cmake: remove dynamic-list linker option Vladislav Shpilevoy
2020-04-18 12:39   ` Timur Safin
2020-04-18 16:51     ` Vladislav Shpilevoy
2020-04-18 22:07       ` Timur Safin
2020-04-22 22:08 ` [Tarantool-patches] [PATCH v2 0/2] Unhide symbols Vladislav Shpilevoy
2020-04-22 23:27   ` Timur Safin
2020-04-24  7:47     ` Kirill Yukhin
2020-04-27 10:44 ` Timur Safin
2020-04-27 21:38   ` Vladislav Shpilevoy
2020-04-27 22:58   ` Vladislav Shpilevoy [this message]
2020-05-18 21:32 ` Vladislav Shpilevoy
2020-05-19  9:02 ` Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f4820a85-9b78-63fd-c400-a8876e126a85@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --cc=tsafin@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v2 0/2] Unhide symbols' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox