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

mroonga storage engine fails to find LZ4

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 10.0.21
    • Fix Version/s: N/A
    • Labels:
      None
    • Environment:
      OpenBSD

      Description

      Trying to build the Mroonga storage engine with MariaDB 10.0.21 CMake is able to detect the presence of LZ4 but it doesn't use the header path (from the pkg-config file) to find the header (and make sure to use the library path when linking)thus the build fails...

      /home/ports/pobj/mariadb-10.0.21/mariadb-10.0.21/storage/mroonga/vendor/groonga/lib/store.c:1231:17: warning: lz4.h: No such file or directory
      /home/ports/pobj/mariadb-10.0.21/mariadb-10.0.21/storage/mroonga/vendor/groonga/lib/store.c: In function 'grn_ja_ref_lz4':
      /home/ports/pobj/mariadb-10.0.21/mariadb-10.0.21/storage/mroonga/vendor/groonga/lib/store.c:1255: warning: implicit declaration of function 'LZ4_decompress_safe'
      /home/ports/pobj/mariadb-10.0.21/mariadb-10.0.21/storage/mroonga/vendor/groonga/lib/store.c: In function 'grn_ja_put_lz4':
      /home/ports/pobj/mariadb-10.0.21/mariadb-10.0.21/storage/mroonga/vendor/groonga/lib/store.c:1378: error: 'LZ4_MAX_INPUT_SIZE' undeclared (first use in this function)
      /home/ports/pobj/mariadb-10.0.21/mariadb-10.0.21/storage/mroonga/vendor/groonga/lib/store.c:1378: error: (Each undeclared identifier is reported only once
      /home/ports/pobj/mariadb-10.0.21/mariadb-10.0.21/storage/mroonga/vendor/groonga/lib/store.c:1378: error: for each function it appears in.)
      /home/ports/pobj/mariadb-10.0.21/mariadb-10.0.21/storage/mroonga/vendor/groonga/lib/store.c:1385: warning: implicit declaration of function 'LZ4_compressBound'
      /home/ports/pobj/mariadb-10.0.21/mariadb-10.0.21/storage/mroonga/vendor/groonga/lib/store.c:1391: warning: implicit declaration of function 'LZ4_compress'
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            elenst Elena Stepanova added a comment -

            Please provide your liblz4.pc file.

            Show
            elenst Elena Stepanova added a comment - Please provide your liblz4.pc file.
            Hide
            brad0 Brad Smith added a comment -

            Thanks for the hint. My bad for the noise. Looking at the pkg-config file it turns out due to an issue with the build infrastructure the resulting package for LZ4 had completely bogus paths in the pkg-config file pointing to the build directory instead of the destination installation path.

            Show
            brad0 Brad Smith added a comment - Thanks for the hint. My bad for the noise. Looking at the pkg-config file it turns out due to an issue with the build infrastructure the resulting package for LZ4 had completely bogus paths in the pkg-config file pointing to the build directory instead of the destination installation path.

              People

              • Assignee:
                Unassigned
                Reporter:
                brad0 Brad Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: