Build errors in zeek-netmap for Zeek 7.0.1 under FreeBSD14

Hi all,

I am trying to build zeek-netmap plugin under Zeek 7.0.1 on FreeBSD 14.1 host (fully patched). It is returning the following errors:

=== STDERR ===
Usage: zeek-config [OPTIONS]

Basic options:

–build_type Zeek build type as per cmake, lower case (e.g. ‘relwithdebinfo’)
–prefix Toplevel Zeek distribution installation directory
–version Zeek version number
–zeek_dist Toplevel directory of source tree the distribution built from
–zeekpath ZEEKPATH environment variable paths for this distribution

Specific directories in the Zeek distribution:

–btest_tools_dir Zeek-related BTest tooling
–cmake_dir Zeek’s cmake modules
–config_dir Configuration files for cluster topology, zkg, etc
–include_dir C/C++ header folders for Zeek and related components, colon-separated
–lib_dir Toplevel folder for shared libraries, Python packages, etc
–plugin_dir Native-code Zeek plugins
–python_dir Python packages (Broker, ZeekControl, zkg, etc)
–script_dir Toplevel folder for Zeek scripts
–site_dir Site-specific Zeek scripts

Toplevel installation directories for third-party components:

–binpac_root BinPAC compiler
–broker_root Broker communication framework

Feature tests (prints ‘yes’ if supported; exit code reflects result):

–have-af-packet Native AF_PACKET support
–have-geoip IP address geolocation & AS lookups
–have-javascript JavaScript support
–have-spicy-analyzers built-in Spicy analyzers

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Error at /opt/zeek/share/zeek/cmake/ZeekPlugin.cmake:139 (message):
Plugin requires CMake 3.0 which is less than Zeek’s requirement (3.15.0).
Please update cmake_minimum_required VERSION to 3.15 or higher.
Call Stack (most recent call first):
CMakeLists.txt:5 (include)

=== STDOUT ===
Build Directory : build
Zeek Source Directory :
– The C compiler identification is Clang 18.1.5
– The CXX compiler identification is Clang 18.1.5
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /usr/bin/cc - skipped
– Detecting C compile features
– Detecting C compile features - done
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working CXX compiler: /usr/bin/c++ - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
– Check if compiler accepts -pthread
– Check if compiler accepts -pthread - yes
– Found Threads: TRUE
– Found OpenSSL: /usr/lib/libcrypto.so (found version “3.0.13”)
– Found BinPAC: /opt/zeek/bin/binpac
– Found BifCl at /opt/zeek/bin/bifcl
– Setting plugin CMAKE_BUILD_TYPE to MinSizeRel
– Configuring incomplete, errors occurred!

And that’s wrong. I am using cmake 3.29 relase. My pkgs installed are:

bash-5.2.26_1 GNU Project’s Bourne Again SHell
bison-3.8.2_2,1 Parser generator from FSF, (mostly) compatible with Yacc
c-ares-1.30.0 Asynchronous DNS resolver library
ccache-3.7.12_6 Tool to minimize the compile time of C/C++ programs
cmake-3.29.6 Meta-port to connect all CMake bits
cmake-core-3.29.6 Cross-platform Makefile generator
cmake-doc-3.29.6 HTML and Qt Creator helpfiles for CMake
cmake-man-3.29.6 Manual pages for CMake
curl-8.9.1_1 Command line tool and library for transferring data with URLs
expat-2.6.2 XML 1.0 parser written in C
flex-2.6.4_3 Fast lexical analyzer generator
geoipupdate-7.0.1_4 Fetch the latest copies of the GeoIP2 databases
gettext-runtime-0.22.5 GNU gettext runtime libraries and programs
git-tiny-2.45.2_1 Distributed source code management tool (tiny flavor)
google-perftools-2.15 Fast, multi-threaded malloc() and nifty performance analysis tools
indexinfo-0.3.1 Utility to regenerate the GNU info page index
ipsumdump-1.86_2 Produce ASCII summary of network traffic or tcpdump(1) file
jsoncpp-1.9.5 JSON reader and writer library for C++
lbl-cf-1.2.8 Unix time to formatted time and date filter
lbl-hf-1.11 Address to hostname filter
libedit-3.1.20240517,1 Command line editor library
libevent-2.1.12 API for executing callback functions on events or timeouts
libffi-3.4.6 Foreign Function Interface
libiconv-1.17_1 Character set conversion library
libidn2-2.3.7 Implementation of IDNA2008 internationalized domain names
liblz4-1.9.4_1,1 LZ4 compression library, lossless and very fast
libmaxminddb-1.10.0 Library for the MaxMind DB file format used for GeoIP2
libnghttp2-1.62.1 HTTP/2.0 C Library
libpsl-0.21.5_1 C library to handle the Public Suffix List
libssh2-1.11.0_1,3 Library implementing the SSH2 protocol
libtextstyle-0.22.5 Text styling library
libunistring-1.2 Unicode string library
libunwind-20240221 Generic stack unwinding library
libuv-1.48.0 Multi-platform support library with a focus on asynchronous I/O
m4-1.4.19_1,1 GNU M4
mpdecimal-4.0.0 C/C++ arbitrary precision decimal floating point libraries
ncurses-6.5 Library for terminal-independent, full-screen output
ninja-1.11.1,4 Small build system closest in spirit to Make
pcre2-10.43 Perl Compatible Regular Expressions library, version 2
pkg-1.21.3 Package manager
py311-backports-1 Shared namespace shim for py-backports.* ports
py311-btest-1.1 Simple driver for basic unit tests
py311-configparser-3.5.3_1,1 INI style configuration file parser
py311-gitdb-4.0.11_1 Git Object Database
py311-gitpython-3.1.30 Python Git Library
py311-semantic-version-2.10.0_1 Python library provides a few tools to handle SemVer in Python
py311-setuptools-63.1.0_1 Python packages installer
py311-smmap-5.0.1_1 Sliding-window memory map manager
py311-sqlite3-3.11.9_7 Standard Python binding to the SQLite3 library (Python 3.11)
python311-3.11.9 Interpreted object-oriented programming language
readline-8.2.10 Library for editing command lines as they are typed
rhash-1.4.4_1 Utility and library for computing and checking of file hashes
rsync-3.3.0 Network file distribution/synchronization utility
sqlite3-3.46.0,1 SQL database engine in a C library
swig-4.1.1 Generate wrappers for calling C/C++ code from other languages
tmux-3.3a_3 Terminal Multiplexer
xxhash-0.8.2_1 Extremely fast non-cryptographic hash algorithm
zstd-1.5.6 Fast real-time compression algorithm

Is this a bug or am I doing something wrong?

The failure message is here:

CMake Error at /opt/zeek/share/zeek/cmake/ZeekPlugin.cmake:139 (message):
Plugin requires CMake 3.0 which is less than Zeek’s requirement (3.15.0).
Please update cmake_minimum_required VERSION to 3.15 or higher.
Call Stack (most recent call first):
CMakeLists.txt:5 (include)

This is an issue in the package[1], and I opened a PR to fix that.


  1. In general issues with packages are better reported in the repos of the respective packages which one can find e.g., by looking up the package in the Zeek package index. ↩︎