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

libgalera_smm.so in generic tarball is not linking to correct files for Ubuntu

    XMLWordPrintable

Details

    • Bug
    • Status: Stalled (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5
    • 10.5, 10.6
    • Galera
    • None

    Description

      wget https://downloads.mariadb.org/interstitial/mariadb-10.5.8/bintar-linux-x86_64/mariadb-10.5.8-linux-x86_64.tar.gz
      # Try and use on Ubuntu 20.04.2 LTS
      

      Will lead to errors for Galera lib. The reason:

      # ldd libgalera_smm.so 
      	linux-vdso.so.1 (0x00007ffd70dcd000)
      	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f21079a5000)
      	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f210799a000)
      *	libssl.so.10 => not found
      *	libcrypto.so.10 => not found
      	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f21077b9000)
      	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f210766a000)
      	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f210764d000)
      	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f210745b000)
      	/lib64/ld-linux-x86-64.so.2 (0x00007f2107c77000
      

      The files on Ubuntu 20.04.2 LTS are currently

      root:/usr/lib/x86_64-linux-gnu# ls -l libssl*
      -rw-r--r-- 1 root root  382024 Aug 20 18:02 libssl3.so
      -rw-r--r-- 1 root root 1016054 Dec  2 16:52 libssl.a
      lrwxrwxrwx 1 root root      13 Dec  2 16:52 libssl.so -> libssl.so.1.1
      -rw-r--r-- 1 root root  424664 Sep 16 14:51 libssl.so.1.0.0
      -rw-r--r-- 1 root root  598104 Dec  2 16:52 libssl.so.1.1
      root:/usr/lib/x86_64-linux-gnu# ls -l libcrypt*
      -rw-r--r-- 1 root root  271570 Mar 10  2020 libcrypt.a
      -rw-r--r-- 1 root root 5538118 Dec  2 16:52 libcrypto.a
      -rw-r--r-- 1 root root 2361888 Sep 16 14:51 libcrypto.so.1.0.0
      lrwxrwxrwx 1 root root      39 Mar 10  2020 libcrypt.so -> /lib/x86_64-linux-gnu/libcrypt.so.1.1.0
      

      Trying to symlink these manually fails too:

      root:/tmp# ldd libgalera_smm.so 
      ./libgalera_smm.so: /usr/lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found (required by ./libgalera_smm.so)
      ./libgalera_smm.so: /usr/lib/x86_64-linux-gnu/libcrypto.so.10: version `OPENSSL_1.0.1_EC' not found (required by ./libgalera_smm.so)
      ./libgalera_smm.so: /usr/lib/x86_64-linux-gnu/libcrypto.so.10: version `libcrypto.so.10' not found (required by ./libgalera_smm.so)
      ...
      

      Using LD_PRELOAD seem to not work at first glance either, though this has not been confirmed.
      Would likely be present in 10.6 too (and perhaps earlier versions), but 10.6 is not released yet. Please check other versions also when fixing.

      Attachments

        Issue Links

          Activity

            People

              sysprg Julius Goryavsky
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.