Wireshark-dev: [Wireshark-dev] Re: MacOS Build issues

From: John Thacker <johnthacker@xxxxxxxxx>
Date: Fri, 11 Oct 2024 08:28:56 -0400
On Fri, Oct 11, 2024 at 8:20 AM John Schimmel via Wireshark-dev <wireshark-dev@xxxxxxxxxxxxx> wrote:
Sorry if this has been covered before, I just joined the list and google did not return an answer.

I’m trying to build Wireshark on a MacBook (MacOS 15), and after running  ../tools/macos-setup-brew.sh and cmake .., I am getting the following error:

CMake Error at /usr/local/Cellar/cmake/3.30.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):

  Could NOT find CARES: (Required is at least version "1.13.0") (found

  /usr/local/lib/libcares.dylib)

Call Stack (most recent call first):

  /usr/local/Cellar/cmake/3.30.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:601 (_FPHSA_FAILURE_MESSAGE)

  cmake/modules/FindCARES.cmake:49 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)

  CMakeLists.txt:1305 (find_package)


c-ares 1.34 changed the include define that defines the version to a macro, which made our FindPackage CMake script not work on it.
macOS homebrew just updated to 1.34 yesterday.


This also broke our build system (as well as other projects, and we pushed a fix. The fix should be in all the active branches now, so try updating from git.

Cheers,
John Thacker