Percona Server with XtraDB

Fix shared-compat linking

Reported by Raghavendra D Prabhu on 2013-07-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server
Status tracked in 5.6
5.5
High
Ignacio Nin
5.6
Undecided
Unassigned
Percona XtraDB Cluster
Undecided
Raghavendra D Prabhu

Bug Description

Tags: pkg Edit Tag help
Changed in percona-xtradb-cluster:
milestone: none → 5.5.32-23.7.6
assignee: nobody → Raghavendra D Prabhu (raghavendra-prabhu)
Changed in percona-xtradb-cluster:
status: New → Triaged
status: Triaged → Fix Committed

Added Percona Server here due to comment here: https://bugs.launchpad.net/percona-server/+bug/1169505/comments/44 (and the one before this).

This is what we have for 5.5:

[openxs@centos ~]$ rpm -q -l Percona-Server-shared-compat-5.5.32-rel31.0.549.rhel6.x86_64
/usr/lib64/libmysqlclient.so.12
/usr/lib64/libmysqlclient.so.12.0.0
/usr/lib64/libmysqlclient.so.14
/usr/lib64/libmysqlclient.so.14.0.0
/usr/lib64/libmysqlclient.so.15
/usr/lib64/libmysqlclient.so.15.0.0
/usr/lib64/libmysqlclient.so.16
/usr/lib64/libmysqlclient.so.16.0.0
/usr/lib64/libmysqlclient_r.so.12
/usr/lib64/libmysqlclient_r.so.12.0.0
/usr/lib64/libmysqlclient_r.so.14
/usr/lib64/libmysqlclient_r.so.14.0.0
/usr/lib64/libmysqlclient_r.so.15
/usr/lib64/libmysqlclient_r.so.15.0.0
/usr/lib64/libmysqlclient_r.so.16
/usr/lib64/libmysqlclient_r.so.16.0.0
[openxs@centos ~]$ ldd /usr/lib64/libmysqlclient.so.16 linux-vdso.so.1 => (0x00007fff5c7ff000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fb8a6063000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fb8a5e4a000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fb8a5bc6000)
        libz.so.1 => /lib64/libz.so.1 (0x00007fb8a59b0000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fb8a57a8000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fb8a5414000)
        libfreebl3.so => /lib64/libfreebl3.so (0x00007fb8a51b2000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb8a4f95000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fb8a660d000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fb8a4d90000)

Does not apply to 5.6 at the moment it seems:

[root@centos openxs]# yum -y install Percona-Server-shared-compat-56 Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: ftp.tlk-l.net
 * epel: ftp.tlk-l.net
 * extras: ftp.tlk-l.net
 * rpmforge: ftp.colocall.net
 * updates: ftp.tlk-l.net
Setting up Install Process
No package Percona-Server-shared-compat-56 available.
Error: Nothing to do

tags: added: pkg
Ignacio Nin (ignacio-nin) wrote :

I've submitted a simple fix for this, which is using libmysqlclient.so.16 from PS 5.1.70 in the shared-compat package. This had been suggested in the discussions.

I've posted fixed PS-shared-compat packages to http://www.percona.com/downloads/TESTING/Percona-Server-55/Percona-Server-5.5.32-rel31.0/release-5.5.32-31.0/551/RPM/ and also in our experimental repos, it can be tested from there. The ldd output is:

# ldd /usr/lib64/libmysqlclient_r.so.16
linux-vdso.so.1 => (0x00007fffb42c4000)
librt.so.1 => /lib64/librt.so.1 (0x00007f3ac9c2a000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3ac9a0d000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f3ac97d6000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f3ac95bd000)
libm.so.6 => /lib64/libm.so.6 (0x00007f3ac9339000)
libz.so.1 => /lib64/libz.so.1 (0x00007f3ac9122000)
libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007f3ac8ec5000)
libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007f3ac8b2b000)
libc.so.6 => /lib64/libc.so.6 (0x00007f3ac8797000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3aca1b1000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007f3ac8535000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f3ac82f1000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f3ac800a000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f3ac7e06000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f3ac7bda000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f3ac79d5000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f3ac77ca000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f3ac75c7000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f3ac73ac000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f3ac718d000)

From #3, regarding shared-compat for PS 5.6, it doesn't exist for
5.6. I guess this means Percona-Server-shared-compat (from 5.5) needs to be
used for 5.6 as well. There is a MySQL-shared-compat-5.6.12-2.linux_glibc2.5.x86_64.rpm in upstream repo, however, it seems to have libmysqlclient.so.{12,13,14,15,16}, which indicates they are same as the ones in 5.5 shared-compat rpm.

For #5,

The 5.6 shared-compat issue is being handled here https://bugs.launchpad.net/percona-server/+bug/1199534

Changed in percona-xtradb-cluster:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers