Wireshark-dev: Re: [Wireshark-dev] Unknown CMake command "check_function_exists".

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Tue, 10 Aug 2021 17:25:33 +0200
Hi,

The module CheckFunctionExists [1] has been around from at least cmake 3.0, so that’s not new. The first question then would be if, besides cmake, the cmake modules are installed as well?


Thanks,
Jaap


On 10 Aug 2021, at 16:57, Mora, Jorge via Wireshark-dev <wireshark-dev@xxxxxxxxxxxxx> wrote:

Hello,
 
I just got the latest tree but cmake fails:
 
$ uname -a
Linux netapp83.linux.fake 4.18.0-240.el8.x86_64 #1 SMP Wed Sep 23 05:13:10 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux
 
$ git log
commit 3c5168c874c7a9cf60ae3eaa44fb982352f2628d (HEAD -> master, upstream/master, upstream/HEAD)
Author: John Thacker <johnthacker@xxxxxxxxx>
Date:   Mon Aug 9 20:30:02 2021 -0400
 
    editcap doc: Fix description of split output file names
    
    The editcap documentation still refers to the pre 1.2.1 behavior
    of determining output file names when splitting based on either
    packet counts or time intervals. (See commit a8eb860103) Update
    it to reflect the current behavior.
 
$ cmake ../wireshark
-- Generating build using CMake 3.11.4
-- LTO/IPO is not enabled
-- CMake build type: RelWithDebInfo
-- V: 3.5.0, MaV: 3, MiV: 5, PL: 0, EV: .
-- Linker flags:  -Wl,--as-needed
-- Could NOT find LIBSSH (missing: LIBSSH_LIBRARIES LIBSSH_INCLUDE_DIRS LIBSSH_VERSION) (Required is at least version "0.6")
-- Checking for one of the modules 'libpcap'
-- Could NOT find PCAP (missing: PCAP_LIBRARY PCAP_INCLUDE_DIR)
-- Could NOT find Systemd (missing: SYSTEMD_LIBRARY SYSTEMD_INCLUDE_DIR) (found version "")
-- Could NOT find MaxMindDB (missing: MAXMINDDB_LIBRARY MAXMINDDB_INCLUDE_DIR)
-- Could NOT find SMI (missing: SMI_LIBRARY SMI_INCLUDE_DIR)
CMake Error at cmake/modules/FindKERBEROS.cmake:95 (check_function_exists):
  Unknown CMake command "check_function_exists".
Call Stack (most recent call first):
  CMakeLists.txt:1096 (find_package)
  CMakeLists.txt:1214 (ws_find_package)
 
 
-- Configuring incomplete, errors occurred!
See also "/home/mora/wireshark-build/CMakeFiles/CMakeOutput.log".
See also "/home/mora/wireshark-build/CMakeFiles/CMakeError.log".
 
 
--Jorge
 
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe