[MDEV-3735] LP:509535 - MariaDB .debs should link with system libz/libssl/libreadline/libevent, not bundled versions Created: 2010-01-29  Updated: 2015-02-02  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Kristian Nielsen Assignee: Kristian Nielsen
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug509535.xml    

 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/))



 Comments   
Comment by Kristian Nielsen [ 2010-02-01 ]

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

Comment by Sergei Golubchik [ 2010-06-28 ]

Re: MariaDB .debs should link with system libz/libssl/libreadline/libevent, not bundled versions
see also https://bugs.launchpad.net/maria/+bug/587850

Comment by Kristian Nielsen [ 2010-11-23 ]

Re: MariaDB .debs should link with system libz/libssl/libreadline/libevent, not bundled versions
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.

Comment by Kristian Nielsen [ 2011-02-15 ]

Re: MariaDB .debs should link with system libz/libssl/libreadline/libevent, not bundled versions
Fixed in MariaDB 5.2.4 and 5.1.53

Comment by Rasmus Johansson (Inactive) [ 2011-02-15 ]

Launchpad bug id: 509535

Generated at Thu Feb 08 06:50:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.