[package - 124arm64-quarterly][security/wazuh-manager] Failed for wazuh-manager-4.4.0 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Sun, 23 Apr 2023 19:36:25 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     acm@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/ampere1/data/124arm64-quarterly/60e7cbc83321/logs/wazuh-manager-4.4.0.log
Build URL:      https://pkg-status.freebsd.org/ampere1/build.html?mastername=124arm64-quarterly&build=60e7cbc83321
Log:

=>> Building security/wazuh-manager
build started at Sun Apr 23 19:14:28 UTC 2023
port directory: /usr/ports/security/wazuh-manager
package name: wazuh-manager-4.4.0
building for: FreeBSD 124arm64-quarterly-job-13 12.4-RELEASE-p2 FreeBSD 12.4-RELEASE-p2 arm64
maintained by: acm@FreeBSD.org
Makefile ident: 
Poudriere version: 3.2.8-23-ga7f8d188
Host OSVERSION: 1400073
Jail OSVERSION: 1204000
Job Id: 13

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1204000
UNAME_v=FreeBSD 12.4-RELEASE-p2
UNAME_r=12.4-RELEASE-p2
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-23-ga7f8d188
MASTERMNT=/usr/local/poudriere/data/.m/124arm64-quarterly/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/124arm64-quarterly/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=124arm64-quarterly
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/124arm64-quarterly/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for wazuh-manager-4.4.0:
     INOTIFY=off: Kevent based real time monitoring
     PRELUDE=off: Sensor support from Prelude SIEM
     ZEROMQ=off: ZeroMQ support
====> Options available for the group DATABASE
     MYSQL=off: MySQL database support
     PGSQL=off: PostgreSQL database support
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
acm@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
MAKE=gmake ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl  PERL_USE_UNSAFE_INC=1 PYTHON="/usr/local/bin/python3.9" XDG_DATA_HOME=/wrkdirs/usr/ports/security/wazuh-manager/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/security/wazuh-manager/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/security/wazuh-manager/work/.cache  HOME=/wrkdirs/usr/ports/security/wazuh-manager/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/security/wazuh-manager/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/security/wazuh-manager/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/wrkdirs/usr/ports/security/wazuh-manager/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/security/wazuh-manager/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/security/wazuh-manager/work/.cache  HOME=/wrkdirs/usr/ports/security/wazuh-manager/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/security/wazuh-manager/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/security/wazuh-manager/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-I/usr/local/include"  LDFLAGS=" -L/usr/local/lib -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"
   BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PYTHON_INCLUDEDIR=include/python3.9  PYTHON_LIBDIR=lib/python3.9  PYTHON_PLATFORM=freebsd12  PYTHON_SITELIBDIR=lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" OSREL=12.4 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib PERL_VERSION=5.32.1  PERL_VER=5.32  PERL5_MAN1=lib/perl5/site_perl/man/man1  PERL5_MAN3=lib/perl5/site_perl/man/man3  SITE_PERL=lib/perl5/site_perl  SITE_ARCH=lib/perl5/site_perl/mach/5.32 DOCSDIR="share/doc/wazuh"  EXAMPLESDIR="share/examples/wazuh"  DATADIR="share/wazuh"  WWWDIR="www/wazuh"  ETCDIR="etc/wazuh"
--End PLIST_SUB--

--SUB_LIST--
PYTHON_INCLUDEDIR=/usr/local/include/python3.9  PYTHON_LIBDIR=/usr/local/lib/python3.9  PYTHON_PLATFORM=freebsd12  PYTHON_SITELIBDIR=/usr/local/lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/wazuh DOCSDIR=/usr/local/share/doc/wazuh EXAMPLESDIR=/usr/local/share/examples/wazuh  WWWDIR=/usr/local/www/wazuh ETCDIR=/usr/local/etc/wazuh
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
#### /usr/local/etc/poudriere.d/make.conf ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: aarch64-unknown-freebsd12.4 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: aarch64-unknown-freebsd12.4 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_53255a77=yes
CC_OUTPUT_921dbbb2_911cfe02=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
CC_OUTPUT_921dbbb2_af59ad06=yes
CC_OUTPUT_921dbbb2_a15f3fcf=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: aarch64-unknown-freebsd12.4 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=aarch64
OPSYS=FreeBSD
_OSRELEASE=12.4-RELEASE-p2
OSREL=12.4
OSVERSION=1204000
PYTHONBASE=/usr/local
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  1048576
stack size              (kbytes, -s)  1048576
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>  License GPLv2 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   wazuh-manager-4.4.0 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.19.1_1.pkg
[124arm64-quarterly-job-13] Installing pkg-1.19.1_1...
[124arm64-quarterly-job-13] Extracting pkg-1.19.1_1: .......... done
===>   wazuh-manager-4.4.0 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of wazuh-manager-4.4.0
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by wazuh-manager-4.4.0 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by wazuh-manager-4.4.0 for building
=> SHA256 Checksum OK for wazuh-4.4.0/cJSON.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/curl.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/jemalloc.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/libdb.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/libffi.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/libyaml.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/openssl.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/procps.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/sqlite.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/zlib.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/audit-userspace.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/msgpack.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/bzip2.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/nlohmann.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/googletest.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/libpcre2.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/libplist.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/libarchive.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/popt.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/cpython.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/wazuh-cache-any-4.4.0.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/wazuh-cache-fbsd12-aarch64-4.4.0.tar.gz.
=> SHA256 Checksum OK for wazuh-4.4.0/wazuh-wazuh-v4.4.0_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
<snip>
    CC os_net/os_net.o
    CC os_regex/os_match.o
    CC os_regex/os_match_compile.o
    CC os_regex/os_match_execute.o
    CC os_regex/os_match_free_pattern.o
    CC os_regex/os_regex.o
    CC os_regex/os_regex_compile.o
    CC os_regex/os_regex_execute.o
    CC os_regex/os_regex_free_pattern.o
    CC os_regex/os_regex_maps.o
    CC os_regex/os_regex_match.o
    CC os_regex/os_regex_startswith.o
    CC os_regex/os_regex_str.o
    CC os_regex/os_regex_strbreak.o
    CC os_xml/os_xml.o
    CC os_xml/os_xml_access.o
    CC os_xml/os_xml_node_access.o
    CC os_xml/os_xml_variables.o
    CC os_xml/os_xml_writer.o
    CC os_zlib/os_zlib.o
    CC os_auth/ssl.o
    CC os_auth/check_cert.o
    CC addagent/validate.o
    CC analysisd/logmsg.o
    LINK libwazuh.a
    RANLIB libwazuh.a
    CC wazuh-maild
    CC os_csyslogd/alert.o
    CC os_csyslogd/config.o
    CC os_csyslogd/csyscom.o
    CC os_csyslogd/csyslogd.o
    CC os_csyslogd/main.o
    CC wazuh-csyslogd
    CC agentlessd/agentlessd.o
    CC agentlessd/lessdcom.o
    CC agentlessd/main.o
    CC wazuh-agentlessd
    CC os_execd/config.o
    CC os_execd/exec.o
    CC os_execd/execd.o
    CC os_execd/main.o
    CC os_execd/wcom.o
    CC active-response/active_responses.o
    CC wazuh-execd
    CC logcollector/config.o
    CC logcollector/lccom.o
    CC logcollector/logcollector.o
    CC logcollector/macos_log.o
    CC logcollector/main.o
    CC logcollector/read_audit.o
    CC logcollector/read_command.o
    CC logcollector/read_djb_multilog.o
    CC logcollector/read_fullcommand.o
    CC logcollector/read_json.o
    CC logcollector/read_macos.o
    CC logcollector/read_mssql_log.o
    CC logcollector/read_multiline.o
    CC logcollector/read_multiline_regex.o
    CC logcollector/read_mysql_log.o
    CC logcollector/read_nmapg.o
    CC logcollector/read_ossecalert.o
    CC logcollector/read_postgresql_log.o
    CC logcollector/read_snortfull.o
    CC logcollector/read_syslog.o
    CC logcollector/read_ucs2_be.o
    CC logcollector/read_ucs2_le.o
    CC logcollector/read_win_el.o
    CC logcollector/read_win_event_channel.o
    CC logcollector/state.o
    CC wazuh-logcollector
    CC remoted/ar-forward.o
    CC remoted/cfga-forward.o
    CC remoted/config.o
    CC remoted/main.o
    CC remoted/manager.o
    CC remoted/netbuffer.o
    CC remoted/netcounter.o
    CC remoted/queue.o
    CC remoted/remcom.o
    CC remoted/remoted.o
    CC remoted/request.o
    CC remoted/secure.o
    CC remoted/sendmsg.o
    CC remoted/shared_download.o
    CC remoted/state.o
    CC remoted/syslog.o
    CC remoted/syslogtcp.o
    CC wazuh-remoted
    CC client-agent/agcom.o
    CC client-agent/agentd.o
    CC client-agent/buffer.o
    CC client-agent/config.o
    CC client-agent/event-forward.o
    CC client-agent/main.o
    CC client-agent/notify.o
    CC client-agent/receiver.o
    CC client-agent/request.o
    CC client-agent/restart_agent.o
    CC client-agent/rotate_log.o
    CC client-agent/sendmsg.o
    CC client-agent/start_agent.o
    CC client-agent/state.o
client-agent/state.c:194:30: warning: cast to smaller integer type 'agent_status_t' (aka 'enum agent_status_t') from 'void *' [-Wvoid-pointer-to-enum-cast]
        agent_state.status = (agent_status_t) data;
                             ^~~~~~~~~~~~~~~~~~~~~
1 warning generated.
    CC monitord/rotate_log.o
    CC monitord/compress_log.o
    CC wazuh-agentd
    CC addagent/main.o
    CC addagent/manage_agents.o
    CC addagent/manage_keys.o
    CC addagent/read_from_user.o
    CC manage_agents
    CC util/clear_stats.o
    CC clear_stats
    CC util/agent_control.o
    CC agent_control
    CC util/verify-agent-conf.o
    CC verify-agent-conf
    CC util/wazuh-regex.o
    CC wazuh-regex
    CC util/parallel-regex.o
    CC parallel-regex
    CC active-response/firewalls/default-firewall-drop.o
    CC shared/file_op_proc.o
    CC shared/debug_op_proc.o
    CC libwazuhshared.so
    CC default-firewall-drop
    CC active-response/firewalls/pf.o
    CC pf
    CC active-response/firewalls/npf.o
    CC npf
    CC active-response/firewalls/ipfw.o
    CC ipfw
    CC active-response/firewalld-drop.o
    CC firewalld-drop
    CC active-response/disable-account.o
    CC disable-account
    CC active-response/host-deny.o
    CC host-deny
    CC active-response/ip-customblock.o
    CC ip-customblock
    CC active-response/restart-wazuh.o
    CC restart-wazuh
    CC active-response/route-null.o
    CC route-null
    CC active-response/kaspersky.o
    CC kaspersky
    CC active-response/wazuh-slack.o
    CC wazuh-slack
    CC syscheckd/db/schema_fim_db.o
    CC syscheckd/config.o
    CC syscheckd/create_db.o
    CC syscheckd/fim_diff_changes.o
    CC syscheckd/fim_sync.o
    CC syscheckd/main.o
    CC syscheckd/run_check.o
    CC syscheckd/run_realtime.o
    CC syscheckd/syscheck.o
    CC syscheckd/syscom.o
    CC syscheckd/db/fim_db.o
    CC syscheckd/db/fim_db_files.o
    CC syscheckd/db/fim_db_registries.o
    CC syscheckd/whodata/audit_healthcheck.o
    CC syscheckd/whodata/audit_parse.o
    CC syscheckd/whodata/audit_rule_handling.o
    CC syscheckd/whodata/syscheck_audit.o
    CC syscheckd/whodata/win_whodata.o
    CC syscheckd/registry/events.o
    CC syscheckd/registry/registry.o
    CC rootcheck/check_open_ports.o
    CC rootcheck/check_rc_dev.o
    CC rootcheck/check_rc_files.o
    CC rootcheck/check_rc_if.o
    CC rootcheck/check_rc_pids.o
    CC rootcheck/check_rc_policy.o
    CC rootcheck/check_rc_ports.o
    CC rootcheck/check_rc_readproc.o
    CC rootcheck/check_rc_sys.o
    CC rootcheck/check_rc_trojans.o
    CC rootcheck/common.o
    CC rootcheck/common_rcl.o
    CC rootcheck/config.o
    CC rootcheck/os_string.o
rootcheck/os_string.c:193:20: error: use of undeclared identifier '__LDPGSZ'
        oss.foff = N_TXTOFF(*head);
                   ^
/usr/include/sys/imgact_aout.h:90:30: note: expanded from macro 'N_TXTOFF'
        (N_GETMAGIC(ex) == ZMAGIC ? __LDPGSZ : (N_GETMAGIC(ex) == QMAGIC || \
                                    ^
1 error generated.
gmake[2]: *** [Makefile:1995: rootcheck/os_string.o] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/security/wazuh-manager/work/wazuh-4.4.0/src'
gmake[1]: *** [Makefile:751: server] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/security/wazuh-manager/work/wazuh-4.4.0/src'
*** Error code 2

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