From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 594C04696C3 for ; Tue, 28 Apr 2020 01:58:53 +0300 (MSK) References: <1587984247.370896242@f138.i.mail.ru> From: Vladislav Shpilevoy Message-ID: Date: Tue, 28 Apr 2020 00:58:51 +0200 MIME-Version: 1.0 In-Reply-To: <1587984247.370896242@f138.i.mail.ru> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v2 0/2] Unhide symbols List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Timur Safin Cc: tarantool-patches@dev.tarantool.org 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).