wazuh / wazuh-packages

Wazuh - Tools for packages creation
https://wazuh.com
GNU General Public License v2.0
105 stars 96 forks source link

`PowerPC` package generation for `RPM` systems fails #1973

Closed rauldpm closed 1 year ago

rauldpm commented 1 year ago

Description

The build of the PowerPC package for RPM systems has failed due to an error with g++:

22:52:56  c++: fatal error: Killed signal terminated program cc1plus
22:52:56  compilation terminated.
22:52:56  make[4]: *** [CMakeFiles/dbsync.dir/src/dbsyncPipelineFactory.cpp.o] Error 1
22:52:56  make[4]: *** Waiting for unfinished jobs....

In addition, the following errors are observed:

22:52:56  make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build'
22:52:56  make[3]: *** [CMakeFiles/dbsync.dir/all] Error 2
22:52:56  make[3]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build'
22:52:56  make[2]: *** [all] Error 2
22:52:56  make[2]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build'
22:52:56  make[1]: *** [build_shared_modules] Error 2
22:52:56  make[1]: *** Waiting for unfinished jobs....
22:52:56  make[1]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src'
22:52:56  make: *** [agent] Error 2
22:52:56  error: Bad exit status from /var/tmp/rpm-tmp.wB75Wx (%build)
22:52:56  
22:52:56  
22:52:56  RPM build errors:
22:52:56      Bad exit status from /var/tmp/rpm-tmp.wB75Wx (%build)

It is necessary to review and fix the generation of this package to be able to carry out tests on it.

Related: https://ci.wazuh.info/view/Packages/job/Packages_builder/123439/

Tasks

Validation

verdx commented 1 year ago

A ppc64le rpm package has been successfully created in build https://ci.wazuh.info/view/Packages/job/Packages_builder/123457/. This build had a stop before creating the S3 machine and was paused for 5 minutes.

After trying it manually in a machine, an error appeared for some problem with the versions:

Building target platforms: ppc64le
Building for target ppc64le
error: File /build_wazuh/rpmbuild/SOURCES/wazuh-agent-4.5.0.tar.gz: No such file or directory

This was solved by calling the builder script using argument --packages-version, and a package was created successfully:

Successfull build log ``` [centos@wazuh3 rpms]$ sudo bash generate_rpm_package.sh -b 4.4 -t agent -a ppc64le -r 1973 --packages-branch 4.4 Sending build context to Docker daemon 9.216 kB Step 1/17 : FROM ppc64le/centos:7 ---> fc1c5750d231 Step 2/17 : RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 ---> Using cache ---> 7d24ad339dc4 Step 3/17 : RUN yum -y install centos-release-scl ---> Using cache ---> e72b35ade7c5 Step 4/17 : RUN mv /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo.old ---> Using cache ---> 6a9d3d4a4439 Step 5/17 : RUN mv /etc/yum.repos.d/CentOS-SCLo-scl.repo /etc/yum.repos.d/CentOS-SCLo-scl.repo.old ---> Using cache ---> 0be0db32e90f Step 6/17 : RUN yum -y install gcc make wget git openssh-clients rpm-build sudo gnupg automake autoconf libtool policycoreutils-python yum-utils epel-release redhat-rpm-config rpm-devel ---> Using cache ---> b8b2d104c5f1 Step 7/17 : RUN mv /etc/yum.repos.d/CentOS-Sources.repo /etc/yum.repos.d/CentOS-Sources.repo.old ---> Using cache ---> acb86f40bc11 Step 8/17 : RUN yum-builddep python34 -y ---> Using cache ---> 48503440dd14 Step 9/17 : RUN yum install -y http://packages.wazuh.com/utils/nodejs/nodejs-8.9.4-2.el7.ppc64le.rpm http://packages.wazuh.com/utils/nodejs/nodejs-devel-8.9.4-2.el7.ppc64le.rpm http://packages.wazuh.com/utils/nodejs/npm-5.6.0-1.8.9.4.2.el7.ppc64le.rpm http://packages.wazuh.com/utils/nodejs/nodejs-debuginfo-8.9.4-2.el7.ppc64le.rpm ---> Using cache ---> 44e276738486 Step 10/17 : RUN curl -OL http://packages.wazuh.com/utils/gcc/gcc-9.4.0.tar.gz && tar xzf gcc-9.4.0.tar.gz && cd gcc-9.4.0/ && ./contrib/download_prerequisites && ./configure --prefix=/usr/local/gcc-9.4.0 --enable-languages=c,c++ --disable-multilib --disable-libsanitizer && make -j$(nproc) && make install && ln -fs /usr/local/gcc-9.4.0/bin/g++ /usr/bin/c++ && cd / && rm -rf gcc-* ---> Using cache ---> 9dd7c6eec6d9 Step 11/17 : ENV CPLUS_INCLUDE_PATH "/usr/local/gcc-9.4.0/include/c++/9.4.0/" ---> Using cache ---> 5139854476a6 Step 12/17 : ENV LD_LIBRARY_PATH "/usr/local/gcc-9.4.0/lib64/" ---> Using cache ---> 42d4472201df Step 13/17 : ENV PATH "/usr/local/gcc-9.4.0/bin:${PATH}" ---> Using cache ---> c684b86b5607 Step 14/17 : RUN curl -OL http://packages.wazuh.com/utils/cmake/cmake-3.18.3.tar.gz && tar -zxf cmake-3.18.3.tar.gz && cd cmake-3.18.3 && ./bootstrap --no-system-curl CC=/usr/local/gcc-9.4.0/bin/gcc CXX=/usr/local/gcc-9.4.0/bin/g++ && make -j$(nproc) && make install && cd / && rm -rf cmake-* && ln -sf /usr/bin/rpmbuild /usr/local/bin/rpmbuild ---> Using cache ---> a6a2cef2f660 Step 15/17 : ADD build.sh /usr/local/bin/build_package ---> Using cache ---> 205cd748cbf9 Step 16/17 : RUN chmod +x /usr/local/bin/build_package ---> Using cache ---> 48dd3b0bbebc Step 17/17 : ENTRYPOINT /usr/local/bin/build_package ---> Using cache ---> ae5a2d56383f Successfully built ae5a2d56383f + build_target=agent + wazuh_branch=4.4 + architecture_target=ppc64le + threads=2 + package_release=1973 + directory_base=/var/ossec + debug=no + checksum=no + wazuh_packages_branch=4.4 + use_local_specs=no + src=no + legacy=no + local_source_code=no + future=no + wazuh_version= + rpmbuild=rpmbuild + disable_debug_flag='%debug_package %{nil}' + '[' -z 1973 ']' + '[' no = no ']' + echo %debug_package '%{nil}' + '[' agent = api ']' + '[' no = no ']' + tar zx + curl -sL https://github.com/wazuh/wazuh/tarball/4.4 ++ cut -d v -f 2 ++ cat wazuh-wazuh-ba2fe1a/src/VERSION + wazuh_version=4.4.0 + build_dir=/build_wazuh + rpm_build_dir=/build_wazuh/rpmbuild + file_name=wazuh-agent-4.4.0-1973 + rpm_file=wazuh-agent-4.4.0-1973.ppc64le.rpm + src_file=wazuh-agent-4.4.0-1973.src.rpm + pkg_path=/build_wazuh/rpmbuild/RPMS/ppc64le + src_path=/build_wazuh/rpmbuild/SRPMS + extract_path=/build_wazuh/rpmbuild/RPMS/ppc64le + mkdir -p /build_wazuh/rpmbuild/BUILD /build_wazuh/rpmbuild/BUILDROOT /build_wazuh/rpmbuild/RPMS /build_wazuh/rpmbuild/SOURCES /build_wazuh/rpmbuild/SPECS /build_wazuh/rpmbuild/SRPMS + package_name=wazuh-agent-4.4.0 + cp -R wazuh-wazuh-ba2fe1a /build_wazuh/wazuh-agent-4.4.0 + '[' no = no ']' + specs_path=/downloaded_tmp_specs + mkdir -p /downloaded_tmp_specs + curl -L https://raw.githubusercontent.com/wazuh/wazuh-packages/4.4/rpms/SPECS/wazuh-agent.spec -o /downloaded_tmp_specs/wazuh-agent.spec % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 42848 100 42848 0 0 99466 0 --:--:-- --:--:-- --:--:-- 99415 + [[ no == \y\e\s ]] + cp /downloaded_tmp_specs/wazuh-agent.spec /build_wazuh/rpmbuild/SPECS/wazuh-agent-4.4.0.spec + cd /build_wazuh + tar czf /build_wazuh/rpmbuild/SOURCES/wazuh-agent-4.4.0.tar.gz wazuh-agent-4.4.0 + '[' ppc64le = i386 ']' + '[' ppc64le = armv7hl ']' + '[' no = no ']' + echo '%_source_filedigest_algorithm 8' + echo '%_binary_filedigest_algorithm 8' + echo ' %rhel 6' + echo ' %centos 6' + echo ' %centos_ver 6' + echo ' %dist .el6' + echo ' %el6 1' + rpmbuild=/usr/local/bin/rpmbuild + /usr/local/bin/rpmbuild --define '_sysconfdir /etc' --define '_topdir /build_wazuh/rpmbuild' --define '_threads 2' --define '_release 1973' --define '_localstatedir /var/ossec' --define '_debugenabled no' --target ppc64le -ba /build_wazuh/rpmbuild/SPECS/wazuh-agent-4.4.0.spec Building target platforms: ppc64le Building for target ppc64le Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3Xh9YL + umask 022 + cd /build_wazuh/rpmbuild/BUILD + cd /build_wazuh/rpmbuild/BUILD + rm -rf wazuh-agent-4.4.0 + /usr/bin/tar -xf - + /usr/bin/gzip -dc /build_wazuh/rpmbuild/SOURCES/wazuh-agent-4.4.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd wazuh-agent-4.4.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + ./gen_ossec.sh conf agent centos 6 /var/ossec + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.GKh2Co + umask 022 + cd /build_wazuh/rpmbuild/BUILD + cd wazuh-agent-4.4.0 + pushd src /build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src /build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0 + make clean rm -Rf coverage-report/ find . -name "*.gcno" -exec rm {} \; find . -name "*.gcda" -exec rm {} \; rm -f rm -f rm -f unit_tests/wrappers/common.o rm -f rm -f unit_tests/wrappers/externals/audit/libaudit_wrappers.o rm -f unit_tests/wrappers/externals/bzip2/bzlib_wrappers.o rm -f unit_tests/wrappers/externals/zlib/zlib_wrappers.o rm -f unit_tests/wrappers/externals/cJSON/cJSON_wrappers.o rm -f unit_tests/wrappers/externals/openssl/ssl_lib_wrappers.o unit_tests/wrappers/externals/openssl/digest_wrappers.o unit_tests/wrappers/externals/openssl/ssl_init_wrappers.o unit_tests/wrappers/externals/openssl/init_wrappers.o unit_tests/wrappers/externals/openssl/bio_wrappers.o rm -f unit_tests/wrappers/externals/procpc/readproc_wrappers.o rm -f unit_tests/wrappers/externals/sqlite/sqlite3_wrappers.o rm -f unit_tests/wrappers/externals/pcre2/pcre2_wrappers.o rm -f unit_tests/wrappers/libc/stdio_wrappers.o unit_tests/wrappers/libc/time_wrappers.o unit_tests/wrappers/libc/stdlib_wrappers.o unit_tests/wrappers/libc/string_wrappers.o rm -f unit_tests/wrappers/linux/inotify_wrappers.o unit_tests/wrappers/linux/socket_wrappers.o unit_tests/wrappers/linux/wait_wrappers.o rm -f unit_tests/wrappers/macos/libwazuh_wrappers.o unit_tests/wrappers/macos/libplist_wrappers.o rm -f unit_tests/wrappers/macos/libc/stdio_wrappers.o rm -f unit_tests/wrappers/macos/posix/dirent_wrappers.o rm -f unit_tests/wrappers/posix/pwd_wrappers.o unit_tests/wrappers/posix/signal_wrappers.o unit_tests/wrappers/posix/dirent_wrappers.o unit_tests/wrappers/posix/pthread_wrappers.o unit_tests/wrappers/posix/unistd_wrappers.o unit_tests/wrappers/posix/stat_wrappers.o unit_tests/wrappers/posix/time_wrappers.o unit_tests/wrappers/posix/grp_wrappers.o unit_tests/wrappers/posix/select_wrappers.o rm -f rm -f unit_tests/wrappers/wazuh/os_crypto/sha256_op_wrappers.o unit_tests/wrappers/wazuh/os_crypto/md5_op_wrappers.o unit_tests/wrappers/wazuh/os_crypto/keys_wrappers.o unit_tests/wrappers/wazuh/os_crypto/msgs_wrappers.o unit_tests/wrappers/wazuh/os_crypto/sha1_op_wrappers.o unit_tests/wrappers/wazuh/os_crypto/signature_wrappers.o rm -f unit_tests/wrappers/wazuh/os_execd/exec_wrappers.o rm -f unit_tests/wrappers/wazuh/os_net/os_net_wrappers.o rm -f unit_tests/wrappers/wazuh/os_regex/os_regex_wrappers.o rm -f unit_tests/wrappers/wazuh/os_xml/os_xml_wrappers.o rm -f unit_tests/wrappers/wazuh/shared/syscheck_op_wrappers.o unit_tests/wrappers/wazuh/shared/queue_op_wrappers.o unit_tests/wrappers/wazuh/shared/audit_op_wrappers.o unit_tests/wrappers/wazuh/shared/labels_op_wrappers.o unit_tests/wrappers/wazuh/shared/auth_client_wrappers.o unit_tests/wrappers/wazuh/shared/rwlock_op_wrappers.o unit_tests/wrappers/wazuh/shared/privsep_op_wrappers.o unit_tests/wrappers/wazuh/shared/cluster_op_wrappers.o unit_tests/wrappers/wazuh/shared/mq_op_wrappers.o unit_tests/wrappers/wazuh/shared/debug_op_wrappers.o unit_tests/wrappers/wazuh/shared/os_utils_wrappers.o unit_tests/wrappers/wazuh/shared/vector_op_wrappers.o unit_tests/wrappers/wazuh/shared/string_op_wrappers.o unit_tests/wrappers/wazuh/shared/pthreads_op_wrappers.o unit_tests/wrappers/wazuh/shared/hash_op_wrappers.o unit_tests/wrappers/wazuh/shared/validate_op_wrappers.o unit_tests/wrappers/wazuh/shared/json_op_wrappers.o unit_tests/wrappers/wazuh/shared/schedule_scan_wrappers.o unit_tests/wrappers/wazuh/shared/notify_op_wrappers.o unit_tests/wrappers/wazuh/shared/expression_wrappers.o unit_tests/wrappers/wazuh/shared/bqueue_op_wrappers.o unit_tests/wrappers/wazuh/shared/read-agents_wrappers.o unit_tests/wrappers/wazuh/shared/randombytes_wrappers.o unit_tests/wrappers/wazuh/shared/agent_op_wrappers.o unit_tests/wrappers/wazuh/shared/sysinfo_utils_wrappers.o unit_tests/wrappers/wazuh/shared/queue_linked_op_wrappers.o unit_tests/wrappers/wazuh/shared/sym_load_wrappers.o unit_tests/wrappers/wazuh/shared/exec_op_wrappers.o unit_tests/wrappers/wazuh/shared/rootcheck_op_wrappers.o unit_tests/wrappers/wazuh/shared/url_wrappers.o unit_tests/wrappers/wazuh/shared/time_op_wrappers.o unit_tests/wrappers/wazuh/shared/atomic_wrappers.o unit_tests/wrappers/wazuh/shared/rbtree_op_wrappers.o unit_tests/wrappers/wazuh/shared/fs_op_wrappers.o unit_tests/wrappers/wazuh/shared/file_op_wrappers.o unit_tests/wrappers/wazuh/shared/cluster_utils_wrappers.o unit_tests/wrappers/wazuh/shared/integrity_op_wrappers.o rm -f unit_tests/wrappers/wazuh/syscheckd/run_realtime_wrappers.o unit_tests/wrappers/wazuh/syscheckd/audit_rule_handling_wrappers.o unit_tests/wrappers/wazuh/syscheckd/fim_sync_wrappers.o unit_tests/wrappers/wazuh/syscheckd/run_check_wrappers.o unit_tests/wrappers/wazuh/syscheckd/registry.o unit_tests/wrappers/wazuh/syscheckd/syscom_wrappers.o unit_tests/wrappers/wazuh/syscheckd/fim_db_registries_wrappers.o unit_tests/wrappers/wazuh/syscheckd/syscheck_audit_wrappers.o unit_tests/wrappers/wazuh/syscheckd/audit_parse_wrappers.o unit_tests/wrappers/wazuh/syscheckd/win_whodata_wrappers.o unit_tests/wrappers/wazuh/syscheckd/config_wrappers.o unit_tests/wrappers/wazuh/syscheckd/fim_diff_changes_wrappers.o unit_tests/wrappers/wazuh/syscheckd/create_db_wrappers.o unit_tests/wrappers/wazuh/syscheckd/fim_db_wrappers.o rm -f unit_tests/wrappers/wazuh/wazuh_db/wdb_syscollector_wrappers.o unit_tests/wrappers/wazuh/wazuh_db/wdb_task_wrappers.o unit_tests/wrappers/wazuh/wazuh_db/wdb_global_wrappers.o unit_tests/wrappers/wazuh/wazuh_db/wdb_agents_helpers_wrappers.o unit_tests/wrappers/wazuh/wazuh_db/wdb_metadata_wrappers.o unit_tests/wrappers/wazuh/wazuh_db/wdb_state_wrappers.o unit_tests/wrappers/wazuh/wazuh_db/wdb_agents_wrappers.o unit_tests/wrappers/wazuh/wazuh_db/wdb_global_helpers_wrappers.o unit_tests/wrappers/wazuh/wazuh_db/wdb_integrity_wrappers.o unit_tests/wrappers/wazuh/wazuh_db/wdb_wrappers.o rm -f unit_tests/wrappers/wazuh/wazuh_modules/wm_agent_upgrade_wrappers.o unit_tests/wrappers/wazuh/wazuh_modules/wm_agent_upgrade_agent_wrappers.o unit_tests/wrappers/wazuh/wazuh_modules/wm_vuln_detector_wrappers.o unit_tests/wrappers/wazuh/wazuh_modules/wmodules_wrappers.o unit_tests/wrappers/wazuh/wazuh_modules/wm_task_manager_wrappers.o unit_tests/wrappers/wazuh/wazuh_modules/wm_exec_wrappers.o rm -f unit_tests/wrappers/wazuh/monitord/monitord_wrappers.o rm -f unit_tests/wrappers/wazuh/os_auth/os_auth_wrappers.o rm -f rm -f unit_tests/wrappers/wazuh/config/syscheck_config_wrappers.o rm -f unit_tests/wrappers/windows/heapapi_wrappers.o unit_tests/wrappers/windows/winsock_wrappers.o unit_tests/wrappers/windows/winbase_wrappers.o unit_tests/wrappers/windows/sddl_wrappers.o unit_tests/wrappers/windows/winevt_wrappers.o unit_tests/wrappers/windows/handleapi_wrappers.o unit_tests/wrappers/windows/url_wrappers.o unit_tests/wrappers/windows/aclapi_wrappers.o unit_tests/wrappers/windows/errhandlingapi_wrappers.o unit_tests/wrappers/windows/fileapi_wrappers.o unit_tests/wrappers/windows/processthreadsapi_wrappers.o unit_tests/wrappers/windows/stringapiset_wrappers.o unit_tests/wrappers/windows/synchapi_wrappers.o unit_tests/wrappers/windows/timezoneapi_wrappers.o unit_tests/wrappers/windows/sysinfoapi_wrappers.o unit_tests/wrappers/windows/securitybaseapi_wrappers.o unit_tests/wrappers/windows/io_wrappers.o unit_tests/wrappers/windows/winreg_wrappers.o rm -f unit_tests/wrappers/windows/libc/stdio_wrappers.o unit_tests/wrappers/windows/libc/kernel32_wrappers.o rm -f rm -f unit_tests/wrappers/wazuh/client-agent/buffer_wrappers.o unit_tests/wrappers/wazuh/client-agent/start_agent.o rm -f unit_tests/wrappers/wazuh/remoted/remoted_op_wrappers.o unit_tests/wrappers/wazuh/remoted/shared_download_wrappers.o unit_tests/wrappers/wazuh/remoted/netbuffer_wrappers.o unit_tests/wrappers/wazuh/remoted/config_wrappers.o unit_tests/wrappers/wazuh/remoted/state_wrappers.o unit_tests/wrappers/wazuh/remoted/request_wrappers.o unit_tests/wrappers/wazuh/remoted/netcounter_wrappers.o unit_tests/wrappers/wazuh/remoted/queue_wrappers.o rm -f unit_tests/wrappers/wazuh/analysisd/limits_wrappers.o unit_tests/wrappers/wazuh/analysisd/state_wrappers.o unit_tests/wrappers/wazuh/analysisd/config_wrappers.o rm -f unit_tests/wrappers/wazuh/logcollector/macos_log_wrappers.o unit_tests/wrappers/wazuh/logcollector/logcollector_wrappers.o rm -f unit_tests/wrappers/macos/libwazuh_wrappers.o unit_tests/wrappers/macos/libplist_wrappers.o rm -f unit_tests/wrappers/wazuh/data_provider/sysInfo_wrappers.o rm -f wazuh-maild - wazuh-csyslogd - wazuh-agentlessd - wazuh-execd - wazuh-logcollector - wazuh-remoted wazuh-agentd manage_agents utils active-responses wazuh-syscheckd wazuh-monitord wazuh-reportd wazuh-authd wazuh-analysisd wazuh-logtest-legacy wazuh-dbd - wazuh-integratord wazuh-modulesd wazuh-db rm -f wazuh-agentd agent-auth wazuh-logcollector wazuh-syscheckd wazuh-execd manage_agents active-responses wazuh-modulesd rm -f libwazuh.a libwazuhext.so rm -f os_zlib/os_zlib.o rm -f os_xml/os_xml_variables.o os_xml/os_xml.o os_xml/os_xml_access.o os_xml/os_xml_node_access.o os_xml/os_xml_writer.o rm -f os_regex/os_regex_match.o os_regex/os_regex.o os_regex/os_regex_str.o os_regex/os_match.o os_regex/os_regex_startswith.o os_regex/os_regex_free_pattern.o os_regex/os_match_compile.o os_regex/os_regex_strbreak.o os_regex/os_match_free_pattern.o os_regex/os_regex_maps.o os_regex/os_regex_execute.o os_regex/os_regex_compile.o os_regex/os_match_execute.o rm -f os_net/os_net.o rm -f shared/file-queue.o shared/json-queue.o shared/read-alert.o shared/rootcheck_op.o shared/queue_linked_op.o shared/regex_op.o shared/store_op.o shared/sig_op.o shared/exec_op.o shared/fs_op.o shared/request_op.o shared/log_builder.o shared/mem_op.o shared/file_op.o shared/pthreads_op.o shared/os_utils.o shared/rbtree_op.o shared/bzip2_op.o shared/cluster_utils.o shared/integrity_op.o shared/list_op.o shared/syscheck_op.o shared/yaml2json.o shared/buffer_op.o shared/report_op.o shared/audit_op.o shared/sym_load.o shared/wait_op.o shared/help.o shared/labels_op.o shared/auth_client.o shared/rwlock_op.o shared/time_op.o shared/privsep_op.o shared/url.o shared/hash_op.o shared/b64.o shared/custom_output_search_replace.o shared/debug_op.o shared/math_op.o shared/atomic.o shared/rules_op.o shared/string_op.o shared/read-agents.o shared/version_op.o shared/enrollment_op.o shared/mq_op.o shared/sysinfo_utils.o shared/notify_op.o shared/vector_op.o shared/validate_op.o shared/json_op.o shared/schedule_scan.o shared/expression.o shared/remoted_op.o shared/bqueue_op.o shared/queue_op.o shared/utf8_op.o shared/randombytes.o shared/agent_op.o shared/wazuhdb_op.o shared/debug_op_proc.o shared/file_op_proc.o rm -f config/wmodules-aws.o config/wmodules-office365.o config/localfile-config.o config/wmodules-docker.o config/rootcheck-config.o config/remote-config.o config/active-response.o config/wmodules-osquery-monitor.o config/integrator-config.o config/authd-key-request-config.o config/reports-config.o config/dbd-config.o config/wmodules_syscollector.o config/wmodules-task-manager.o config/config.o config/wmodules-github.o config/wazuh_db-config.o config/buffer-config.o config/syscheck-config.o config/global-config.o config/client-config.o config/socket-config.o config/labels-config.o config/email-alerts-config.o config/wmodules-sca.o config/authd-config.o config/wmodules-agent-upgrade.o config/cluster-config.o config/wmodules-key-request.o config/rules-config.o config/wmodules-oscap.o config/wmodules-vuln-detector.o config/wmodules-gcp.o config/wmodules-azure.o config/agentlessd-config.o config/alerts-config.o config/wmodules-command.o config/csyslogd-config.o config/wmodules-ciscat.o config/wmodules-fluent.o config/logtest-config.o config/wmodules-config.o rm -f os_maild/sendmail.o os_maild/sendcustomemail.o os_maild/os_maild_client.o os_maild/config.o os_maild/maild.o os_maild/mail_list.o os_maild/mailcom.o rm -f os_crypto/blowfish/bf_op.o os_crypto/md5/md5_op.o os_crypto/sha1/sha1_op.o os_crypto/shared/keys.o os_crypto/shared/msgs.o os_crypto/md5_sha1/md5_sha1_op.o os_crypto/md5_sha1_sha256/md5_sha1_sha256_op.o os_crypto/sha256/sha256_op.o os_crypto/sha512/sha512_op.o os_crypto/aes/aes_op.o os_crypto/hmac/hmac.o os_crypto/signature/signature.o rm -f os_csyslogd/config.o os_csyslogd/csyscom.o os_csyslogd/main.o os_csyslogd/csyslogd.o os_csyslogd/alert.o rm -f os_dbd/config.o os_dbd/db_op.o os_dbd/rules.o os_dbd/main.o os_dbd/server.o os_dbd/alert.o os_dbd/dbd.o rm -f agentlessd/lessdcom.o agentlessd/main.o agentlessd/agentlessd.o rm -f os_execd/exec.o os_execd/config.o os_execd/main.o os_execd/execd.o os_execd/wcom.o rm -f logcollector/read_ossecalert.o logcollector/read_command.o logcollector/state.o logcollector/read_djb_multilog.o logcollector/read_postgresql_log.o logcollector/main.o logcollector/read_ucs2_le.o logcollector/config.o logcollector/read_win_el.o logcollector/lccom.o logcollector/read_macos.o logcollector/read_mssql_log.o logcollector/read_json.o logcollector/read_win_event_channel.o logcollector/read_syslog.o logcollector/read_audit.o logcollector/read_multiline_regex.o logcollector/read_nmapg.o logcollector/logcollector.o logcollector/read_mysql_log.o logcollector/read_ucs2_be.o logcollector/read_multiline.o logcollector/macos_log.o logcollector/read_fullcommand.o logcollector/read_snortfull.o logcollector/read_ossecalert-event.o logcollector/read_command-event.o logcollector/state-event.o logcollector/read_djb_multilog-event.o logcollector/read_postgresql_log-event.o logcollector/main-event.o logcollector/read_ucs2_le-event.o logcollector/config-event.o logcollector/read_win_el-event.o logcollector/lccom-event.o logcollector/read_macos-event.o logcollector/read_mssql_log-event.o logcollector/read_json-event.o logcollector/read_win_event_channel-event.o logcollector/read_syslog-event.o logcollector/read_audit-event.o logcollector/read_multiline_regex-event.o logcollector/read_nmapg-event.o logcollector/logcollector-event.o logcollector/read_mysql_log-event.o logcollector/read_ucs2_be-event.o logcollector/read_multiline-event.o logcollector/macos_log-event.o logcollector/read_fullcommand-event.o logcollector/read_snortfull-event.o rm -f remoted/manager.o remoted/state.o remoted/sendmsg.o remoted/request.o remoted/cfga-forward.o remoted/queue.o remoted/ar-forward.o remoted/netcounter.o remoted/config.o remoted/secure.o remoted/remoted.o remoted/remcom.o remoted/main.o remoted/syslog.o remoted/shared_download.o remoted/syslogtcp.o remoted/netbuffer.o rm -f reportd/report.o rm -f client-agent/state.o client-agent/sendmsg.o client-agent/request.o client-agent/agentd.o client-agent/config.o client-agent/event-forward.o client-agent/rotate_log.o client-agent/receiver.o client-agent/main.o client-agent/restart_agent.o client-agent/buffer.o client-agent/start_agent.o client-agent/agcom.o client-agent/notify.o rm -f addagent/read_from_user.o addagent/main.o addagent/validate.o addagent/manage_keys.o addagent/manage_agents.o rm -f active-response/active_responses.o active-response/host-deny.o active-response/wazuh-slack.o active-response/kaspersky.o active-response/route-null.o active-response/disable-account.o active-response/firewalld-drop.o active-response/restart-wazuh.o active-response/ip-customblock.o active-response/netsh.o active-response/firewalls/pf.o active-response/firewalls/npf.o active-response/firewalls/ipfw.o active-response/firewalls/default-firewall-drop.o default-firewall-drop pf npf ipfw firewalld-drop disable-account host-deny ip-customblock restart-wazuh route-null kaspersky wazuh-slack firewall-drop rm -f util/parallel-regex.o util/verify-agent-conf.o util/clear_stats.o util/wazuh-regex.o util/agent_control.o util/list_agents.o clear_stats agent_control verify-agent-conf wazuh-regex parallel-regex rm -f rootcheck/unix-process.o rootcheck/rootcheck-config.o rootcheck/check_rc_files.o rootcheck/common.o rootcheck/check_rc_ports.o rootcheck/common_rcl.o rootcheck/win-process.o rootcheck/config.o rootcheck/rootcheck.o rootcheck/check_rc_if.o rootcheck/check_rc_sys.o rootcheck/check_open_ports.o rootcheck/os_string.o rootcheck/win-common.o rootcheck/check_rc_readproc.o rootcheck/check_rc_dev.o rootcheck/run_rk_check.o rootcheck/check_rc_policy.o rootcheck/check_rc_pids.o rootcheck/check_rc_trojans.o rootcheck.a rm -f syscheckd/db/schema_fim_db.o syscheckd/create_db.o syscheckd/run_check.o syscheckd/syscheck.o syscheckd/config.o syscheckd/fim_diff_changes.o syscheckd/fim_sync.o syscheckd/syscom.o syscheckd/main.o syscheckd/run_realtime.o syscheckd/db/fim_db.o syscheckd/db/fim_db_files.o syscheckd/db/fim_db_registries.o syscheckd/whodata/audit_healthcheck.o syscheckd/whodata/audit_rule_handling.o syscheckd/whodata/syscheck_audit.o syscheckd/whodata/audit_parse.o syscheckd/whodata/win_whodata.o syscheckd/registry/registry.o syscheckd/registry/events.o syscheckd/db/schema_fim_db.o syscheckd/create_db-event.o syscheckd/run_check-event.o syscheckd/syscheck-event.o syscheckd/config-event.o syscheckd/fim_diff_changes-event.o syscheckd/fim_sync-event.o syscheckd/syscom-event.o syscheckd/main-event.o syscheckd/run_realtime-event.o syscheckd/db/fim_db-event.o syscheckd/db/fim_db_files-event.o syscheckd/db/fim_db_registries-event.o syscheckd/whodata/audit_healthcheck-event.o syscheckd/whodata/audit_rule_handling-event.o syscheckd/whodata/syscheck_audit-event.o syscheckd/whodata/audit_parse-event.o syscheckd/whodata/win_whodata-event.o syscheckd/registry/registry-event.o syscheckd/registry/events-event.o syscheckd/db/schema_fim_db.o rm -f monitord/sign_log.o monitord/manage_files.o monitord/moncom.o monitord/monitord.o monitord/rotate_log.o monitord/main.o monitord/generate_reports.o monitord/monitor_actions.o monitord/compress_log.o rm -f os_auth/ssl.o os_auth/main-server.o os_auth/config.o os_auth/key_request.o os_auth/auth.o os_auth/local-server.o os_auth/main-client.o os_auth/check_cert.o os_auth/authcom.o rm -f analysisd/cdb/cdb_hash.o analysisd/cdb/uint32_pack.o analysisd/cdb/uint32_unpack.o analysisd/cdb/cdb_make.o analysisd/cdb/cdb.o analysisd/alerts/exec.o analysisd/alerts/log.o analysisd/alerts/getloglocation.o analysisd/decoders/plugin_decoders.o analysisd/decoders/decoder.o analysisd/decoders/hostinfo.o analysisd/decoders/decode-xml.o analysisd/decoders/winevtchannel.o analysisd/decoders/syscheck.o analysisd/decoders/syscollector.o analysisd/decoders/security_configuration_assessment.o analysisd/decoders/dbsync.o analysisd/decoders/geoip.o analysisd/decoders/rootcheck.o analysisd/decoders/ciscat.o analysisd/decoders/decoders_list.o analysisd/decoders/plugins/pf_decoder.o analysisd/decoders/plugins/json_decoder.o analysisd/decoders/plugins/sonicwall_decoder.o analysisd/decoders/plugins/symantecws_decoder.o analysisd/decoders/plugins/ossecalert_decoder.o analysisd/compiled_rules/generic_samples.o analysisd/decoders/plugin_decoders-test.o analysisd/decoders/decoder-test.o analysisd/decoders/hostinfo-test.o analysisd/decoders/decode-xml-test.o analysisd/decoders/winevtchannel-test.o analysisd/decoders/syscheck-test.o analysisd/decoders/syscollector-test.o analysisd/decoders/security_configuration_assessment-test.o analysisd/decoders/dbsync-test.o analysisd/decoders/geoip-test.o analysisd/decoders/rootcheck-test.o analysisd/decoders/ciscat-test.o analysisd/decoders/decoders_list-test.o analysisd/decoders/plugins/pf_decoder-test.o analysisd/decoders/plugins/json_decoder-test.o analysisd/decoders/plugins/sonicwall_decoder-test.o analysisd/decoders/plugins/symantecws_decoder-test.o analysisd/decoders/plugins/ossecalert_decoder-test.o analysisd/compiled_rules/generic_samples-test.o analysisd/decoders/plugin_decoders-live.o analysisd/decoders/decoder-live.o analysisd/decoders/hostinfo-live.o analysisd/decoders/decode-xml-live.o analysisd/decoders/winevtchannel-live.o analysisd/decoders/syscheck-live.o analysisd/decoders/syscollector-live.o analysisd/decoders/security_configuration_assessment-live.o analysisd/decoders/dbsync-live.o analysisd/decoders/geoip-live.o analysisd/decoders/rootcheck-live.o analysisd/decoders/ciscat-live.o analysisd/decoders/decoders_list-live.o analysisd/decoders/plugins/pf_decoder-live.o analysisd/decoders/plugins/json_decoder-live.o analysisd/decoders/plugins/sonicwall_decoder-live.o analysisd/decoders/plugins/symantecws_decoder-live.o analysisd/decoders/plugins/ossecalert_decoder-live.o analysisd/compiled_rules/generic_samples-live.o analysisd/format/json_extended.o analysisd/format/to_json.o analysisd/output/jsonout.o analysisd/output/prelude.o analysisd/output/zeromq.o analysisd/rules_list.o analysisd/state.o analysisd/mitre.o analysisd/lists.o analysisd/active-response.o analysisd/fts.o analysisd/lists_list.o analysisd/config.o analysisd/rules.o analysisd/labels.o analysisd/cleanevent.o analysisd/asyscom.o analysisd/logtest.o analysisd/eventinfo.o analysisd/limits.o analysisd/eventinfo_list.o analysisd/ar_json.o analysisd/lists_make.o analysisd/config_json.o analysisd/stats.o analysisd/accumulator.o analysisd/dodiff.o analysisd/rules_list-test.o analysisd/state-test.o analysisd/mitre-test.o analysisd/lists-test.o analysisd/active-response-test.o analysisd/fts-test.o analysisd/lists_list-test.o analysisd/config-test.o analysisd/rules-test.o analysisd/labels-test.o analysisd/cleanevent-test.o analysisd/asyscom-test.o analysisd/logtest-test.o analysisd/eventinfo-test.o analysisd/limits-test.o analysisd/eventinfo_list-test.o analysisd/ar_json-test.o analysisd/lists_make-test.o analysisd/config_json-test.o analysisd/stats-test.o analysisd/accumulator-test.o analysisd/dodiff-test.o analysisd/rules_list-live.o analysisd/state-live.o analysisd/mitre-live.o analysisd/lists-live.o analysisd/active-response-live.o analysisd/fts-live.o analysisd/lists_list-live.o analysisd/config-live.o analysisd/rules-live.o analysisd/labels-live.o analysisd/cleanevent-live.o analysisd/asyscom-live.o analysisd/logtest-live.o analysisd/eventinfo-live.o analysisd/limits-live.o analysisd/eventinfo_list-live.o analysisd/ar_json-live.o analysisd/lists_make-live.o analysisd/config_json-live.o analysisd/stats-live.o analysisd/accumulator-live.o analysisd/dodiff-live.o analysisd/testrule-test.o analysisd/analysisd-live.o analysisd/analysisd-test.o analysisd/makelists-live.o cdb.a alerts.a decoders.a decoders-test.a decoders-live.a analysisd/compiled_rules/compiled_rules.h analysisd/logmsg.o rm -f os_integrator/integrator.o os_integrator/intgcom.o os_integrator/config.o os_integrator/main.o rm -f wazuh_modules/main.o wazuh_modules/wm_control.o wazuh_modules/wm_azure.o wazuh_modules/wm_oscap.o wazuh_modules/wm_gcp.o wazuh_modules/wmodules.o wazuh_modules/wm_office365.o wazuh_modules/wm_exec.o wazuh_modules/wm_osquery_monitor.o wazuh_modules/wm_task_general.o wazuh_modules/wm_aws.o wazuh_modules/wm_syscollector.o wazuh_modules/wmcom.o wazuh_modules/wm_github.o wazuh_modules/wm_database.o wazuh_modules/wm_download.o wazuh_modules/wm_docker.o wazuh_modules/wm_sca.o wazuh_modules/wm_fluent.o wazuh_modules/wm_command.o wazuh_modules/wm_ciscat.o wazuh_modules/agent_upgrade/wm_agent_upgrade.o wazuh_modules/vulnerability_detector/wm_vuln_detector.o wazuh_modules/vulnerability_detector/wm_vuln_detector_evr.o wazuh_modules/vulnerability_detector/wm_vuln_detector_nvd.o wazuh_modules/task_manager/wm_task_manager.o wazuh_modules/task_manager/wm_task_manager_parsing.o wazuh_modules/task_manager/wm_task_manager_commands.o wazuh_modules/task_manager/wm_task_manager_tasks.o wazuh_modules/agent_upgrade/manager/wm_agent_upgrade_tasks.o wazuh_modules/agent_upgrade/manager/wm_agent_upgrade_manager.o wazuh_modules/agent_upgrade/manager/wm_agent_upgrade_validate.o wazuh_modules/agent_upgrade/manager/wm_agent_upgrade_upgrades.o wazuh_modules/agent_upgrade/manager/wm_agent_upgrade_parsing.o wazuh_modules/agent_upgrade/manager/wm_agent_upgrade_commands.o wazuh_modules/agent_upgrade/manager/wm_agent_upgrade_tasks_callbacks.o rm -f wazuh_db/main.o wazuh_db/wdb_metadata.o wazuh_db/wdb_global.o wazuh_db/wdb_agents.o wazuh_db/wdb_integrity.o wazuh_db/wdb.o wazuh_db/wdb_scan_info.o wazuh_db/wdb_com.o wazuh_db/wdb_task.o wazuh_db/wdb_syscollector.o wazuh_db/wdb_upgrade.o wazuh_db/wdb_delta_event.o wazuh_db/wdb_sca.o wazuh_db/wdb_state.o wazuh_db/wdb_parser.o wazuh_db/wdb_fim.o wazuh_db/wdb_rootcheck.o wazuh_db/wdb_ciscat.o wazuh_db/helpers/wdb_global_helpers.o wazuh_db/helpers/wdb_agents_helpers.o wazuh_db/schema_upgrade_v2.o wazuh_db/schema_vuln_detector.o wazuh_db/schema_upgrade_v9.o wazuh_db/schema_upgrade_v3.o wazuh_db/schema_global_upgrade_v1.o wazuh_db/schema_upgrade_v8.o wazuh_db/schema_agents.o wazuh_db/schema_upgrade_v6.o wazuh_db/schema_upgrade_v1.o wazuh_db/schema_task_manager.o wazuh_db/schema_global_upgrade_v4.o wazuh_db/schema_global.o wazuh_db/schema_upgrade_v7.o wazuh_db/schema_global_upgrade_v2.o wazuh_db/schema_upgrade_v5.o wazuh_db/schema_global_upgrade_v3.o wazuh_db/schema_upgrade_v4.o wazuh_db/schema_upgrade_v2.o wazuh_db/schema_vuln_detector.o wazuh_db/schema_upgrade_v9.o wazuh_db/schema_upgrade_v3.o wazuh_db/schema_global_upgrade_v1.o wazuh_db/schema_upgrade_v8.o wazuh_db/schema_agents.o wazuh_db/schema_upgrade_v6.o wazuh_db/schema_upgrade_v1.o wazuh_db/schema_task_manager.o wazuh_db/schema_global_upgrade_v4.o wazuh_db/schema_global.o wazuh_db/schema_upgrade_v7.o wazuh_db/schema_global_upgrade_v2.o wazuh_db/schema_upgrade_v5.o wazuh_db/schema_global_upgrade_v3.o wazuh_db/schema_upgrade_v4.o rm -f selinux/wazuh.mod rm -f selinux/wazuh.pp rm -f libwazuhshared.so rm -rf shared_modules/dbsync/build rm -rf shared_modules/rsync/build rm -rf shared_modules/utils/tests/build rm -rf wazuh_modules/syscollector/build rm -rf data_provider/build rm -rf libwazuhext rm -rf libstdc++.so.6 rm -rf libgcc_s.so.1 rm -f libwazuh.a rm -f libwazuhshared.dll rm -f libwazuhext.dll rm -f wazuh_modules/syscollector/*.o wazuh_modules/syscollector/*.obj rm -f win32/LICENSE.txt rm -f win32/help_win.txt rm -f win32/internal_options.conf rm -f win32/default-local_internal_options.conf rm -f win32/default-ossec.conf rm -f win32/restart-ossec.cmd rm -f win32/route-null.cmd rm -f win32/route-null-2012.cmd rm -f win32/netsh.cmd rm -f win32/netsh-win-2016.cmd rm -f win32/default-ossec-pre6.conf rm -f win32/restart-wazuh.exe rm -f win32/route-null.exe rm -f win32/netsh.exe rm -f win32/setup-win.o win32/setup-syscheck.o win32/win_service.o win32/win_utils.o win32/win_agent.o win32/setup-shared.o win32/agent_auth.o win32/setup-iis.o win32/ui/common.o win32/ui/os_win32ui.o win32/win_service_rk.o rm -f win32/icon.o win32/resource.o rm -f win32/wazuh-agent.exe win32/wazuh-agent-eventchannel.exe win32/manage_agents.exe win32/setup-windows.exe win32/setup-syscheck.exe win32/setup-iis.exe win32/os_win32ui.exe win32/agent-auth.exe win32/syscollector rm -f win32/wazuh-agent-*.exe rm -f win32/libwinpthread-1.dll rm -f win32/VERSION rm -f win32/REVISION rm -f win32/libstdc++-6.dll rm -f win32/libgcc_s_dw2-1.dll rm -f win32/libgcc_s_sjlj-1.dll make -C ../framework clean make[1]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/framework' rm -f *.o *.so.0 make[1]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/framework' rm -f ../etc/ossec.mc rm -f Config.OS + make deps TARGET=agent curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/cJSON.tar.gz || true cd external && test -e cJSON.tar.gz && gunzip cJSON.tar.gz || true cd external && test -e cJSON.tar && tar -xf cJSON.tar || true test -e external/cJSON.tar && rm external/cJSON.tar || true test -d external/cJSON ||\ (curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/cJSON.tar.gz &&\ cd external && gunzip cJSON.tar.gz && tar -xf cJSON.tar && rm cJSON.tar) curl -so external/curl.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/curl.tar.gz || true cd external && test -e curl.tar.gz && gunzip curl.tar.gz || true cd external && test -e curl.tar && tar -xf curl.tar || true test -e external/curl.tar && rm external/curl.tar || true test -d external/curl ||\ (curl -so external/curl.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/curl.tar.gz &&\ cd external && gunzip curl.tar.gz && tar -xf curl.tar && rm curl.tar) curl -so external/libdb.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/libdb.tar.gz || true cd external && test -e libdb.tar.gz && gunzip libdb.tar.gz || true cd external && test -e libdb.tar && tar -xf libdb.tar || true test -e external/libdb.tar && rm external/libdb.tar || true test -d external/libdb ||\ (curl -so external/libdb.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/libdb.tar.gz &&\ cd external && gunzip libdb.tar.gz && tar -xf libdb.tar && rm libdb.tar) curl -so external/libffi.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/libffi.tar.gz || true cd external && test -e libffi.tar.gz && gunzip libffi.tar.gz || true cd external && test -e libffi.tar && tar -xf libffi.tar || true test -e external/libffi.tar && rm external/libffi.tar || true test -d external/libffi ||\ (curl -so external/libffi.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/libffi.tar.gz &&\ cd external && gunzip libffi.tar.gz && tar -xf libffi.tar && rm libffi.tar) curl -so external/libyaml.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/libyaml.tar.gz || true cd external && test -e libyaml.tar.gz && gunzip libyaml.tar.gz || true cd external && test -e libyaml.tar && tar -xf libyaml.tar || true test -e external/libyaml.tar && rm external/libyaml.tar || true test -d external/libyaml ||\ (curl -so external/libyaml.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/libyaml.tar.gz &&\ cd external && gunzip libyaml.tar.gz && tar -xf libyaml.tar && rm libyaml.tar) curl -so external/openssl.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/openssl.tar.gz || true cd external && test -e openssl.tar.gz && gunzip openssl.tar.gz || true cd external && test -e openssl.tar && tar -xf openssl.tar || true test -e external/openssl.tar && rm external/openssl.tar || true test -d external/openssl ||\ (curl -so external/openssl.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/openssl.tar.gz &&\ cd external && gunzip openssl.tar.gz && tar -xf openssl.tar && rm openssl.tar) curl -so external/procps.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/procps.tar.gz || true cd external && test -e procps.tar.gz && gunzip procps.tar.gz || true cd external && test -e procps.tar && tar -xf procps.tar || true test -e external/procps.tar && rm external/procps.tar || true test -d external/procps ||\ (curl -so external/procps.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/procps.tar.gz &&\ cd external && gunzip procps.tar.gz && tar -xf procps.tar && rm procps.tar) curl -so external/sqlite.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/sqlite.tar.gz || true cd external && test -e sqlite.tar.gz && gunzip sqlite.tar.gz || true cd external && test -e sqlite.tar && tar -xf sqlite.tar || true test -e external/sqlite.tar && rm external/sqlite.tar || true test -d external/sqlite ||\ (curl -so external/sqlite.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/sqlite.tar.gz &&\ cd external && gunzip sqlite.tar.gz && tar -xf sqlite.tar && rm sqlite.tar) curl -so external/zlib.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/zlib.tar.gz || true cd external && test -e zlib.tar.gz && gunzip zlib.tar.gz || true cd external && test -e zlib.tar && tar -xf zlib.tar || true test -e external/zlib.tar && rm external/zlib.tar || true test -d external/zlib ||\ (curl -so external/zlib.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/zlib.tar.gz &&\ cd external && gunzip zlib.tar.gz && tar -xf zlib.tar && rm zlib.tar) curl -so external/audit-userspace.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/audit-userspace.tar.gz || true cd external && test -e audit-userspace.tar.gz && gunzip audit-userspace.tar.gz || true cd external && test -e audit-userspace.tar && tar -xf audit-userspace.tar || true test -e external/audit-userspace.tar && rm external/audit-userspace.tar || true test -d external/audit-userspace ||\ (curl -so external/audit-userspace.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/audit-userspace.tar.gz &&\ cd external && gunzip audit-userspace.tar.gz && tar -xf audit-userspace.tar && rm audit-userspace.tar) curl -so external/msgpack.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/msgpack.tar.gz || true cd external && test -e msgpack.tar.gz && gunzip msgpack.tar.gz || true cd external && test -e msgpack.tar && tar -xf msgpack.tar || true test -e external/msgpack.tar && rm external/msgpack.tar || true test -d external/msgpack ||\ (curl -so external/msgpack.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/msgpack.tar.gz &&\ cd external && gunzip msgpack.tar.gz && tar -xf msgpack.tar && rm msgpack.tar) curl -so external/bzip2.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/bzip2.tar.gz || true cd external && test -e bzip2.tar.gz && gunzip bzip2.tar.gz || true cd external && test -e bzip2.tar && tar -xf bzip2.tar || true test -e external/bzip2.tar && rm external/bzip2.tar || true test -d external/bzip2 ||\ (curl -so external/bzip2.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/bzip2.tar.gz &&\ cd external && gunzip bzip2.tar.gz && tar -xf bzip2.tar && rm bzip2.tar) curl -so external/nlohmann.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/nlohmann.tar.gz || true cd external && test -e nlohmann.tar.gz && gunzip nlohmann.tar.gz || true gzip: nlohmann.tar.gz: not in gzip format cd external && test -e nlohmann.tar && tar -xf nlohmann.tar || true test -e external/nlohmann.tar && rm external/nlohmann.tar || true test -d external/nlohmann ||\ (curl -so external/nlohmann.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/nlohmann.tar.gz &&\ cd external && gunzip nlohmann.tar.gz && tar -xf nlohmann.tar && rm nlohmann.tar) curl -so external/googletest.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/googletest.tar.gz || true cd external && test -e googletest.tar.gz && gunzip googletest.tar.gz || true gzip: googletest.tar.gz: not in gzip format cd external && test -e googletest.tar && tar -xf googletest.tar || true test -e external/googletest.tar && rm external/googletest.tar || true test -d external/googletest ||\ (curl -so external/googletest.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/googletest.tar.gz &&\ cd external && gunzip googletest.tar.gz && tar -xf googletest.tar && rm googletest.tar) curl -so external/libpcre2.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/libpcre2.tar.gz || true cd external && test -e libpcre2.tar.gz && gunzip libpcre2.tar.gz || true cd external && test -e libpcre2.tar && tar -xf libpcre2.tar || true test -e external/libpcre2.tar && rm external/libpcre2.tar || true test -d external/libpcre2 ||\ (curl -so external/libpcre2.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/libpcre2.tar.gz &&\ cd external && gunzip libpcre2.tar.gz && tar -xf libpcre2.tar && rm libpcre2.tar) curl -so external/libplist.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/libplist.tar.gz || true cd external && test -e libplist.tar.gz && gunzip libplist.tar.gz || true cd external && test -e libplist.tar && tar -xf libplist.tar || true test -e external/libplist.tar && rm external/libplist.tar || true test -d external/libplist ||\ (curl -so external/libplist.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/libplist.tar.gz &&\ cd external && gunzip libplist.tar.gz && tar -xf libplist.tar && rm libplist.tar) curl -so external/pacman.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/pacman.tar.gz || true cd external && test -e pacman.tar.gz && gunzip pacman.tar.gz || true cd external && test -e pacman.tar && tar -xf pacman.tar || true test -e external/pacman.tar && rm external/pacman.tar || true test -d external/pacman ||\ (curl -so external/pacman.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/pacman.tar.gz &&\ cd external && gunzip pacman.tar.gz && tar -xf pacman.tar && rm pacman.tar) curl -so external/libarchive.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/libarchive.tar.gz || true cd external && test -e libarchive.tar.gz && gunzip libarchive.tar.gz || true cd external && test -e libarchive.tar && tar -xf libarchive.tar || true test -e external/libarchive.tar && rm external/libarchive.tar || true test -d external/libarchive ||\ (curl -so external/libarchive.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/libarchive.tar.gz &&\ cd external && gunzip libarchive.tar.gz && tar -xf libarchive.tar && rm libarchive.tar) curl -so external/popt.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/popt.tar.gz || true cd external && test -e popt.tar.gz && gunzip popt.tar.gz || true cd external && test -e popt.tar && tar -xf popt.tar || true test -e external/popt.tar && rm external/popt.tar || true test -d external/popt ||\ (curl -so external/popt.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/popt.tar.gz &&\ cd external && gunzip popt.tar.gz && tar -xf popt.tar && rm popt.tar) curl -so external/rpm.tar.gz https://packages.wazuh.com/deps/18/libraries/linux/ppc64le/rpm.tar.gz || true cd external && test -e rpm.tar.gz && gunzip rpm.tar.gz || true cd external && test -e rpm.tar && tar -xf rpm.tar || true test -e external/rpm.tar && rm external/rpm.tar || true test -d external/rpm ||\ (curl -so external/rpm.tar.gz https://packages.wazuh.com/deps/18/libraries/sources/rpm.tar.gz &&\ cd external && gunzip rpm.tar.gz && tar -xf rpm.tar && rm rpm.tar) + make -j2 TARGET=agent USE_SELINUX=yes DEBUG=no cp /usr/local/gcc-9.4.0/lib/gcc/powerpc64le-unknown-linux-gnu/9.4.0/../../../../lib64/libstdc++.so.6 libstdc++.so.6 cp /usr/local/gcc-9.4.0/lib/gcc/powerpc64le-unknown-linux-gnu/9.4.0/../../../../lib64/libgcc_s.so.1 libgcc_s.so.1 strip -x libgcc_s.so.1 strip -x libstdc++.so.6 checkmodule -M -m -o selinux/wazuh.mod selinux/wazuh.te checkmodule: loading policy configuration from selinux/wazuh.te checkmodule: policy configuration loaded checkmodule: writing binary representation (version 19) to selinux/wazuh.mod semodule_package -o selinux/wazuh.pp -m selinux/wazuh.mod make build_sysinfo build_shared_modules build_syscollector make[1]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' CC libwazuhext.so cd data_provider/ && mkdir -p build && cd build && cmake .. && make cd shared_modules/dbsync/ && mkdir -p build && cd build && cmake .. && make -- The C compiler identification is GNU 4.8.5 -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 9.4.0 -- The CXX compiler identification is GNU 9.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features -- Detecting C compile features - done -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build -- Configuring done make[2]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' -- Generating done -- Build files have been written to: /build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build make[2]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[3]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' Scanning dependencies of target sysinfo make[3]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' Scanning dependencies of target dbsync make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' [ 10%] Building CXX object CMakeFiles/dbsync.dir/src/dbsync.cpp.o make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' [ 7%] Building CXX object CMakeFiles/sysinfo.dir/src/network/networkInterfaceLinux.cpp.o [ 15%] Building CXX object CMakeFiles/sysinfo.dir/src/osinfo/sysOsParsers.cpp.o [ 20%] Building CXX object CMakeFiles/dbsync.dir/src/dbsyncPipelineFactory.cpp.o [ 30%] Building CXX object CMakeFiles/dbsync.dir/src/dbsync_implementation.cpp.o [ 23%] Building CXX object CMakeFiles/sysinfo.dir/src/packages/packageLinuxParserDeb.cpp.o [ 40%] Building CXX object CMakeFiles/dbsync.dir/src/sqlite/sqlite_dbengine.cpp.o [ 30%] Building CXX object CMakeFiles/sysinfo.dir/src/packages/packageLinuxParserExtra.cpp.o [ 38%] Building CXX object CMakeFiles/sysinfo.dir/src/packages/packageLinuxParserRpm.cpp.o [ 46%] Building CXX object CMakeFiles/sysinfo.dir/src/packages/packageLinuxParserRpmLegacy.cpp.o [ 50%] Building CXX object CMakeFiles/dbsync.dir/src/sqlite/sqlite_wrapper.cpp.o [ 60%] Linking CXX shared library lib/libdbsync.so make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' [ 60%] Built target dbsync make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' Scanning dependencies of target dbsync_example make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' [ 70%] Building CXX object example/CMakeFiles/dbsync_example.dir/main.cpp.o [ 80%] Linking CXX executable ../bin/dbsync_example make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' [ 80%] Built target dbsync_example make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' Scanning dependencies of target dbsync_test_tool make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' [ 90%] Building CXX object testtool/CMakeFiles/dbsync_test_tool.dir/main.cpp.o [ 53%] Building CXX object CMakeFiles/sysinfo.dir/src/packages/rpmPackageManager.cpp.o [ 61%] Building CXX object CMakeFiles/sysinfo.dir/src/sysInfoLinux.cpp.o [100%] Linking CXX executable ../bin/dbsync_test_tool make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' [100%] Built target dbsync_test_tool make[3]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[2]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' cd shared_modules/rsync/ && mkdir -p build && cd build && cmake .. && make -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 9.4.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 done -- Generating done -- Build files have been written to: /build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build make[2]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' make[3]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' Scanning dependencies of target rsync [ 69%] Building CXX object CMakeFiles/sysinfo.dir/src/utilsWrapperLinux.cpp.o [ 76%] Building CXX object CMakeFiles/sysinfo.dir/src/sysInfo.cpp.o make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' [ 12%] Building CXX object CMakeFiles/rsync.dir/src/rsync.cpp.o [ 84%] Linking CXX shared library lib/libsysinfo.so make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' [ 84%] Built target sysinfo make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' Scanning dependencies of target sysinfo_test_tool make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' [ 92%] Building CXX object testtool/CMakeFiles/sysinfo_test_tool.dir/main.cpp.o [ 25%] Building CXX object CMakeFiles/rsync.dir/src/rsyncImplementation.cpp.o [100%] Linking CXX executable ../bin/sysinfo_test_tool make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' [100%] Built target sysinfo_test_tool make[3]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' make[2]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' [ 37%] Linking CXX shared library lib/librsync.so make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' [ 37%] Built target rsync make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' Scanning dependencies of target rsync_test_tool make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' [ 50%] Building CXX object testtool/CMakeFiles/rsync_test_tool.dir/agentEmulator.cpp.o [ 62%] Building CXX object testtool/CMakeFiles/rsync_test_tool.dir/main.cpp.o [ 75%] Building CXX object testtool/CMakeFiles/rsync_test_tool.dir/oneTimeSync.cpp.o [ 87%] Building CXX object testtool/CMakeFiles/rsync_test_tool.dir/managerEmulator.cpp.o [100%] Linking CXX executable ../bin/rsync_test_tool make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' [100%] Built target rsync_test_tool make[3]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' make[2]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' cd wazuh_modules/syscollector/ && mkdir -p build && cd build && cmake .. && make -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 9.4.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 done -- Generating done -- Build files have been written to: /build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build make[2]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[3]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' Scanning dependencies of target syscollector make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' [ 16%] Building CXX object CMakeFiles/syscollector.dir/src/syscollector.cpp.o [ 33%] Building CXX object CMakeFiles/syscollector.dir/src/syscollectorImp.cpp.o [ 50%] Building CXX object CMakeFiles/syscollector.dir/src/syscollectorNormalizer.cpp.o [ 66%] Linking CXX shared library lib/libsyscollector.so make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' [ 66%] Built target syscollector make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' Scanning dependencies of target syscollector_test_tool make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' [ 83%] Building CXX object testtool/CMakeFiles/syscollector_test_tool.dir/main.cpp.o [100%] Linking CXX executable ../bin/syscollector_test_tool make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' [100%] Built target syscollector_test_tool make[3]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[2]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[1]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' make wazuh-agentd agent-auth wazuh-logcollector wazuh-syscheckd wazuh-execd manage_agents active-responses wazuh-modulesd make[1]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' CC client-agent/state.o CC client-agent/sendmsg.o CC client-agent/request.o CC client-agent/agentd.o CC client-agent/config.o CC client-agent/event-forward.o CC client-agent/rotate_log.o CC client-agent/receiver.o CC client-agent/main.o CC client-agent/restart_agent.o CC client-agent/buffer.o CC client-agent/start_agent.o CC client-agent/agcom.o CC client-agent/notify.o CC monitord/rotate_log.o CC monitord/compress_log.o CC config/wmodules-aws.o CC config/wmodules-office365.o CC config/localfile-config.o CC config/wmodules-docker.o CC config/rootcheck-config.o CC config/remote-config.o CC config/active-response.o CC config/wmodules-osquery-monitor.o CC config/integrator-config.o CC config/authd-key-request-config.o CC config/reports-config.o CC config/dbd-config.o CC config/wmodules_syscollector.o CC config/wmodules-task-manager.o CC config/config.o CC config/wmodules-github.o CC config/wazuh_db-config.o CC config/buffer-config.o CC config/syscheck-config.o CC config/global-config.o config/global-config.c: In function 'Read_Global': config/global-config.c:160:17: warning: unused variable 'xml_limits' [-Wunused-variable] 160 | const char *xml_limits = "limits"; | ^~~~~~~~~~ config/global-config.c:125:31: warning: unused parameter 'xml' [-Wunused-parameter] 125 | int Read_Global(const OS_XML *xml, XML_NODE node, void *configp, void *mailp) | ~~~~~~~~~~~~~~^~~ CC config/client-config.o CC config/socket-config.o CC config/labels-config.o CC config/email-alerts-config.o CC config/wmodules-sca.o CC config/authd-config.o CC config/wmodules-agent-upgrade.o CC config/cluster-config.o CC config/wmodules-key-request.o CC config/rules-config.o CC config/wmodules-oscap.o CC config/wmodules-vuln-detector.o CC config/wmodules-gcp.o CC config/wmodules-azure.o CC config/agentlessd-config.o CC config/alerts-config.o CC config/wmodules-command.o CC config/csyslogd-config.o CC config/wmodules-ciscat.o CC config/wmodules-fluent.o CC config/logtest-config.o CC config/wmodules-config.o CC wazuh_modules/wm_control.o CC wazuh_modules/wm_azure.o CC wazuh_modules/wm_oscap.o CC wazuh_modules/wm_gcp.o CC wazuh_modules/wmodules.o CC wazuh_modules/wm_office365.o CC wazuh_modules/wm_exec.o CC wazuh_modules/wm_osquery_monitor.o CC wazuh_modules/wm_task_general.o CC wazuh_modules/wm_aws.o CC wazuh_modules/wm_syscollector.o CC wazuh_modules/wmcom.o CC wazuh_modules/wm_github.o CC wazuh_modules/wm_database.o CC wazuh_modules/wm_download.o CC wazuh_modules/wm_docker.o CC wazuh_modules/wm_sca.o CC wazuh_modules/wm_fluent.o CC wazuh_modules/wm_command.o CC wazuh_modules/wm_ciscat.o CC wazuh_modules/agent_upgrade/wm_agent_upgrade.o CC wazuh_modules/agent_upgrade/agent/wm_agent_upgrade_agent.o CC wazuh_modules/agent_upgrade/agent/wm_agent_upgrade_com.o CC wazuh_db/wdb_metadata.o CC wazuh_db/wdb_global.o CC wazuh_db/wdb_agents.o CC wazuh_db/wdb_integrity.o CC wazuh_db/wdb.o CC wazuh_db/wdb_scan_info.o CC wazuh_db/wdb_com.o CC wazuh_db/wdb_task.o CC wazuh_db/wdb_syscollector.o CC wazuh_db/wdb_upgrade.o CC wazuh_db/wdb_delta_event.o CC wazuh_db/wdb_sca.o CC wazuh_db/wdb_state.o CC wazuh_db/wdb_parser.o CC wazuh_db/wdb_fim.o CC wazuh_db/wdb_rootcheck.o CC wazuh_db/wdb_ciscat.o CC wazuh_db/helpers/wdb_global_helpers.o CC wazuh_db/helpers/wdb_agents_helpers.o CC wazuh_db/schema_upgrade_v2.o CC wazuh_db/schema_vuln_detector.o CC wazuh_db/schema_upgrade_v9.o CC wazuh_db/schema_upgrade_v3.o CC wazuh_db/schema_global_upgrade_v1.o CC wazuh_db/schema_upgrade_v8.o CC wazuh_db/schema_agents.o CC wazuh_db/schema_upgrade_v6.o CC wazuh_db/schema_upgrade_v1.o CC wazuh_db/schema_task_manager.o CC wazuh_db/schema_global_upgrade_v4.o CC wazuh_db/schema_global.o CC wazuh_db/schema_upgrade_v7.o CC wazuh_db/schema_global_upgrade_v2.o CC wazuh_db/schema_upgrade_v5.o CC wazuh_db/schema_global_upgrade_v3.o CC wazuh_db/schema_upgrade_v4.o CC os_crypto/blowfish/bf_op.o CC os_crypto/md5/md5_op.o CC os_crypto/sha1/sha1_op.o CC os_crypto/shared/keys.o CC os_crypto/shared/msgs.o CC os_crypto/md5_sha1/md5_sha1_op.o CC os_crypto/md5_sha1_sha256/md5_sha1_sha256_op.o CC os_crypto/sha256/sha256_op.o CC os_crypto/sha512/sha512_op.o CC os_crypto/aes/aes_op.o CC os_crypto/hmac/hmac.o CC os_crypto/signature/signature.o CC shared/file-queue.o CC shared/json-queue.o CC shared/read-alert.o CC shared/rootcheck_op.o CC shared/queue_linked_op.o CC shared/regex_op.o CC shared/store_op.o CC shared/sig_op.o CC shared/exec_op.o CC shared/fs_op.o CC shared/request_op.o CC shared/log_builder.o CC shared/mem_op.o CC shared/file_op.o CC shared/pthreads_op.o CC shared/os_utils.o CC shared/rbtree_op.o CC shared/bzip2_op.o CC shared/cluster_utils.o CC shared/integrity_op.o CC shared/list_op.o CC shared/syscheck_op.o CC shared/yaml2json.o CC shared/buffer_op.o CC shared/report_op.o CC shared/audit_op.o CC shared/sym_load.o CC shared/wait_op.o CC shared/help.o CC shared/labels_op.o CC shared/auth_client.o CC shared/rwlock_op.o CC shared/time_op.o CC shared/privsep_op.o CC shared/url.o CC shared/hash_op.o CC shared/b64.o CC shared/custom_output_search_replace.o CC shared/debug_op.o CC shared/math_op.o CC shared/atomic.o CC shared/rules_op.o CC shared/string_op.o CC shared/read-agents.o CC shared/version_op.o CC shared/enrollment_op.o CC shared/mq_op.o CC shared/sysinfo_utils.o CC shared/notify_op.o CC shared/vector_op.o CC shared/validate_op.o CC shared/json_op.o CC shared/schedule_scan.o CC shared/expression.o CC shared/remoted_op.o CC shared/bqueue_op.o CC shared/queue_op.o CC shared/utf8_op.o CC shared/randombytes.o CC shared/agent_op.o CC shared/wazuhdb_op.o CC os_net/os_net.o CC os_regex/os_regex_match.o CC os_regex/os_regex.o CC os_regex/os_regex_str.o CC os_regex/os_match.o CC os_regex/os_regex_startswith.o CC os_regex/os_regex_free_pattern.o CC os_regex/os_match_compile.o CC os_regex/os_regex_strbreak.o CC os_regex/os_match_free_pattern.o CC os_regex/os_regex_maps.o CC os_regex/os_regex_execute.o CC os_regex/os_regex_compile.o CC os_regex/os_match_execute.o CC os_xml/os_xml_variables.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_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 CC os_auth/main-client.o CC logcollector/read_ossecalert.o CC logcollector/read_command.o CC logcollector/state.o CC logcollector/read_djb_multilog.o CC logcollector/read_postgresql_log.o CC logcollector/main.o CC logcollector/read_ucs2_le.o CC logcollector/config.o CC logcollector/read_win_el.o CC logcollector/lccom.o CC logcollector/read_macos.o CC logcollector/read_mssql_log.o CC logcollector/read_json.o CC logcollector/read_win_event_channel.o CC logcollector/read_syslog.o CC logcollector/read_audit.o CC logcollector/read_multiline_regex.o CC logcollector/read_nmapg.o CC logcollector/logcollector.o CC logcollector/read_mysql_log.o CC logcollector/read_ucs2_be.o CC logcollector/read_multiline.o CC logcollector/macos_log.o CC logcollector/read_fullcommand.o CC logcollector/read_snortfull.o CC syscheckd/db/schema_fim_db.o CC syscheckd/create_db.o CC syscheckd/run_check.o CC syscheckd/syscheck.o CC syscheckd/config.o CC syscheckd/fim_diff_changes.o CC syscheckd/fim_sync.o CC syscheckd/syscom.o CC syscheckd/main.o CC syscheckd/run_realtime.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_rule_handling.o CC syscheckd/whodata/syscheck_audit.o CC syscheckd/whodata/audit_parse.o CC syscheckd/whodata/win_whodata.o CC syscheckd/registry/registry.o CC syscheckd/registry/events.o CC rootcheck/unix-process.o CC rootcheck/check_rc_files.o CC rootcheck/common.o CC rootcheck/check_rc_ports.o CC rootcheck/common_rcl.o CC rootcheck/win-process.o CC rootcheck/config.o CC rootcheck/rootcheck.o CC rootcheck/check_rc_if.o CC rootcheck/check_rc_sys.o CC rootcheck/check_open_ports.o CC rootcheck/os_string.o CC rootcheck/win-common.o CC rootcheck/check_rc_readproc.o CC rootcheck/check_rc_dev.o CC rootcheck/run_rk_check.o CC rootcheck/check_rc_policy.o CC rootcheck/check_rc_pids.o CC rootcheck/check_rc_trojans.o CC os_execd/exec.o CC os_execd/config.o CC os_execd/main.o CC os_execd/execd.o CC os_execd/wcom.o In file included from os_execd/execd.c:18: ./active-response/active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from os_execd/execd.c:11: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC active-response/active_responses.o CC addagent/read_from_user.o In file included from active-response/active_responses.c:10: active-response/active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/active_responses.h:10, from active-response/active_responses.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC addagent/main.o CC addagent/manage_keys.o CC addagent/manage_agents.o CC active-response/firewalls/default-firewall-drop.o CC shared/file_op_proc.o In file included from active-response/firewalls/default-firewall-drop.c:10: active-response/firewalls/../active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/firewalls/../active_responses.h:10, from active-response/firewalls/default-firewall-drop.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC shared/debug_op_proc.o CC active-response/firewalls/pf.o In file included from active-response/firewalls/pf.c:10: active-response/firewalls/../active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/firewalls/../active_responses.h:10, from active-response/firewalls/pf.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC active-response/firewalls/npf.o CC active-response/firewalls/ipfw.o In file included from active-response/firewalls/npf.c:10: active-response/firewalls/../active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/firewalls/../active_responses.h:10, from active-response/firewalls/npf.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC active-response/firewalld-drop.o In file included from active-response/firewalls/ipfw.c:10: active-response/firewalls/../active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/firewalls/../active_responses.h:10, from active-response/firewalls/ipfw.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC active-response/disable-account.o In file included from active-response/firewalld-drop.c:10: active-response/active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/active_responses.h:10, from active-response/firewalld-drop.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC active-response/host-deny.o In file included from active-response/disable-account.c:10: active-response/active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/active_responses.h:10, from active-response/disable-account.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC active-response/ip-customblock.o In file included from active-response/host-deny.c:10: active-response/active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/active_responses.h:10, from active-response/host-deny.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC active-response/restart-wazuh.o In file included from active-response/ip-customblock.c:10: active-response/active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/active_responses.h:10, from active-response/ip-customblock.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC active-response/route-null.o In file included from active-response/restart-wazuh.c:10: active-response/active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/active_responses.h:10, from active-response/restart-wazuh.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC active-response/kaspersky.o In file included from active-response/route-null.c:10: active-response/active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/active_responses.h:10, from active-response/route-null.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC active-response/wazuh-slack.o In file included from active-response/kaspersky.c:10: active-response/active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/active_responses.h:10, from active-response/kaspersky.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | CC wazuh_modules/main.o In file included from active-response/wazuh-slack.c:10: active-response/active_responses.h:18: warning: "ECHO" redefined 18 | #define ECHO "/bin/echo" | In file included from /usr/include/termios.h:40, from /usr/include/bits/ioctl-types.h:5, from /usr/include/sys/ioctl.h:29, from /usr/include/sys/mount.h:25, from ./headers/shared.h:53, from active-response/active_responses.h:10, from active-response/wazuh-slack.c:10: /usr/include/bits/termios.h:191: note: this is the location of the previous definition 191 | #define ECHO 0x00000008 | LINK libwazuh.a LINK rootcheck.a RANLIB rootcheck.a RANLIB libwazuh.a CC libwazuhshared.so CC wazuh-agentd CC agent-auth CC wazuh-logcollector CC wazuh-syscheckd CC wazuh-execd CC manage_agents CC default-firewall-drop CC pf CC npf CC ipfw CC firewalld-drop CC disable-account CC host-deny CC ip-customblock CC restart-wazuh CC route-null CC kaspersky CC wazuh-slack CC wazuh-modulesd make[1]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' make settings make[1]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' General settings: TARGET: agent V: DEBUG: no DEBUGAD INSTALLDIR: DATABASE: ONEWAY: no CLEANFULL: no RESOURCES_URL: https://packages.wazuh.com/deps/18 EXTERNAL_SRC_ONLY: User settings: WAZUH_GROUP: wazuh WAZUH_USER: wazuh USE settings: USE_ZEROMQ: no USE_GEOIP: no USE_PRELUDE: no USE_INOTIFY: no USE_BIG_ENDIAN: no USE_SELINUX: yes USE_AUDIT: yes DISABLE_SYSC: no DISABLE_CISCAT: no Mysql settings: includes: libs: Pgsql settings: includes: libs: Defines: -DOSSECHIDS -DUSER="wazuh" -DGROUPGLOBAL="wazuh" -DLinux -DINOTIFY_ENABLED -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -DENABLE_SYSC -DENABLE_CISCAT -DENABLE_AUDIT -DCLIENT Compiler: CFLAGS -pthread -Iexternal/libdb/build_unix/ -Iexternal/pacman/lib/libalpm/ -Iexternal/libarchive/libarchive -Wl,--start-group -Iexternal/audit-userspace/lib -DNDEBUG -O2 -DOSSECHIDS -DUSER="wazuh" -DGROUPGLOBAL="wazuh" -DLinux -DINOTIFY_ENABLED -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -DENABLE_SYSC -DENABLE_CISCAT -DENABLE_AUDIT -DCLIENT -pipe -Wall -Wextra -std=gnu99 -I./ -I./headers/ -Iexternal/openssl/include -Iexternal/cJSON/ -Iexternal/libyaml/include -Iexternal/curl/include -Iexternal/msgpack/include -Iexternal/bzip2/ -Ishared_modules/common -Ishared_modules/dbsync/include -Ishared_modules/rsync/include -Iwazuh_modules/syscollector/include -Idata_provider/include -Iexternal/libpcre2/include -Iexternal/rpm//builddir/output/include LDFLAGS '-Wl,-rpath,/../lib' -pthread -lrt -ldl -O2 -Lshared_modules/dbsync/build/lib -Lshared_modules/rsync/build/lib -Lwazuh_modules/syscollector/build/lib -Ldata_provider/build/lib LIBS -lrt -ldl -lm CC gcc MAKE make make[1]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' Done building agent + popd /build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.L0QF1D + umask 022 + cd /build_wazuh/rpmbuild/BUILD + '[' /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le '!=' / ']' + rm -rf /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le ++ dirname /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le + mkdir -p /build_wazuh/rpmbuild/BUILDROOT + mkdir /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le + cd wazuh-agent-4.4.0 + rm -fr /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le + echo 'USER_LANGUAGE="en"' + echo 'USER_NO_STOP="y"' + echo 'USER_INSTALL_TYPE="agent"' + echo 'USER_DIR="/var/ossec"' + echo 'USER_DELETE_DIR="y"' + echo 'USER_ENABLE_ACTIVE_RESPONSE="y"' + echo 'USER_ENABLE_SYSCHECK="y"' + echo 'USER_ENABLE_ROOTCHECK="y"' + echo 'USER_ENABLE_OPENSCAP="n"' + echo 'USER_ENABLE_SYSCOLLECTOR="y"' + echo 'USER_ENABLE_CISCAT="y"' + echo 'USER_UPDATE="n"' + echo 'USER_AGENT_SERVER_IP="MANAGER_IP"' + echo 'USER_CA_STORE="/path/to/my_cert.pem"' + echo 'USER_AUTO_START="n"' + ./install.sh Wazuh v4.4.0 (Rev. 40401) Installation Script - https://www.wazuh.com You are about to start the installation process of Wazuh. You must have a C compiler pre-installed in your system. - System: Linux 1c1e6c67d49f 3.10.0-957.21.3.el7.ppc64le (centos 7.9) - User: root - Host: 1c1e6c67d49f -- Press ENTER to continue or Ctrl-C to abort. -- - Installation will be made at /var/ossec . 3- Configuring Wazuh. 3.2- Do you want to run the integrity check daemon? (y/n) [y]: - Running syscheck (integrity check daemon). 3.3- Do you want to run the rootkit detection engine? (y/n) [y]: - Running rootcheck (rootkit detection). 3.5 - Do you want to enable active response? (y/n) [y]: - Active response enabled. 3.6- Remote upgrades use packages signed by the system maintainer. The corresponding certificate (or root certificate) must be installed in the system in order to verify the WPK packages. By default, the root certificate by Wazuh is installed. - Do you want to add more certificates? (y/n)? [n]: - Enter the path to a X509 certificate or a certificate folder: Warning: No such file or directory "/path/to/my_cert.pem". 3.7- Setting the configuration to analyze the following logs: -- /var/ossec/logs/active-responses.log - If you want to monitor any other file, just change the ossec.conf and add a new localfile entry. Any questions about the configuration can be answered by visiting us online at https://documentation.wazuh.com/. --- Press ENTER to continue --- 4- Installing the system DIR="/var/ossec" - Running the Makefile make build_sysinfo build_shared_modules build_syscollector make[1]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' cd data_provider/ && mkdir -p build && cd build && cmake .. && make -- Configuring done -- Generating done -- Build files have been written to: /build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build make[2]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' make[3]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' [ 84%] Built target sysinfo make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' [100%] Built target sysinfo_test_tool make[3]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' make[2]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/data_provider/build' cd shared_modules/dbsync/ && mkdir -p build && cd build && cmake .. && make -- Configuring done -- Generating done -- Build files have been written to: /build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build make[2]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[3]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' [ 60%] Built target dbsync make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' [ 80%] Built target dbsync_example make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' [100%] Built target dbsync_test_tool make[3]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' make[2]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/dbsync/build' cd shared_modules/rsync/ && mkdir -p build && cd build && cmake .. && make -- Configuring done -- Generating done -- Build files have been written to: /build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build make[2]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' make[3]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' [ 37%] Built target rsync make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' [100%] Built target rsync_test_tool make[3]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' make[2]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/shared_modules/rsync/build' cd wazuh_modules/syscollector/ && mkdir -p build && cd build && cmake .. && make -- Configuring done -- Generating done -- Build files have been written to: /build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build make[2]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[3]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' [ 66%] Built target syscollector make[4]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[4]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' [100%] Built target syscollector_test_tool make[3]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[2]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src/wazuh_modules/syscollector/build' make[1]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' make wazuh-agentd agent-auth wazuh-logcollector wazuh-syscheckd wazuh-execd manage_agents active-responses wazuh-modulesd make[1]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' make[1]: `wazuh-agentd' is up to date. make[1]: `agent-auth' is up to date. make[1]: `wazuh-logcollector' is up to date. make[1]: `wazuh-syscheckd' is up to date. make[1]: `wazuh-execd' is up to date. make[1]: `manage_agents' is up to date. make[1]: Nothing to be done for `active-responses'. make[1]: `wazuh-modulesd' is up to date. make[1]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' make settings make[1]: Entering directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' General settings: TARGET: agent V: DEBUG: DEBUGAD INSTALLDIR: /var/ossec DATABASE: ONEWAY: no CLEANFULL: no RESOURCES_URL: https://packages.wazuh.com/deps/18 EXTERNAL_SRC_ONLY: User settings: WAZUH_GROUP: wazuh WAZUH_USER: wazuh USE settings: USE_ZEROMQ: no USE_GEOIP: no USE_PRELUDE: no USE_INOTIFY: no USE_BIG_ENDIAN: no USE_SELINUX: yes USE_AUDIT: yes DISABLE_SYSC: no DISABLE_CISCAT: no Mysql settings: includes: libs: Pgsql settings: includes: libs: Defines: -DOSSECHIDS -DUSER="wazuh" -DGROUPGLOBAL="wazuh" -DLinux -DINOTIFY_ENABLED -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -DENABLE_SYSC -DENABLE_CISCAT -DENABLE_AUDIT -DCLIENT Compiler: CFLAGS -pthread -Iexternal/libdb/build_unix/ -Iexternal/pacman/lib/libalpm/ -Iexternal/libarchive/libarchive -Wl,--start-group -Iexternal/audit-userspace/lib -DNDEBUG -O2 -DOSSECHIDS -DUSER="wazuh" -DGROUPGLOBAL="wazuh" -DLinux -DINOTIFY_ENABLED -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -DENABLE_SYSC -DENABLE_CISCAT -DENABLE_AUDIT -DCLIENT -pipe -Wall -Wextra -std=gnu99 -I./ -I./headers/ -Iexternal/openssl/include -Iexternal/cJSON/ -Iexternal/libyaml/include -Iexternal/curl/include -Iexternal/msgpack/include -Iexternal/bzip2/ -Ishared_modules/common -Ishared_modules/dbsync/include -Ishared_modules/rsync/include -Iwazuh_modules/syscollector/include -Idata_provider/include -Iexternal/libpcre2/include -Iexternal/rpm//builddir/output/include LDFLAGS '-Wl,-rpath,/../lib' -pthread -lrt -ldl -O2 -Lshared_modules/dbsync/build/lib -Lshared_modules/rsync/build/lib -Lwazuh_modules/syscollector/build/lib -Ldata_provider/build/lib LIBS -lrt -ldl -lm CC gcc MAKE make make[1]: Leaving directory `/build_wazuh/rpmbuild/BUILD/wazuh-agent-4.4.0/src' Done building agent Wait for success... success Removing old SCA policies... Installing SCA policies... - System is Redhat Linux. - Init script modified to start Wazuh during boot. - Configuration finished properly. - To start Wazuh: /var/ossec/bin/wazuh-control start - To stop Wazuh: /var/ossec/bin/wazuh-control stop - The configuration can be viewed or modified at /var/ossec/etc/ossec.conf Thanks for using Wazuh. Please don't hesitate to contact us if you need help or find any bugs. Use our public Mailing List at: https://groups.google.com/forum/#!forum/wazuh More information can be found at: - http://www.wazuh.com --- Press ENTER to finish (maybe more information below). --- - More information at: https://documentation.wazuh.com/ + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/etc + touch /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/etc/ossec-init.conf + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/etc/rc.d/init.d + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/.ssh + cp -pr /var/ossec/active-response /var/ossec/agentless /var/ossec/backup /var/ossec/bin /var/ossec/etc /var/ossec/lib /var/ossec/logs /var/ossec/queue /var/ossec/ruleset /var/ossec/tmp /var/ossec/var /var/ossec/wodles /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/ + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/usr/lib/systemd/system/ + sed -i s:WAZUH_HOME_TMP:/var/ossec:g src/init/templates/ossec-hids-rh.init + install -m 0755 src/init/templates/ossec-hids-rh.init /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/etc/rc.d/init.d/wazuh-agent + sed -i s:WAZUH_HOME_TMP:/var/ossec:g src/init/templates/wazuh-agent.service + install -m 0644 src/init/templates/wazuh-agent.service /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/usr/lib/systemd/system/ + rm -f /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/ruleset/sca/cis_centos7_linux.yml + mkdir -p '/build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/{generic}' + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/amzn/1 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/amzn/2 + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/centos/8 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/centos/7 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/centos/6 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/centos/5 + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/rhel/9 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/rhel/8 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/rhel/7 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/rhel/6 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/rhel/5 + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/sles/11 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/sles/12 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/sles/15 + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/suse/11 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/suse/12 + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/29 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/30 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/31 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/32 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/33 /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/34 + cp -r ruleset/sca/generic ruleset/sca/centos ruleset/sca/rhel ruleset/sca/sles ruleset/sca/amazon /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp + cp etc/templates/config/generic/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/generic + cp etc/templates/config/amzn/1/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/amzn/1 + cp etc/templates/config/amzn/2/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/amzn/2 + cp etc/templates/config/centos/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/centos + cp etc/templates/config/centos/8/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/centos/8 + cp etc/templates/config/centos/7/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/centos/7 + cp etc/templates/config/centos/6/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/centos/6 + cp etc/templates/config/centos/5/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/centos/5 + cp etc/templates/config/rhel/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/rhel + cp etc/templates/config/rhel/9/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/rhel/9 + cp etc/templates/config/rhel/8/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/rhel/8 + cp etc/templates/config/rhel/7/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/rhel/7 + cp etc/templates/config/rhel/6/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/rhel/6 + cp etc/templates/config/rhel/5/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/rhel/5 + cp etc/templates/config/sles/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/sles + cp etc/templates/config/sles/11/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/sles/11 + cp etc/templates/config/sles/12/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/sles/12 + cp etc/templates/config/sles/15/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/sles/15 + cp etc/templates/config/suse/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/suse + cp etc/templates/config/suse/11/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/suse/11 + cp etc/templates/config/suse/12/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/suse/12 + cp etc/templates/config/fedora/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora + cp etc/templates/config/fedora/29/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/29 + cp etc/templates/config/fedora/30/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/30 + cp etc/templates/config/fedora/31/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/31 + cp etc/templates/config/fedora/32/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/32 + cp etc/templates/config/fedora/33/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/33 + cp etc/templates/config/fedora/34/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/tmp/sca-4.4.0-1973-tmp/fedora/34 + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/ + cp gen_ossec.sh /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/ + cp add_localfiles.sh /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/ + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/src/init + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/etc/templates/config/generic + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/etc/templates/config/centos + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/etc/templates/config/rhel + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/etc/templates/config/suse + mkdir -p /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/etc/templates/config/sles + sed -i s:WAZUH_HOME_TMP:/var/ossec:g src/init/templates/ossec-hids-suse.init + cp -rp src/init/templates/ossec-hids-suse.init /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/src/init/ + cp -rp etc/templates/config/generic/alerts.template etc/templates/config/generic/ar-commands.template etc/templates/config/generic/ar-definitions.template etc/templates/config/generic/auth.template etc/templates/config/generic/cluster.template etc/templates/config/generic/global-ar.template etc/templates/config/generic/global.template etc/templates/config/generic/header-comments.template etc/templates/config/generic/localfile-commands.template etc/templates/config/generic/localfile-logs etc/templates/config/generic/logging.template etc/templates/config/generic/osquery.template etc/templates/config/generic/remote-secure.template etc/templates/config/generic/rootcheck.agent.template etc/templates/config/generic/rootcheck.manager.template etc/templates/config/generic/rule_test.template etc/templates/config/generic/rules.template etc/templates/config/generic/sca.files etc/templates/config/generic/sca.manager.files etc/templates/config/generic/sca.template etc/templates/config/generic/syscheck.agent.template etc/templates/config/generic/syscheck.manager.template etc/templates/config/generic/wodle-ciscat.template etc/templates/config/generic/wodle-syscollector.template etc/templates/config/generic/wodle-vulnerability-detector.manager.template /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/etc/templates/config/generic + cp -rp etc/templates/config/centos/5 etc/templates/config/centos/6 etc/templates/config/centos/7 etc/templates/config/centos/8 etc/templates/config/centos/rootcheck.agent.template etc/templates/config/centos/rootcheck.manager.template etc/templates/config/centos/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/etc/templates/config/centos + cp -rp etc/templates/config/rhel/5 etc/templates/config/rhel/6 etc/templates/config/rhel/7 etc/templates/config/rhel/8 etc/templates/config/rhel/9 etc/templates/config/rhel/rootcheck.agent.template etc/templates/config/rhel/rootcheck.manager.template etc/templates/config/rhel/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/etc/templates/config/rhel + cp -rp etc/templates/config/suse/11 etc/templates/config/suse/12 etc/templates/config/suse/15 etc/templates/config/suse/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/etc/templates/config/suse + cp -rp etc/templates/config/sles/11 etc/templates/config/sles/12 etc/templates/config/sles/15 etc/templates/config/sles/sca.files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/etc/templates/config/sles + install -m 0640 src/init/adduser.sh src/init/darwin-addusers.sh src/init/darwin-delete-oldusers.sh src/init/darwin-init.sh src/init/delete-oldusers.sh src/init/dist-detect.sh src/init/functions.sh src/init/fw-check.sh src/init/init.sh src/init/inst-functions.sh src/init/language.sh src/init/pkg_installer.sh src/init/pkg_installer_mac.sh src/init/register_configure_agent.sh src/init/replace_manager_ip.sh src/init/shared.sh src/init/template-select.sh src/init/update.sh src/init/wazuh-client.sh src/init/wazuh-local.sh src/init/wazuh-server.sh /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/src/init + cp src/VERSION /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/src/ + cp src/REVISION /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le/var/ossec/packages_files/agent_installation_scripts/src/ + '[' no = yes ']' + exit 0 Processing files: wazuh-agent-4.4.0-1973.ppc64le warning: File listed twice: /var/ossec/lib/libdbsync.so warning: File listed twice: /var/ossec/lib/libgcc_s.so.1 warning: File listed twice: /var/ossec/lib/librsync.so warning: File listed twice: /var/ossec/lib/libstdc++.so.6 warning: File listed twice: /var/ossec/lib/libsyscollector.so warning: File listed twice: /var/ossec/lib/libsysinfo.so warning: File listed twice: /var/ossec/wodles/aws warning: File listed twice: /var/ossec/wodles/aws/aws-s3 warning: File listed twice: /var/ossec/wodles/azure warning: File listed twice: /var/ossec/wodles/azure/azure-logs warning: File listed twice: /var/ossec/wodles/azure/orm.py warning: File listed twice: /var/ossec/wodles/docker warning: File listed twice: /var/ossec/wodles/docker/DockerListener warning: File listed twice: /var/ossec/wodles/gcloud warning: File listed twice: /var/ossec/wodles/gcloud/buckets warning: File listed twice: /var/ossec/wodles/gcloud/buckets/access_logs.py warning: File listed twice: /var/ossec/wodles/gcloud/buckets/bucket.py warning: File listed twice: /var/ossec/wodles/gcloud/exceptions.py warning: File listed twice: /var/ossec/wodles/gcloud/gcloud warning: File listed twice: /var/ossec/wodles/gcloud/integration.py warning: File listed twice: /var/ossec/wodles/gcloud/pubsub warning: File listed twice: /var/ossec/wodles/gcloud/pubsub/subscriber.py warning: File listed twice: /var/ossec/wodles/gcloud/tools.py Provides: wazuh-agent = 4.4.0-1973 wazuh-agent(ppc-64) = 4.4.0-1973 Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires(pre): /usr/sbin/groupadd /usr/sbin/useradd /bin/sh Requires(post): /bin/sh Requires(preun): /sbin/service /bin/sh Requires(postun): /sbin/service /bin/sh Requires(posttrans): /bin/sh Conflicts: ossec-hids ossec-hids-agent wazuh-manager wazuh-local Checking for unpackaged file(s): /usr/lib/rpm/check-files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le Wrote: /build_wazuh/rpmbuild/SRPMS/wazuh-agent-4.4.0-1973.src.rpm Wrote: /build_wazuh/rpmbuild/RPMS/ppc64le/wazuh-agent-4.4.0-1973.ppc64le.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.TDQw61 + umask 022 + cd /build_wazuh/rpmbuild/BUILD + cd wazuh-agent-4.4.0 + rm -fr /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.4.0-1973.ppc64le + exit 0 + [[ no == \y\e\s ]] + [[ no == \y\e\s ]] + find /build_wazuh/rpmbuild/RPMS/ppc64le -maxdepth 3 -type f -name 'wazuh-agent-4.4.0-1973*' -exec mv '{}' /var/local/wazuh ';' Package wazuh-agent-4.4.0-1973.ppc64le.rpm added to /home/centos/verdx/wazuh-packages/rpms/output/. [centos@wazuh3 rpms]$ ```

There is probably some difference in how is it called from Jenkins which creates the problem, as the machine where the tests have been done is the same as the one used by Jenkins. As a matter of fact, on the same machine the manual test was done, Jenkins had managed to build successfully a package: https://ci.wazuh.info/view/Packages/job/Packages_builder/123462/console

verdx commented 1 year ago

After reviewing the console output in the failed and successful builds in Jenkins and the first error that appears in all failed ones is always:

11:43:24  c++: fatal error: Killed signal terminated program cc1plus

and in a similar problem it seems it may have to do with memory usage, which could explain why it does work sometimes. Two possible solutions:

verdx commented 1 year ago

The second option mentioned in the last commentary has been seen by @alberpilot as not possible due to infrastructure problems, so this issue is going to be manually transferred to https://github.com/wazuh/wazuh-jenkins so that the first solution may be implemented.