[MDEV-16200] -DPLUGIN_ROCKSDB=YES leads to errors during build Created: 2018-05-17  Updated: 2018-05-21  Resolved: 2018-05-21

Status: Closed
Project: MariaDB Server
Component/s: Compiling, Storage Engine - RocksDB
Affects Version/s: 10.2, 10.3
Fix Version/s: 10.2.16

Type: Bug Priority: Major
Reporter: Oleksandr Byelkin Assignee: Sergei Petrunia
Resolution: Fixed Votes: 0
Labels: None


 Description   

-DPLUGIN_ROCKSDB=YES lead to an error in attempt to build static engine:

sql/libsql.a(sql_builtin.cc.o):(.data.rel+0x18): undefined reference to `builtin_maria_rocksdb_plugin'
collect2: error: ld returned 1 exit status

Workaround: say nothing about PLUGIN_ROCKSDB to cmake and it will build dynamic.



 Comments   
Comment by Sergei Petrunia [ 2018-05-18 ]

Even if we fix the CMake issue, there will be a problem that MyRocks' MTR commands assume that the plugin is built dynamically (they specify --plugin-load, do INSTALL SONAME, etc).

I think the fix is to disallow building of a static plugin, unless there is a real demand for it.

Generated at Thu Feb 08 08:27:07 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.