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

MySQL 8.0.33: undefined symbol: my_charset_utf8_general_ci #261

Open
tapochkin opened this issue Jul 6, 2023 · 8 comments
Open

MySQL 8.0.33: undefined symbol: my_charset_utf8_general_ci #261

tapochkin opened this issue Jul 6, 2023 · 8 comments

Comments

@tapochkin
Copy link

Greetings. I'm getting the following error trying to install libaudit_plugin.so. Any ideas what to do?

2023-07-06T08:59:59.694768Z 0 [ERROR] [MY-010901] [Server] Can't open shared library '/usr/lib64/mysql/plugin/libaudit_plugin.so' (errno: 0 /usr/lib64/mysql/plugin/libaudit_plugin.so: undefined symbol: my_charset_utf8_general_ci).
2023-07-06T08:59:59.694855Z 0 [ERROR] [MY-010736] [Server] Couldn't load plugin named 'AUDIT' with soname 'libaudit_plugin.so'.

OS distribution and version:

cat /etc/os-release
NAME="AlmaLinux"
VERSION="8.8 (Sapphire Caracal)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.8 (Sapphire Caracal)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"

ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.8"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"

MySQL version:

yum list installed | grep mysql
mysql-community-client.x86_64               8.0.33-1.el7                                 @mysql80-community
mysql-community-client-plugins.x86_64       8.0.33-1.el7                                 @mysql80-community
mysql-community-common.x86_64               8.0.33-1.el7                                 @mysql80-community
mysql-community-icu-data-files.x86_64       8.0.33-1.el7                                 @mysql80-community
mysql-community-libs.x86_64                 8.0.33-1.el7                                 @mysql80-community
mysql-community-server.x86_64               8.0.33-1.el7                                 @mysql80-community
mysql80-community-release.noarch            el7-7                                        @mysql80-community

Tested plugin versions (MariaDB and 5.7 versions return different errors):

audit-plugin-mariadb-10.5.4-1.1.13-1008-linux-x86_64.zip
audit-plugin-mysql-5.7-1.1.12-999-linux-x86_64.zip
audit-plugin-mysql-8.0-1.1.11-985-linux-x86_64.zip
audit-plugin-mysql-8.0-1.1.12-999-linux-x86_64.zip
audit-plugin-mysql-8.0-1.1.13-1008-linux-x86_64.zip
@sekarcinfosec
Copy link

@tapochkin You found fix for this ?

@tapochkin
Copy link
Author

Unfortunately, no. Personally I have some time before I really need audit module to work. In case I come up with solution, I post it here.

@andrei1058
Copy link

Unfortunately, no. Personally I have some time before I really need audit module to work. In case I come up with solution, I post it here.

up

@zhangguangrui1991
Copy link

The same issue also appeared in MySQL version 8.0.34.

@kubo
Copy link
Contributor

kubo commented Sep 19, 2023

my_charset_utf8_general_ci was renamed to my_charset_utf8mb3_general_ci by mysql/mysql-server@83f688b, which affects MySQL 8.0.31 or later.
my_charset_utf8_bin referred by src/audit_handler.cc was also renamed.

yoku0825 added a commit to yoku0825/mysql-audit that referenced this issue Nov 10, 2023
@WKupper
Copy link

WKupper commented Jan 16, 2024

It is really critical that a new version get built utilizing this fix. Plugin is currently unusable for MySQL 8.0

@zhaopinglu
Copy link

zhaopinglu commented Jan 20, 2024

@djkerya
Copy link

djkerya commented Jan 30, 2024

I had a kind of script for building with 8.0.36 tested on Rocky 8.9

took @zhaopinglu note as the base

https://techblog.kerya.net/74-mysql-audit-plugin-build-script

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

8 participants