Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Arkadiusz MiĆkiewicz discovered that our .debs are linked statically with bundled libz, libssl, libevent, and libreadline.
We should fix this to use the system libraries from the distro.
For libevent, there is a related bug #509521 that this cannot even be specified on ./configure so would need fix for this or small patch included in bug.
knielsen@odin:~$ ldd /usr/sbin/mysqld
linux-vdso.so.1 => (0x00007ffff43fe000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00007ffeeb59f000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007ffeeb383000)
libwrap.so.0 => /lib/libwrap.so.0 (0x00007ffeeb17a000)
libdl.so.2 => /lib/libdl.so.2 (0x00007ffeeaf76000)
librt.so.1 => /lib/librt.so.1 (0x00007ffeead6d000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00007ffeeab57000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007ffeea91f000)
libm.so.6 => /lib/libm.so.6 (0x00007ffeea69e000)
libc.so.6 => /lib/libc.so.6 (0x00007ffeea33c000)
/lib64/ld-linux-x86-64.so.2 (0x00007ffeeb7b8000)
knielsen@odin:~$ ldd /usr/bin/mysql
linux-vdso.so.1 => (0x00007fff2fdff000)
libncurses.so.5 => /lib/libncurses.so.5 (0x00007ff32777c000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff327560000)
libmysqlclient.so.16 => /usr/lib/libmysqlclient.so.16 (0x00007ff327133000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00007ff326f1a000)
librt.so.1 => /lib/librt.so.1 (0x00007ff326d11000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00007ff326afb000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007ff3268c3000)
libm.so.6 => /lib/libm.so.6 (0x00007ff326642000)
libc.so.6 => /lib/libc.so.6 (0x00007ff3262e0000)
libdl.so.2 => /lib/libdl.so.2 (0x00007ff3260dc000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff3279b7000)
knielsen@odin:~$ /usr/sbin/mysqld --version
/usr/sbin/mysqld Ver 5.1.39-maria-beta-ourdelta67-log for debian-linux-gnu on x86_64 ((OurDelta - http://ourdelta.org/))
Re: MariaDB .debs should link with system libz/libssl/libreadline/libevent, not bundled versions
For libevent, it turns out that MariaDB needs libevent 1.4 to work. But Debian 4+5 and Ubuntu <= 9.04 have only 1.3.
So for .deb on older distros, it seems we have to use bundled libevent (./configure will do this automatically in MariaDB 5.1.43+).