MariaDB .debs should link with system libz/libssl/libreadline/libevent, not bundled versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Medium
|
Kristian Nielsen | ||
OurDelta |
New
|
Undecided
|
Unassigned |
Bug 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 => (0x00007ffff43f
libnsl.so.1 => /lib/libnsl.so.1 (0x00007ffeeb59
libpthread.so.0 => /lib/libpthread
libwrap.so.0 => /lib/libwrap.so.0 (0x00007ffeeb17
libdl.so.2 => /lib/libdl.so.2 (0x00007ffeeaf7
librt.so.1 => /lib/librt.so.1 (0x00007ffeead6
libresolv.so.2 => /lib/libresolv.so.2 (0x00007ffeeab5
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007ffeea91
libm.so.6 => /lib/libm.so.6 (0x00007ffeea69
libc.so.6 => /lib/libc.so.6 (0x00007ffeea33
/lib64/
knielsen@odin:~$ ldd /usr/bin/mysql
linux-vdso.so.1 => (0x00007fff2fdf
libncurses.so.5 => /lib/libncurses
libpthread.so.0 => /lib/libpthread
libmysqlclient
libnsl.so.1 => /lib/libnsl.so.1 (0x00007ff326f1
librt.so.1 => /lib/librt.so.1 (0x00007ff326d1
libresolv.so.2 => /lib/libresolv.so.2 (0x00007ff326af
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007ff3268c
libm.so.6 => /lib/libm.so.6 (0x00007ff32664
libc.so.6 => /lib/libc.so.6 (0x00007ff3262e
libdl.so.2 => /lib/libdl.so.2 (0x00007ff3260d
/lib64/
knielsen@odin:~$ /usr/sbin/mysqld --version
/usr/sbin/mysqld Ver 5.1.39-
Changed in maria: | |
importance: | High → Medium |
Changed in maria: | |
milestone: | none → 5.1 |
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+).