Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-311

Connector/ODBC libraries go to the wrong directories and it breaks packaging

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • None
    • 3.1.14
    • General
    • None

    Description

      The connector/C build process does not take into account the difference in the directory structure for RPM and DEB-based distributions.
      It breaks Debian packaging of Cpp and ODBCI connectors (see attached files for full logs):

      dpkg-shlibdeps: error: cannot find library libmariadb.so.3 needed by ./usr/lib64/mariadb/libmariadbcpp.so (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
      dpkg-shlibdeps: error: cannot continue due to the error above
      Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
      To help dpkg-shlibdeps find private libraries, you might need to use -l.
      CMake Error at /usr/share/cmake-3.16/Modules/Internal/CPack/CPackDeb.cmake:317 (message):
        CPackDeb: dpkg-shlibdeps: 'dpkg-shlibdeps: error: cannot find library
        libmariadb.so.3 needed by ./usr/lib64/mariadb/libmariadbcpp.so (ELF format:
        'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
        dpkg-shlibdeps: error: cannot continue due to the error above
      

      dpkg-shlibdeps tries to find libmariadb.so.3 in the default directory for Debians - /usr/lib/x86_64-linux-gnu/

      Dirs are hardcoded here:
      https://github.com/mariadb-corporation/mariadb-connector-c/blob/3.1/cmake/install.cmake#L78

      Attachments

        1. stdio_odbc
          77 kB
        2. stdio_cpp
          92 kB

        Activity

          People

            abychko Alexey Bychko (Inactive)
            tturenko Timofey Turenko
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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