Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-6894

cmake does not check for zlib

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: On Hold
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 5.7.x
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None

      Description

       

      Why doesn't cmake check for the existence of zlib? Cmake checks 100s of other libraries but skips this one?

      root@sjc15a-rj22-30a:~/bld# cmake ../percona-server-5.7.29-32 -DWITH_DEBUG=1 -DWITH_BOOST=/usr/src/boost_1_59_0
      ...
      root@sjc15a-rj22-30a:~/bld# make
      ...
      [  7%] Built target regex
      Scanning dependencies of target re
      [  7%] Building C object regex/CMakeFiles/re.dir/main.c.o
      [  7%] Building C object regex/CMakeFiles/re.dir/split.c.o
      [  7%] Building C object regex/CMakeFiles/re.dir/debug.c.o
      [  7%] Linking C executable re
      /usr/bin/ld: cannot find -lzlib
      collect2: error: ld returned 1 exit status
      regex/CMakeFiles/re.dir/build.make:153: recipe for target 'regex/re' failed
      make[2]: *** [regex/re] Error 1
      CMakeFiles/Makefile2:795: recipe for target 'regex/CMakeFiles/re.dir/all' failed
      make[1]: *** [regex/CMakeFiles/re.dir/all] Error 2
      Makefile:160: recipe for target 'all' failed
      make: *** [all] Error 2
      

       

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              patrick.birch Patrick Birch
              Reporter:
              matthew.boehm@percona.com Matthew Boehm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: