Skip to content

Install fails with ZKG 2.12.0 (Zeek 4.2.0) #32

Open
@saintorphan

Description

@saintorphan

🐛 Summary

I've been unable to get this to compile in our dev environment, both with ZKG and manually.
Upon investigation, it appears that ZeekPlugin.cmake is calling ZeekPluginBootstrap.cmake, which does not exist in CMake's repo, or anywhere on the internet for that matter. This is probably me doing something wrong here. Any insight is appreciated.
Notes:
I no longer get the ZeekPluginBootstrap error after moving the Zeek Devel .cmake files into place, but cmake can't seem to find them even in the cmake/Modules directory.

To reproduce

  1. zkg install icsnpp-enip
    (That didn't work, so tried manual installation)
  2. ./configure

Expected behavior

I expected ZKG to compile the plugin, and/or be able to compile the plugin at all.
zeek version 4.2.0
zkg 2.12.0
cmake version 3.26.5
cc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-21.0.1)
c++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-21.0.1)
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-21.0.1)
g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-21.0.1)

Paste the results here:

ZKG INSTALL

[root@sensor-001 ~]# zkg install icsnpp-enip
The following packages will be INSTALLED:
zeek/cisagov/icsnpp-enip (main)

Proceed? [Y/n] Y
Running unit tests for "zeek/cisagov/icsnpp-enip"
error: failed to run tests for zeek/cisagov/icsnpp-enip: package build_command failed, see log in /usr/var/lib/zkg/logs/icsnpp-enip-build.log
Proceed to install anyway? [N/y] Y
Installing "zeek/cisagov/icsnpp-enip"..
Failed installing "zeek/cisagov/icsnpp-enip": package build_command failed, see log in /usr/var/lib/zkg/logs/icsnpp-enip-build.log
error: incomplete installation, the follow packages failed to be installed:
zeek/cisagov/icsnpp-enip (main)

BUILD LOG

=== STDOUT ===
Build Directory : build
Zeek Source Directory :
-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
-- 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
-- Configuring incomplete, errors occurred!

MANUAL ATTEMPT

[root@sensor-001 icsnpp-enip]# ./configure
Build Directory : build
Zeek Source Directory :
CMake Error at /usr/share/cmake/Modules/ZeekPlugin.cmake:27 (find_package):
Could not find a package configuration file provided by "Zeek" with any of
the following names:

ZeekConfig.cmake
zeek-config.cmake

Add the installation prefix of "Zeek" to CMAKE_PREFIX_PATH or set
"Zeek_DIR" to a directory containing one of the above files. If "Zeek"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
/usr/share/cmake/Modules/ZeekPlugin.cmake:68 (zeek_plugin_bootstrapping)
CMakeLists.txt:5 (include)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions