[
https://issues.apache.org/jira/browse/MESOS-10240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17748910#comment-17748910
]
Ryan Carsten Schmidt commented on MESOS-10240:
----------------------------------------------
For example, the attached patch changes it to check for just one of zlib's
functions, and this works.
Also, this bug report assumes bug MESOS-10241 has already been addressed; if
not, that problem will be encountered first.
> 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.8.0, 1.11.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
> Priority: Major
> Attachments: mesos-zlib.patch
>
>
> 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)