You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Ryan Carsten Schmidt (Jira)" <ji...@apache.org> on 2023/07/30 08:13:00 UTC

[jira] [Created] (MESOS-10240) configure: error: cannot find libz

Ryan Carsten Schmidt created MESOS-10240:
--------------------------------------------

             Summary: configure: error: cannot find libz
                 Key: MESOS-10240
                 URL: https://issues.apache.org/jira/browse/MESOS-10240
             Project: Mesos
          Issue Type: Bug
          Components: build
    Affects Versions: 1.11.0, 1.8.0
         Environment: macOS 12.6.7
Xcode 13.2.1
Apple clang version 13.0.0 (clang-1300.0.29.30)
            Reporter: Ryan Carsten Schmidt


mesos fails to configure:

{{checking for zlib.h... yes}}
{{checking for deflate, gzread, gzwrite, inflate in -lz... no}}
{{configure: error: cannot find libz}}
{{-------------------------------------------------------------------}}
{{libz is required for Mesos to build.}}
{{-------------------------------------------------------------------}}

I don't think [the zlib configure check|https://github.com/apache/mesos/blob/8856d6fba11281df898fd65b0cafa1e20eb90fe8/configure.ac#L2301] is correct. According to [autoconf documentation|https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.71/html_node/Libraries.html#index-AC_005fCHECK_005fLIB-1], the second argument of {{AC_CHECK_LIB}} is a function name, not a comma-separated list of function names. It also says {{AC_CHECK_LIB}} "should be avoided in some common cases", suggesting {{AC_SEARCH_LIBS}} be used instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)