Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install zeek-plugin-profinet in Zeek version 5.0.3 #6

Open
dknhat2000 opened this issue Nov 22, 2022 · 0 comments
Open

Can't install zeek-plugin-profinet in Zeek version 5.0.3 #6

dknhat2000 opened this issue Nov 22, 2022 · 0 comments

Comments

@dknhat2000
Copy link

I'm using zeek 5.0.3, and zkg 2.13.0
I install by running the cmd: zkg install --force --skiptests zeek-plugin-profinet, then get the error message:

Installing "zeek/amzn/zeek-plugin-profinet"..
Failed installing "zeek/amzn/zeek-plugin-profinet": package build_command failed, see log in /root/.zkg/logs/zeek-plugin-profinet-build.log
error: incomplete installation, the follow packages failed to be installed:
  zeek/amzn/zeek-plugin-profinet (1.1.0)

The content of /root/.zkg/logs/zeek-plugin-profinet-build.log:

=== STDERR ===
CMake Warning:
  Manually-specified variables were not used by the project:

    CAF_ROOT_DIR


make: [Makefile:12: build-it] Error 1 (ignored)
/root/.zkg/clones/package/zeek-plugin-profinet/src/profinet.pac:1: error: cannot include file "binpac.pac"
/root/.zkg/clones/package/zeek-plugin-profinet/src/profinet.pac:2: error: cannot include file "bro.pac"
In file included from /root/.zkg/clones/package/zeek-plugin-profinet/src/PROFINET.cc:1:
/root/.zkg/clones/package/zeek-plugin-profinet/src/PROFINET.h:5:10: fatal error: analyzer/protocol/udp/UDP.h: No such file or directory
    5 | #include "analyzer/protocol/udp/UDP.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/Zeek-Profinet.linux-x86_64.dir/build.make:91: CMakeFiles/Zeek-Profinet.linux-x86_64.dir/src/PROFINET.cc.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:197: CMakeFiles/Zeek-Profinet.linux-x86_64.dir/all] Error 2
make[1]: *** [Makefile:141: all] Error 2
make: *** [Makefile:13: build-it] Error 2
=== STDOUT ===
Build Directory        : build
Zeek Source Directory   : 
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test cxx17_already_works
-- Performing Test cxx17_already_works - Failed
-- Performing Test cxx17_works
-- Performing Test cxx17_works - Success
-- Found BinPAC: /opt/zeek/bin/binpac  
-- Found Broker: /opt/zeek/lib/libbroker.a  
-- Zeek executable      : /opt/zeek/bin/zeek
-- Zeek source          : 
-- Zeek build           : 
-- Zeek install prefix  : /opt/zeek
-- Zeek plugin directory: /opt/zeek/lib/zeek/plugins
-- Zeek debug mode      : 
-- Zeek unittest support: no
-- Configuring done
-- Generating done
-- Build files have been written to: /root/.zkg/clones/package/zeek-plugin-profinet/build
( cd build && make )
make[1]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[2]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
Scanning dependencies of target pac-profinet.pac
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
[  7%] [BINPAC] Processing src/profinet.pac
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
[  7%] Built target pac-profinet.pac
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
Scanning dependencies of target generate_outputs
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
[  7%] Built target generate_outputs
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
Scanning dependencies of target bif-plugin-Zeek_Profinet-events.bif
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
[ 15%] [BIFCL] Processing src/events.bif
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
[ 15%] Built target bif-plugin-Zeek_Profinet-events.bif
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
Scanning dependencies of target bro-plugin-Zeek_Profinet
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
[ 23%] Creating __bro_plugin__ for Zeek::Profinet
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
[ 23%] Built target bro-plugin-Zeek_Profinet
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
Scanning dependencies of target bif-init-Zeek_Profinet
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
[ 23%] Built target bif-init-Zeek_Profinet
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
Scanning dependencies of target copy-scripts-Zeek_Profinet
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
[ 23%] Built target copy-scripts-Zeek_Profinet
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
Scanning dependencies of target Zeek-Profinet.linux-x86_64
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[3]: Entering directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
[ 30%] Building CXX object CMakeFiles/Zeek-Profinet.linux-x86_64.dir/src/PROFINET.cc.o
make[3]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[2]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
make[1]: Leaving directory '/root/.zkg/clones/package/zeek-plugin-profinet/build'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant