Open hongdongjian opened 2 years ago
GCC: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
build step: wget https://github.com/mcafee-enterprise/mysql-audit/archive/refs/tags/v1.1.11.tar.gz wget https://downloads.mysql.com/archives/get/p/23/file/mysql-boost-5.7.36.tar.gz tar -zxvf v1.1.11.tar.gz tar -zxvf mysql-boost-5.7.36.tar.gz cp -R mysql-5.7.36 mysql-audit-1.1.11 cd mysql-audit-1.1.11/mysql-5.7.36 cmake . -DWITH_BOOST=./boost/boost_1_59_0/ make -j 24 cd .. chmod +x bootstrap.sh && ./bootstrap.sh CXX='gcc -static-libgcc' CC='gcc -static-libgcc' ./configure --with-mysql=mysql-5.7.36 --with-mysql-libservices=mysql-5.7.36/archive_output_directory/libmysqlservices.a make
run error: 2022-07-14T11:14:18.327058Z 0 [ERROR] Can't open shared library '/usr/local/mysql/lib/plugin/libaudit_plugin.so' (errno: 2 /usr/local/mysql/lib/plugin/libaudit_plugin.so: undefined symbol: _dbenter) 2022-07-14T11:14:18.327072Z 0 [ERROR] Couldn't load plugin named 'AUDIT' with soname 'libaudit_plugin.so'. 2022-07-14T11:14:18.327654Z 0 [Note] InnoDB: Buffer pool(s) load completed at 220714 19:14:18 2022-07-14T11:14:18.331900Z 0 [ERROR] unknown variable 'audit_validate_checksum=OFF' 2022-07-14T11:14:18.331917Z 0 [ERROR] Aborting
It works fine with the official plug,but running my own compilation reports an error
GCC: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
build step: wget https://github.com/mcafee-enterprise/mysql-audit/archive/refs/tags/v1.1.11.tar.gz wget https://downloads.mysql.com/archives/get/p/23/file/mysql-boost-5.7.36.tar.gz tar -zxvf v1.1.11.tar.gz tar -zxvf mysql-boost-5.7.36.tar.gz cp -R mysql-5.7.36 mysql-audit-1.1.11 cd mysql-audit-1.1.11/mysql-5.7.36 cmake . -DWITH_BOOST=./boost/boost_1_59_0/ make -j 24 cd .. chmod +x bootstrap.sh && ./bootstrap.sh CXX='gcc -static-libgcc' CC='gcc -static-libgcc' ./configure --with-mysql=mysql-5.7.36 --with-mysql-libservices=mysql-5.7.36/archive_output_directory/libmysqlservices.a make
run error: 2022-07-14T11:14:18.327058Z 0 [ERROR] Can't open shared library '/usr/local/mysql/lib/plugin/libaudit_plugin.so' (errno: 2 /usr/local/mysql/lib/plugin/libaudit_plugin.so: undefined symbol: _dbenter) 2022-07-14T11:14:18.327072Z 0 [ERROR] Couldn't load plugin named 'AUDIT' with soname 'libaudit_plugin.so'. 2022-07-14T11:14:18.327654Z 0 [Note] InnoDB: Buffer pool(s) load completed at 220714 19:14:18 2022-07-14T11:14:18.331900Z 0 [ERROR] unknown variable 'audit_validate_checksum=OFF' 2022-07-14T11:14:18.331917Z 0 [ERROR] Aborting
It works fine with the official plug,but running my own compilation reports an error