Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error install plugin on debian 6.03 - Percona 5.5 #1

Closed
kvendi opened this issue Apr 11, 2012 · 5 comments
Closed

error install plugin on debian 6.03 - Percona 5.5 #1

kvendi opened this issue Apr 11, 2012 · 5 comments

Comments

@kvendi
Copy link

kvendi commented Apr 11, 2012

using 1.01 version
root@mysql-slave:/home/pdobryakov/audit# mysql --version
mysql Ver 14.14 Distrib 5.5.21, for Linux (x86_64) using readline 5.1
root@mysql-slave:/home/pdobryakov/audit# uname -a
Linux mysql-slave.test1.alpari-ru.dom 3.2.0-1-amd64 #1 SMP Fri Feb 17 05:17:36 UTC 2012 x86_64 GNU/Linux
root@mysql-slave:/home/pdobryakov/audit# cat /etc/debian_version
6.0.4
mysql> INSTALL PLUGIN AUDIT SONAME 'libaudit_plugin.so';
ERROR 1126 (HY000): Can't open shared library '/usr/lib/mysql/plugin/libaudit_plugin.so' (errno: 2 /usr/lib/mysql/plugin/libaudit_plugin.so: undefined symbol: __cxa_pure_virtual)
ls -la /usr/lib/mysql/plugin

drwxr-xr-x 2 root root 4096 Apr 11 13:24 .
drwxr-xr-x 3 root root 4096 Jan 30 16:30 ..
.......
-rw-r--r-- 1 root root 714858 Mar 15 19:50 libaudit_plugin.so
........

@kvendi
Copy link
Author

kvendi commented Apr 12, 2012

Sorry. This error occurs when you use Percona Server 5.5

@glicht
Copy link
Contributor

glicht commented Apr 12, 2012

Thanks for the info.

I've renamed the issue to indicate that Percona 5.5 is used.

We didn't do any tests with Percona 5.5. It looks like we have some issue with the symbols. From a quick search on the net, it looks like this error happens as a result of compiling the plugin lib with gcc and loading it in a server compiled with g++.

@markdevlin
Copy link

The compiling.txt says to run CXX='gcc -static-libgcc' CC='gcc -static-libgcc' ./configure [...] after bootstrap.sh, if you change that to CXX='g++ -static-libgcc' CC='gcc -static-libgcc' ./configure [...] it will link correctly.

@glicht
Copy link
Contributor

glicht commented Aug 26, 2012

Thanks for the comment. We haven't done any tests with Percona. When we get to testing Percona will try to check if using g++ resolves the issue.

glicht pushed a commit that referenced this issue Oct 22, 2012
… of gcc which doesn't expose __cxa_pure_virtual.

SELinux support: avoid retrictions regarding mprotect modes.
Additional offests upto 5.5.28 and 5.1.66.
@glicht
Copy link
Contributor

glicht commented Oct 22, 2012

Latest commit resolves this issue. Will be included as part of 1.0.3 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants