[MDEV-9106] Audit plugin compiled with MariaDB can't install on MySQL 5.7 Created: 2015-11-09  Updated: 2016-02-02  Resolved: 2016-01-12

Status: Closed
Project: MariaDB Server
Component/s: Plugin - Audit
Affects Version/s: N/A
Fix Version/s: 5.5.48

Type: Bug Priority: Major
Reporter: Alexey Botchkov Assignee: Alexey Botchkov
Resolution: Fixed Votes: 1
Labels: None

Issue Links:
Relates
relates to MDEV-9499 SERVER_AUDIT compatible with MySQL 5.7? Closed
Sprint: 10.1.9-3, 10.1.10, 10.2.0-2, 10.2.0-3

 Description   

Initial report was:

The mysys library changed in MySQL 5.7, and as a result audit-plugin cannot find some symbols.

mysql> install plugin server_audit soname 'server_audit.so';
ERROR 1126 (HY000): Can't open shared library '/home/hf/mysql57/lib/plugin/server_audit.so' (errno: 2 /home/hf/mysql57/lib/plugin/server_audit.so: undefined symbol: _my_thread_var)

that was fixed, but the bigger problem is that API was radically changed in MySQL 5.7 so the plugin built on MariaDB cannot load there.
We need to decide something on it.



 Comments   
Comment by Alexey Botchkov [ 2015-11-16 ]

The issue with the _my_thread_var is fixed, but doesn't solve the problem. The
API was radically changed in mysql-5.7 so the plugin compiled with MariaDB just
can't be loaded there. And the plugin API didn't actually expect the older version of API can be loaded on the newer so it's not a but per se.
Though i guess we need to decide something about it.

Comment by udara [ 2015-11-20 ]

HI

I also encounter with this error ,once I install maria db plugin to 5.7.9-log community server. It didn't successful even I tired to install earlier version of audit plugin(server_audit-1.1.9).

Thanks

Comment by Alexey Botchkov [ 2016-01-12 ]

Resulting patch http://lists.askmonty.org/pipermail/commits/2016-January/008822.html.

Comment by Ian Gilfillan [ 2016-02-02 ]

Please clarify which 10.0 and 10.1 releases the fix applies to.

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