Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3735

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

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

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            knielsen Kristian Nielsen added a comment -

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

            Show
            knielsen Kristian Nielsen added a comment - 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+).
            Hide
            serg Sergei Golubchik added a comment -

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

            Show
            serg Sergei Golubchik added a comment - Re: MariaDB .debs should link with system libz/libssl/libreadline/libevent, not bundled versions see also https://bugs.launchpad.net/maria/+bug/587850
            Hide
            knielsen Kristian Nielsen added a comment -

            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.

            Show
            knielsen Kristian Nielsen added a comment - 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.
            Hide
            knielsen Kristian Nielsen added a comment -

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

            Show
            knielsen Kristian Nielsen added a comment - Re: MariaDB .debs should link with system libz/libssl/libreadline/libevent, not bundled versions Fixed in MariaDB 5.2.4 and 5.1.53
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 509535

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 509535

              People

              • Assignee:
                knielsen Kristian Nielsen
                Reporter:
                knielsen Kristian Nielsen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: