[MDEV-27826] Mariabackup is linked against libsql_builtins.so dynamically Created: 2022-02-13  Updated: 2022-02-22  Resolved: 2022-02-22

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.4.24
Fix Version/s: 10.4.25, 10.5.16, 10.6.8, 10.7.4

Type: Bug Priority: Major
Reporter: Hasso Tepper Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None
Environment:

Linux


Issue Links:
Duplicate
duplicates MDEV-27918 Enabling shared libs breaks build on ... Closed
Relates
relates to MDEV-21548 [ERROR] Aria engine is not enabled or... Closed

 Description   

Since 10.4.23 mariabackup binary is linked dynamically against libsql_builtins.so which is not installed and it breaks binary of course. 10.4.22 was OK and it also doesn't happen with 10.3.34 and 10.6.7.

The server is built in all versions with:

cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DINSTALL_LAYOUT=RPM -DCMAKE_C_FLAGS_RELWITHDEBINFO=-DNDEBUG -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr -DCONNECT_WITH_ODBC=1 -DCONNECT_WITH_MYSQL=1 -DUSE_ARIA_FOR_TMP_TABLES=1 -DWITH_EMBEDDED_SERVER=0 -DWITH_MARIABACKUP=1 -DWITH_ARIA_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DWITH_SPHINX_STORAGE_ENGINE=0 -DWITH_CONNECT_STORAGE_ENGINE=0 -DWITH_SEQUENCE_STORAGE_ENGINE=0 -DWITH_BLACKHOLE_STORAGE_ENGINE=0 -DWITH_FEDERATEDX_STORAGE_ENGINE=0 -DWITH_TEST_SQL_DISCOVERY_STORAGE_ENGINE=0 -DWITHOUT_MROONGA_STORAGE_ENGINE=1 -DWITHOUT_TOKUDB_STORAGE_ENGINE=1 -DWITH_INNODB_LZ4=0 -DWITH_INNODB_LZO=0 -DWITH_INNODB_SNAPPY=0 -DPLUGIN_MROONGA=NO -DENABLE_GCOV=0 -DWITH_UNIT_TESTS=OFF -DWITH_LIBWRAP=0 -DWITH_VALGRIND=0 -DWITH_JEMALLOC=system -DWITH_PCRE=system -DWITH_DEBUG=0 -DENABLE_DEBUG_SYNC=0 -DWITH_PIC=ON -DWITH_SAFEMALLOC=OFF



 Comments   
Comment by Sergei Golubchik [ 2022-02-13 ]

I cannot repeat it with 10.4.24 and your cmake command line. I can repeat if I use -DBUILD_SHARED_LIBS=ON, and I'll make the build to not depend on that.

But, basically, just don't specify -DBUILD_SHARED_LIBS=ON and you'll be fine. Use your command line as you've specified in the description, that'll do.

Generated at Thu Feb 08 09:55:53 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.