[Bug 267700] wazuh-agent 4.3.9 fails to compile RELENG_13

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 10 Nov 2022 19:12:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267700

            Bug ID: 267700
           Summary: wazuh-agent 4.3.9 fails to compile RELENG_13
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: mike@sentex.net
                CC:
             Flags: maintainer-feedback?(acm@FreeBSD.org)
          Assignee: acm@FreeBSD.org

manually building the port from default options and from poudrier both fail
with the following error

gmake[4]: Entering directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
gmake[5]: Entering directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
gmake[6]: Entering directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
gmake[6]: Leaving directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
gmake[6]: Entering directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
[ 12%] Building CXX object
CMakeFiles/sysinfo.dir/src/network/networkInterfaceBSD.cpp.o
[ 25%] Building CXX object CMakeFiles/sysinfo.dir/src/osinfo/sysOsParsers.cpp.o
[ 37%] Building CXX object CMakeFiles/sysinfo.dir/src/sysInfoCommonBSD.cpp.o
[ 50%] Building CXX object CMakeFiles/sysinfo.dir/src/sysInfoFreeBSD.cpp.o
[ 62%] Building CXX object CMakeFiles/sysinfo.dir/src/sysInfo.cpp.o
[ 75%] Linking CXX shared library lib/libsysinfo.so
c++: warning: argument unused during compilation: '-static-libgcc'
[-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-static-libstdc++'
[-Wunused-command-line-argument]
gmake[6]: Leaving directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
[ 75%] Built target sysinfo
gmake[6]: Entering directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
gmake[6]: Leaving directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
gmake[6]: Entering directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
[ 87%] Building CXX object testtool/CMakeFiles/sysinfo_test_tool.dir/main.cpp.o
[100%] Linking CXX executable ../bin/sysinfo_test_tool
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_version [--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_http2_strerror [--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_submit_rst_stream [--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_set_stream_user_data
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_callbacks_new
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_callbacks_set_send_callback
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_callbacks_set_on_frame_recv_callback
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to
nghttp2_session_callbacks_set_on_invalid_frame_recv_callback
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to
nghttp2_session_callbacks_set_on_data_chunk_recv_callback
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_callbacks_set_before_frame_send_callback
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_callbacks_set_on_frame_send_callback
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_callbacks_set_on_frame_not_send_callback
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_callbacks_set_on_stream_close_callback
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_callbacks_set_on_begin_headers_callback
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_callbacks_set_on_header_callback
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_callbacks_set_error_callback
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_client_new [--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_callbacks_del
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_session_get_stream_user_data
[--no-allow-shlib-undefined]
ld: error: /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/libwazuhext.so:
undefined reference to nghttp2_is_fatal [--no-allow-shlib-undefined]
ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all
errors)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[6]: *** [testtool/CMakeFiles/sysinfo_test_tool.dir/build.make:98:
bin/sysinfo_test_tool] Error 1
gmake[6]: Leaving directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
gmake[5]: *** [CMakeFiles/Makefile2:126:
testtool/CMakeFiles/sysinfo_test_tool.dir/all] Error 2
gmake[5]: Leaving directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
gmake[4]: *** [Makefile:101: all] Error 2
gmake[4]: Leaving directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src/data_provider/build'
gmake[3]: *** [Makefile:1493: build_sysinfo] Error 2
gmake[3]: Leaving directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src'
gmake[2]: *** [Makefile:726: agent] Error 2
gmake[2]: Leaving directory
'/usr/ports/security/wazuh-agent/work/wazuh-4.3.9/src'
*** Error code 2

Stop.
make[1]: stopped in /usr/ports/security/wazuh-agent
*** Error code 1

Stop.
make: stopped in /usr/ports/security/wazuh-agent

-- 
You are receiving this mail because:
You are the assignee for the bug.