Extra libtinfo dependency in PS 5.6.10 tarballs

Bug #1153950 reported by Alexey Kopytov on 2013-03-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Critical
Ignacio Nin
5.6
Fix Released
Critical
Ignacio Nin

Bug Description

The 'mysql' binary in Percona-Server-5.6.10-alpha60.2-318.Linux.{i686,x86_64}.tar.gz has an extra dependency on libtinfo.so.5, which is not available on older distributions, such as Ubuntu 10.04, Debian6 or Centos5 (tested on 5.8):

$ ldd Percona-Server-5.6.10-alpha60.2-318.Linux.x86_64/bin/mysql
 linux-vdso.so.1 => (0x00007fffd51fd000)
 libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003b4c200000)
 librt.so.1 => /lib64/librt.so.1 (0x0000003b4ce00000)
 libdl.so.2 => /lib64/libdl.so.2 (0x0000003b4be00000)
 libncurses.so.5 => /usr/lib64/libncurses.so.5 (0x0000003b4e200000)
 libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003b4e600000)
 libm.so.6 => /lib64/libm.so.6 (0x0000003b4c600000)
 libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003b4da00000)
 libc.so.6 => /lib64/libc.so.6 (0x0000003b4ba00000)
 /lib64/ld-linux-x86-64.so.2 (0x0000003b4b600000)
 libtinfo.so.5 => not found

As a result, 5.6.10 binary tarballs are incompatible with older (but still supported distributions):

$ Percona-Server-5.6.10-alpha60.2-318.Linux.x86_64/bin/mysql
Percona-Server-5.6.10-alpha60.2-318.Linux.x86_64/bin/mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

Neither PS 5.5 nor upstream 5.6.10 have that dependency:

$ ldd Percona-Server-5.5.30-rel30.1-465.Linux.x86_64/bin/mysql
 linux-vdso.so.1 => (0x00007fffd4d89000)
 libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003b4c200000)
 libm.so.6 => /lib64/libm.so.6 (0x0000003b4c600000)
 librt.so.1 => /lib64/librt.so.1 (0x0000003b4ce00000)
 libdl.so.2 => /lib64/libdl.so.2 (0x0000003b4be00000)
 libncurses.so.5 => /usr/lib64/libncurses.so.5 (0x0000003b4e200000)
 libc.so.6 => /lib64/libc.so.6 (0x0000003b4ba00000)
 /lib64/ld-linux-x86-64.so.2 (0x0000003b4b600000)

$ Percona-Server-5.5.30-rel30.1-465.Linux.x86_64/bin/mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/mnt/data/mysql/mysqld.sock' (13)

$ ldd mysql-5.6.10-linux-glibc2.5-x86_64/bin/mysql
 linux-vdso.so.1 => (0x00007fff3b44f000)
 libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003b4c200000)
 librt.so.1 => /lib64/librt.so.1 (0x0000003b4ce00000)
 libdl.so.2 => /lib64/libdl.so.2 (0x0000003b4be00000)
 libncurses.so.5 => /usr/lib64/libncurses.so.5 (0x0000003b4e200000)
 libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003b4e600000)
 libm.so.6 => /lib64/libm.so.6 (0x0000003b4c600000)
 libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003b4da00000)
 libc.so.6 => /lib64/libc.so.6 (0x0000003b4ba00000)
 /lib64/ld-linux-x86-64.so.2 (0x0000003b4b600000)

$ mysql-5.6.10-linux-glibc2.5-x86_64/bin/mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/mnt/data/mysql/mysqld.sock' (13)

description: updated
Alexey Kopytov (akopytov) wrote :

See also a similar PXC bug #999492.

Ignacio Nin (ignacio-nin) wrote :

A way to solved this would be to build in an older version of the platform, we will try to build the binary in CentOS 5 -- the current ones are built in CentOS 6.
If this doesn't cut it, we'll have to experiment with compiling statically a number of libraries.

Alexey Kopytov (akopytov) wrote :

Ignacio,

is this bug fixed in 5.6.11?

Ignacio Nin (ignacio-nin) wrote :

Yes, our 5.6.11-60.3 release wasn't linked against libtinfo.

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-352

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers