MariaDB .debs should link with system libz/libssl/libreadline/libevent, not bundled versions

Bug #509535 reported by Kristian Nielsen
8
This bug affects 1 person
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 => (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/))

Revision history for this message
Kristian Nielsen (knielsen) wrote :

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+).

Revision history for this message
Sergei Golubchik (sergii) wrote :
Changed in maria:
importance: Undecided → High
Michael Widenius (monty)
Changed in maria:
importance: High → Medium
Revision history for this message
Kristian Nielsen (knielsen) wrote :

Fix should be in MariaDB 5.1.52 and 5.2.4.

Note that on Debian 5 lenny and earlier, and on Ubuntu 9.04 jaunty and earlier, system libevent is too old, so on these platforms we still use bundled libevent. On newer releases, system libevent is used.

Changed in maria:
assignee: nobody → Kristian Nielsen (knielsen)
status: New → Fix Committed
Changed in maria:
milestone: none → 5.1
Revision history for this message
Kristian Nielsen (knielsen) wrote :

Fixed in MariaDB 5.2.4 and 5.1.53

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.