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

Link failure on missing -L${LIBLZ4_LIBRARY_DIR}

Details

    Description

      CMake fails to add the library path for lz4 to the linker script. This causes an issue during linking where -llz4 fails.

      Adding the path to `liblz4.so` to link.txt fixes the issue for me.

      sed -i .bak -e 's|-llz4|-L${LOCALBASE}/lib -llz4|'} \
                      ${WRKSRC}/storage/mroonga/CMakeFiles/mroonga.dir/link.txt
      

      `LOCALBASE` in FreeBSD is set to /usr/local and liblz4 is installed there.

      /usr/local/lib/liblz4.so
      /usr/local/lib/liblz4.so.1
      /usr/local/lib/liblz4.so.1.7.1 
      /usr/local/libdata/pkgconfig/liblz4.pc
      

      Detection of lz4 is apparently OK otherwise the code in CMakeLists would return an error.

      Attachments

        Activity

          Additionally, I noticed there is -lz somewhere in TokuDB without checking whether libz is actually installed
          (it failed for me on new Ubuntu without installed libz)

          wlad Vladislav Vaintroub added a comment - Additionally, I noticed there is -lz somewhere in TokuDB without checking whether libz is actually installed (it failed for me on new Ubuntu without installed libz)

          Looks good to me

          wlad Vladislav Vaintroub added a comment - Looks good to me

          Kentoku, it's a bug in Mroonga. Please see the commit linked to this issue. You might want to apply something like that to your main mroonga repository.

          serg Sergei Golubchik added a comment - Kentoku , it's a bug in Mroonga. Please see the commit linked to this issue. You might want to apply something like that to your main mroonga repository.

          People

            serg Sergei Golubchik
            spil Bernard Spil
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.