mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
d8751d283c
The reason for the failure is that the loaded library has the same exported symbols as the builtin one. So the plugin uses innodb functions e.g srv_boot from mysqld rather than plugin's own. This causes the crash. On Unix systems with gcc4 later this error was so far worked around using GCC's visibility attribute. However, in our case, we're using gcc3. See related MySQL bug http://bugs.mysql.com/bug.php?id=48524 and http://bugs.mysql.com/bug.php?id=52263 The fix is to restrict symbol visibility in the plugin using version script (called map file on Solaris).
11 lines
186 B
Text
11 lines
186 B
Text
{
|
|
global:
|
|
_mysql_plugin_interface_version_;
|
|
_mysql_sizeof_struct_st_plugin_;
|
|
_mysql_plugin_declarations_;
|
|
thd_wait_service;
|
|
my_snprintf_service;
|
|
thd_alloc_service;
|
|
local:
|
|
*;
|
|
};
|