From c64e672ec9d3432272309e0084b3c690550c15f4 Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov <ivadmi5@gmail.com> Date: Wed, 8 May 2024 02:58:18 +0300 Subject: [PATCH] fix(build): disregard tarantool's bundled openssl By default, tarantool submodule is built and linked against its bundled version of openssl (1.1.1q). This causes issues when we try to link against the host system's shared openssl of a different version (e.g. 3.0): ``` = note: /usr/bin/ld: target/debug/build/tarantool-sys/static/tarantool-prefix/src/tarantool-build/src/lib/crypto/libtcrypto.a(crypto.c.o): in function `crypto_stream_begin': tarantool-sys/src/lib/crypto/crypto.c:154:(.text+0x841): undefined reference to `EVP_CIPHER_key_length' /usr/bin/ld: tarantool-sys/src/lib/crypto/crypto.c:160:(.text+0x852): undefined reference to `EVP_CIPHER_iv_length' ``` Thus, we should pass `-DENABLE_BUNDLED_OPENSSL=OFF` to properly configure tarantool and prevent missing symbols from occurring. --- build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 7acb4f4c03..c86925851a 100644 --- a/build.rs +++ b/build.rs @@ -274,9 +274,10 @@ fn build_tarantool(jsc: Option<&jobserver::Client>, build_root: &Path, use_stati .args(common_args) .args([ "-DENABLE_BUNDLED_LDAP=OFF", - "-DENABLE_BUNDLED_ZSTD=OFF", "-DENABLE_BUNDLED_LIBCURL=OFF", "-DENABLE_BUNDLED_LIBYAML=OFF", + "-DENABLE_BUNDLED_OPENSSL=OFF", + "-DENABLE_BUNDLED_ZSTD=OFF", ]) // for dynamic build we'll also need to install the project, so configure the prefix .arg(format!( -- GitLab