Skip to content

Pinba 1.2, libpinba_engine.so: undefined symbol: _ZTI7handler [CentOS 6.8 x64] #59

Description

@billionaire

Hello.
After compiling plug-in for MySQL 5.5.54, when i try to add a plug-in MySQL error is output:

# mysql --execute="INSTALL PLUGIN pinba SONAME 'libpinba_engine.so';"
ERROR 1126 (HY000) at line 1: Can't open shared library '/usr/lib64/mysql/plugin/libpinba_engine.so' (errno: 2 /usr/lib64/mysql/plugin/libpinba_engine.so: undefined symbol: _ZTI7handler)

This happens only when compile the latest version (1.2.0) from the repository.
Version 1.1.0 is going correctly.
OS: CentOS 6.8 x64 (3.18.44)

Build script:

yum install https://centos6.iuscommunity.org/ius-release.rpm
yum install mysql55-server Judy protobuf libevent Judy-devel protobuf-devel libevent-devel
mkdir /usr/src/pinba_build/
cd /usr/src/pinba_build/
# wget https://downloads.sourceforge.net/project/judy/judy/Judy-1.0.5/Judy-1.0.5.tar.gz --no-check-certificate
# tar -xzf Judy-1.0.5.tar.gz
mkdir mysql
cd mysql
VISUAL=cat; export VISUAL
MYSQL_OPTIONS=`mysqlbug | grep ': ../configure ' /tmp/failed-mysql-bugreport | sed -e 's/.*configure //'`
yumdownloader --source mysql55-server
rpm2cpio mysql55-5.5.54-1.ius.centos6.src.rpm | cpio -idmv
tar -xzf mysql-5.5.54.tar.gz
cd mysql-5.5.54
cmake ${MYSQL_OPTIONS} .
git clone 'https://github.com/tony2001/pinba_engine' '/usr/src/pinba_build/pinba_engine'
cd /usr/src/pinba_build/pinba_engine
# wget https://github.com/tony2001/pinba_engine/archive/RELEASE_1_1_0.tar.gz
# tar -xzf RELEASE_1_1_0.tar.gz
# cd /usr/src/pinba_build/pinba_engine-RELEASE_1_1_0
./buildconf.sh
autoreconf -vfi
# nano ./configure
rm -rf /usr/lib64/mysql/plugin/libpinba_engine.so
./configure ${MYSQL_OPTIONS} --with-mysql=/usr/src/pinba_build/mysql/mysql-5.5.54 --with-judy=/usr --with-protobuf=/usr --libdir=/usr/lib64/mysql/plugin/
make && make install
mysql --execute="INSTALL PLUGIN pinba SONAME 'libpinba_engine.so';"
mysql --execute="CREATE DATABASE pinba DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci;"
mysql pinba < /usr/share/pinba_engine/default_tables.sql
service mysqld restart

Hopefully this bug will be fixed.
Thank you for your work.
Sincerely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions