wazuh icon indicating copy to clipboard operation
wazuh copied to clipboard

Use command 'uname -m' to detect cpu architecture on makefile

Open jftuduri opened this issue 2 years ago • 18 comments

Related issue
closes #14109

Description

This PR modifies the makefile to use 'uname -m' instead of 'uname -p' to detect the cpu architecture used to download the precompiled dependencies. 'uname -p' is not portable. See https://github.com/wazuh/wazuh/issues/14109#issuecomment-1175576954 for background information.

Tests

OS Agent Manager uname -m uname -p Test
AmazonLinux 2 OK OK x86_64 x86_64 :green_circle: details
Ubuntu 22.04 OK OK x86_64 x86_64 :green_circle: details
Ubuntu 20.04 OK OK x86_64 x86_64 :green_circle: details
Arch Linux OK OK x86_64 unknown :green_circle: details
CentOS 7 OK OK x86_64 x86_64 :green_circle: details
Fedora 36 OK OK x86_64 x86_64 :green_circle: details
OpenSUSE OK OK x86_64 x86_64 :green_circle: details
Solaris 10 OK N/A sun4v sparc :green_circle: details
Solaris 11 OK N/A i86pc i386 :green_circle: details / Fix
macOS OK N/A x86_64 i386 :yellow_circle: details
Debian OK OK x86_64 unknown :green_circle: details
CentOS 7 (PowerPC) OK N/A ppc64le ppc64le :green_circle: details
Gentoo/Linux OK OK x86_64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz :green_circle: details
AIX OK N/A 00CADA644C00 powerpc :green_circle:details
HP-UX OK N/A ia64 illegal option :green_circle:details
  • [x] AmazonLinux 2 @jftuduri
  • [x] Ubuntu 22.04 @jftuduri
  • [x] Arch Linux @jftuduri
  • [x] CentOS 7 @sebasfalcone
  • [x] Fedora 36 @sebasfalcone
  • [x] OpenSUSE @sebasfalcone
  • [x] Ubuntu 20.04 @sebasfalcone
  • [x] Solaris 11 @HanesSciarrone
  • [x] macOS @HanesSciarrone
  • [x] Debian @HanesSciarrone
  • [x] CentOS 7 (PowerPC) @HanesSciarrone
  • [x] Gentoo/Linux @jftuduri
  • [x] AIX @jftuduri
  • [x] HP-UX @jftuduri
  • [x] Solaris 10 - sparc @jftuduri
  • Compilation without warnings in every supported platform
    • [x] Linux
    • [ ] MAC OS X
  • [ ] Source installation

DoD

  • [x] Create folder amd64 for MacOS deps 17+ deps/<version>/libraries/darwin/amd64.
  • [x] Change/Copy deps/<version>/libraries/hpux/not/ to deps/<version>/libraries/hpux/ia64/
  • [ ] All tested OS and platforms pass.

jftuduri avatar Jul 06 '22 21:07 jftuduri

Amazon Linux 2

Uname output

  • uname -m: x86_64
  • uname -p: x86_64

AmznLnx2 - uname

Dependencies URL

[root@MiWiFi-R4AC-srv src]# make deps
curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/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/17/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/17/libraries/linux/amd64/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/17/libraries/sources/curl.tar.gz &&\
cd external && gunzip curl.tar.gz && tar -xf curl.tar && rm curl.tar)

Manager compilation

AmznLnx2 - done building server

Agent compilation

AmznLnx2 - done building agent

jftuduri avatar Jul 06 '22 21:07 jftuduri

Gentoo/Linux

Uname output

  • uname -m: x86_64
  • uname -p: Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz Gentoo - uname

Dependencies URL

vagrant@gentoo ~/wazuh/src $ make -j4 deps
curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/cJSON.tar.gz || true
curl -so external/curl.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/curl.tar.gz || true
curl -so external/libdb.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libdb.tar.gz || true
curl -so external/libffi.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libffi.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
curl -so external/libyaml.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libyaml.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
curl -so external/openssl.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/openssl.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


Manager compilation

Gentoo - done building server

Agent compilation

Gentoo - done building agent

jftuduri avatar Jul 06 '22 21:07 jftuduri

Ubuntu 20.04 - Focal Fossa

Uname output

  • uname -m x86_64

  • uname -p x86_64

  • cat /etc/os-release:

NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Dependencies URL

  • make -j4 deps
curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/cJSON.tar.gz || true
curl -so external/curl.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/curl.tar.gz || true
curl -so external/libdb.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libdb.tar.gz || true
curl -so external/libffi.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libffi.tar.gz || true
  • make TARGET=agent Done building agent

  • make TARGET=server Done building server

sebasfalcone avatar Jul 07 '22 14:07 sebasfalcone

Ubuntu 22.04 LTS (Jammy Jellyfish)

OS

root@jammy:/# cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Uname output

root@jammy:/# uname -m
x86_64
root@jammy:/# uname -p
x86_64

Dependencies URL

root@jammy:/home/vagrant/wazuh/src# make -j4 deps
curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/cJSON.tar.gz || true
curl -so external/curl.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/curl.tar.gz || true
curl -so external/libdb.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libdb.tar.gz || true
curl -so external/libffi.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libffi.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
curl -so external/libyaml.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libyaml.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

Manager compilation

Ubuntu 22 04 - done building server

Agent compilation

Ubuntu 22 04 - done building agent

jftuduri avatar Jul 07 '22 14:07 jftuduri

Solaris 11

Version OS

vagrant@solaris-vagrant:~$ cat /etc/release 
                             Oracle Solaris 11.3 X86
  Copyright (c) 1983, 2015, Oracle and/or its affiliates.  All rights reserved.
                            Assembled 06 October 2015

uname command

vagrant@solaris-vagrant:~$ uname -p 
i386
vagrant@solaris-vagrant:~$ uname -m
i86pc
vagrant@solaris-vagrant:~$ 

Dependencies URL

In Solaris 11.3 the ./install script go to the fallback mechanic because uname -m output doesn't give the architecture.

image

image

Agent compilation

image

HanesSciarrone avatar Jul 07 '22 16:07 HanesSciarrone

Open Suse

Uname output

  • uname -m x86_64

  • uname -p x86_64

  • cat /etc/os-release

ON="20220705"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20220705"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20220705"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"

Dependencies URL

make -j4 deps

curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/cJSON.tar.gz || true
curl -so external/curl.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/curl.tar.gz || true
curl -so external/libdb.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libdb.tar.gz || true
curl -so external/libffi.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libffi.tar.gz || true

make TARGET=agent Done building agent

make TARGET=server Done building server

sebasfalcone avatar Jul 07 '22 16:07 sebasfalcone

Arch Linux

OS Version

[root@archlinux src]# cat /etc/os-release 
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux-logo

Uname output

[root@archlinux src]# uname -m
x86_64
[root@archlinux src]# uname -p
unknown

Dependencies URL

[vagrant@archlinux src]$ make -j4 deps
make: which: No such file or directory
curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/cJSON.tar.gz || true
curl -so external/curl.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/curl.tar.gz || true
curl -so external/libdb.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libdb.tar.gz || true
curl -so external/libffi.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libffi.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
curl -so external/libyaml.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/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
curl -so external/openssl.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/openssl.tar.gz || true

Manager compilation

ArchLinux - done building server

Agent compilation

ArchLinux - done building agent

jftuduri avatar Jul 07 '22 17:07 jftuduri

Fedora 36

Uname output

  • uname -m x86_64

  • uname -p x86_64

  • cat /etc/os-release

NAME="Fedora Linux"
VERSION="36 (Workstation Edition)"
ID=fedora
VERSION_ID=36
VERSION_CODENAME=""
PLATFORM_ID="platform:f36"
PRETTY_NAME="Fedora Linux 36 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:36"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f36/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=36
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=36
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Dependencies URL

make -j4 deps

curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/cJSON.tar.gz || true
curl -so external/curl.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/curl.tar.gz || true
curl -so external/libdb.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libdb.tar.gz || true
curl -so external/libffi.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libffi.tar.gz || true

make TARGET=agent Done building agent

make TARGET=server Done building server

sebasfalcone avatar Jul 07 '22 17:07 sebasfalcone

Debian 11

Version OS

hanes@debian:~/wazuh/wazuh/src (14109-fix-urls-for-precompiled-dependencies) $ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

uname command

hanes@debian:~/wazuh/wazuh/src (14109-fix-urls-for-precompiled-dependencies) $ uname -p
unknown
hanes@debian:~/wazuh/wazuh/src (14109-fix-urls-for-precompiled-dependencies) $ uname -m
x86_64
hanes@debian:~/wazuh/wazuh/src (14109-fix-urls-for-precompiled-dependencies) $

Dependencies URL

hanes@debian:~/wazuh/wazuh/src (14109-fix-urls-for-precompiled-dependencies) $ make deps TARGET=server
curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/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/17/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/17/libraries/linux/amd64/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/17/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/17/libraries/linux/amd64/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/17/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/17/libraries/linux/amd64/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/17/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/17/libraries/linux/amd64/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/17/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/17/libraries/linux/amd64/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/17/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/17/libraries/linux/amd64/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/17/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/17/libraries/linux/amd64/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

Manager compilation

image

Agent compilation

image

HanesSciarrone avatar Jul 07 '22 17:07 HanesSciarrone

Centos 7

Uname output

  • uname -m x86_64

  • uname -p x86_64

  • cat /etc/os-release

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Dependencies URL

make -j4 deps

curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/cJSON.tar.gz || true
curl -so external/curl.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/curl.tar.gz || true
curl -so external/libdb.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libdb.tar.gz || true
curl -so external/libffi.tar.gz https://packages.wazuh.com/deps/17/libraries/linux/amd64/libffi.tar.gz || true

make TARGET=agent Done building agent

make TARGET=server Done building server

sebasfalcone avatar Jul 07 '22 21:07 sebasfalcone

macOS Big Sur

Version OS

image

uname command

vagrant@vagrant-big-sur src % uname -p 
i386
vagrant@vagrant-big-sur src % uname -m
x86_64
vagrant@vagrant-big-sur src % 

Dependencies URL

In macOS mojave the ./install script go to the fallback mechanism.

vagrant@vagrant-big-sur src % make deps TARGET=agent
grep: /etc/os-release: No such file or directory
curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/darwin/amd64/cJSON.tar.gz || true
cd external && test -e cJSON.tar.gz && gunzip cJSON.tar.gz || true
gunzip: cJSON.tar.gz: not in gzip format
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/17/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/17/libraries/darwin/amd64/curl.tar.gz || true
cd external && test -e curl.tar.gz && gunzip curl.tar.gz || true
gunzip: curl.tar.gz: not in gzip format
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/17/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/17/libraries/darwin/amd64/libdb.tar.gz || true
cd external && test -e libdb.tar.gz && gunzip libdb.tar.gz || true
gunzip: libdb.tar.gz: not in gzip format
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/17/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/17/libraries/darwin/amd64/libffi.tar.gz || true
cd external && test -e libffi.tar.gz && gunzip libffi.tar.gz || true
gunzip: libffi.tar.gz: not in gzip format
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/17/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/17/libraries/darwin/amd64/libyaml.tar.gz || true
cd external && test -e libyaml.tar.gz && gunzip libyaml.tar.gz || true
gunzip: libyaml.tar.gz: not in gzip format
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/17/libraries/sources/libyaml.tar.gz &&\
	cd external && gunzip libyaml.tar.gz && tar -xf libyaml.tar && rm libyaml.tar)

vagrant@vagrant-big-sur src % make -j2 TARGET=agent
grep: /etc/os-release: No such file or directory
cd external/zlib/ && CFLAGS=-fPIC ./configure && /Library/Developer/CommandLineTools/usr/bin/make libz.a
    CC external/cJSON/cJSON.o
Checking for gcc...
cd external/openssl/ && ./Configure enable-weak-ssl-ciphers no-shared darwin64-x86_64-cc && /Library/Developer/CommandLineTools/usr/bin/make build_libs
Checking for shared library support...
Configuring OpenSSL version 1.1.1l (0x101010cfL) for darwin64-x86_64-cc
Using os-specific seed configuration
Building shared library libz.1.2.11.dylib with gcc.
Checking for size_t... Yes.
Checking for off64_t... No.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
gcc -fPIC -DHAVE_HIDDEN  -c -o adler32.o adler32.c
gcc -fPIC -DHAVE_HIDDEN  -c -o crc32.o crc32.c
Creating configdata.pm
Creating Makefile
gcc -fPIC -DHAVE_HIDDEN  -c -o deflate.o deflate.c

**********************************************************************
***                                                                ***
***   OpenSSL has been successfully configured                     ***
***                                                                ***
***   If you encounter a problem while building, please open an    ***
***   issue on GitHub <https://github.com/openssl/openssl/issues>  ***
***   and include the output from the following command:           ***
***                                                                ***
***       perl configdata.pm --dump                                ***
***                                                                ***
***   (If you are new to OpenSSL, you might want to consult the    ***
***   'Troubleshooting' section in the INSTALL file first)         ***
***                                                                ***
**********************************************************************
gcc -fPIC -DHAVE_HIDDEN  -c -o infback.o infback.c
perl "-I." -Mconfigdata "util/dofile.pl" \
	    "-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
gcc -fPIC -DHAVE_HIDDEN  -c -o inffast.o inffast.c
perl "-I." -Mconfigdata "util/dofile.pl" \
	    "-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
gcc -fPIC -DHAVE_HIDDEN  -c -o inflate.o inflate.c
perl "-I." -Mconfigdata "util/dofile.pl" \
	    "-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
gcc -fPIC -DHAVE_HIDDEN  -c -o inftrees.o inftrees.c
/Library/Developer/CommandLineTools/usr/bin/make depend && /Library/Developer/CommandLineTools/usr/bin/make _build_libs
gcc -fPIC -DHAVE_HIDDEN  -c -o trees.o trees.c
gcc -fPIC -DHAVE_HIDDEN  -c -o zutil.o zutil.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF apps/app_rand.d.tmp -MT apps/app_rand.o -c -o apps/app_rand.o apps/app_rand.c
gcc -fPIC -DHAVE_HIDDEN  -c -o compress.o compress.c
gcc -fPIC -DHAVE_HIDDEN  -c -o uncompr.o uncompr.c
gcc -fPIC -DHAVE_HIDDEN  -c -o gzclose.o gzclose.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF apps/apps.d.tmp -MT apps/apps.o -c -o apps/apps.o apps/apps.c
gcc -fPIC -DHAVE_HIDDEN  -c -o gzlib.o gzlib.c
gcc -fPIC -DHAVE_HIDDEN  -c -o gzread.o gzread.c
gcc -fPIC -DHAVE_HIDDEN  -c -o gzwrite.o gzwrite.c
libtool -o libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o 
    CC external/sqlite/sqlite3.o
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF apps/bf_prefix.d.tmp -MT apps/bf_prefix.o -c -o apps/bf_prefix.o apps/bf_prefix.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF apps/opt.d.tmp -MT apps/opt.o -c -o apps/opt.o apps/opt.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF apps/s_cb.d.tmp -MT apps/s_cb.o -c -o apps/s_cb.o apps/s_cb.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF apps/s_socket.d.tmp -MT apps/s_socket.o -c -o apps/s_socket.o apps/s_socket.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF crypto/aes/aes_cbc.d.tmp -MT crypto/aes/aes_cbc.o -c -o crypto/aes/aes_cbc.o crypto/aes/aes_cbc.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF crypto/aes/aes_cfb.d.tmp -MT crypto/aes/aes_cfb.o -c -o crypto/aes/aes_cfb.o crypto/aes/aes_cfb.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF crypto/aes/aes_core.d.tmp -MT crypto/aes/aes_core.o -c -o crypto/aes/aes_core.o crypto/aes/aes_core.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF crypto/aes/aes_ecb.d.tmp -MT crypto/aes/aes_ecb.o -c -o crypto/aes/aes_ecb.o crypto/aes/aes_ecb.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF crypto/aes/aes_ige.d.tmp -MT crypto/aes/aes_ige.o -c -o crypto/aes/aes_ige.o crypto/aes/aes_ige.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF crypto/aes/aes_misc.d.tmp -MT crypto/aes/aes_misc.o -c -o crypto/aes/aes_misc.o crypto/aes/aes_misc.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF crypto/aes/aes_ofb.d.tmp -MT crypto/aes/aes_ofb.o -c -o crypto/aes/aes_ofb.o crypto/aes/aes_ofb.c
cc  -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF crypto/aes/aes_wrap.d.tmp -MT crypto/aes/aes_wrap.o -c -o crypto/aes/aes_wrap.o crypto/aes/aes_wrap.c
CC="cc" perl crypto/aes/asm/aesni-mb-x86_64.pl macosx crypto/aes/aesni-mb-x86_64.s
CC="cc" perl crypto/aes/asm/aesni-sha1-x86_64.pl macosx crypto/aes/aesni-sha1-x86_64.s
CC="cc" perl crypto/aes/asm/aesni-sha256-x86_64.pl macosx crypto/aes/aesni-sha256-x86_64.s
CC="cc" perl crypto/aes/asm/aesni-x86_64.pl macosx crypto/aes/aesni-x86_64.s
CC="cc" perl crypto/aes/asm/vpaes-x86_64.pl macosx crypto/aes/vpaes-x86_64.s

Agent compilation

image

HanesSciarrone avatar Jul 08 '22 03:07 HanesSciarrone

Fix Solaris 11

version OS

vagrant@solaris-vagrant:~$ cat /etc/release 
                             Oracle Solaris 11.3 X86
  Copyright (c) 1983, 2015, Oracle and/or its affiliates.  All rights reserved.
                            Assembled 06 October 2015

uname command

vagrant@solaris-vagrant:~$ uname -p 
i386
vagrant@solaris-vagrant:~$ uname -m
i86pc
vagrant@solaris-vagrant:~$ 

dependencies URL

root@solaris-vagrant:/export/home/vagrant/wazuh/src# gmake deps TARGET=agent
grep: can't open /etc/os-release
curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/solaris/i386/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/17/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/17/libraries/solaris/i386/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/17/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/17/libraries/solaris/i386/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/17/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/17/libraries/solaris/i386/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/17/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/17/libraries/solaris/i386/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/17/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/17/libraries/solaris/i386/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/17/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/17/libraries/solaris/i386/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

Starting to compile the wazuh project after downloading dependencies

root@solaris-vagrant:/export/home/vagrant/wazuh/src# gmake -j2 TARGET=agent
grep: can't open /etc/os-release
gmake build_sysinfo build_shared_modules build_syscollector
grep: can't open /etc/os-release
gmake[1]: Entering directory `/export/home/vagrant/wazuh/src'
    CC libwazuhext.so
cd data_provider/ && mkdir -p build && cd build && cmake     .. && gmake
cd shared_modules/dbsync/ && mkdir -p build && cd build && cmake    .. && gmake
-- The C compiler identification is GNU 5.5.0
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.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/local/gcc-5.5.0/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working C compiler: /usr/local/gcc-5.5.0/bin/gcc - skipped
-- Detecting C compile features
-- 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/local/gcc-5.5.0/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Check for working CXX compiler: /usr/local/gcc-5.5.0/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Generating done
-- Build files have been written to: /export/home/vagrant/wazuh/src/data_provider/build
-- Configuring done
gmake[2]: Entering directory `/export/home/vagrant/wazuh/src/data_provider/build'
-- Generating done
-- Build files have been written to: /export/home/vagrant/wazuh/src/shared_modules/dbsync/build
gmake[2]: Entering directory `/export/home/vagrant/wazuh/src/shared_modules/dbsync/build'
gmake[3]: Entering directory `/export/home/vagrant/wazuh/src/data_provider/build'
gmake[4]: Entering directory `/export/home/vagrant/wazuh/src/data_provider/build'
Scanning dependencies of target sysinfo
gmake[3]: Entering directory `/export/home/vagrant/wazuh/src/shared_modules/dbsync/build'
gmake[4]: Entering directory `/export/home/vagrant/wazuh/src/shared_modules/dbsync/build'
Scanning dependencies of target dbsync
gmake[4]: Leaving directory `/export/home/vagrant/wazuh/src/data_provider/build'
gmake[4]: Entering directory `/export/home/vagrant/wazuh/src/data_provider/build'
gmake[4]: Leaving directory `/export/home/vagrant/wazuh/src/shared_modules/dbsync/build'
gmake[4]: Entering directory `/export/home/vagrant/wazuh/src/shared_modules/dbsync/build'
[ 10%] Building CXX object CMakeFiles/sysinfo.dir/src/UtilsWrapperUnix.cpp.o
[ 10%] Building CXX object CMakeFiles/dbsync.dir/src/dbsync.cpp.o
[ 20%] Building CXX object CMakeFiles/sysinfo.dir/src/network/networkInterfaceSolaris.cpp.o
[ 30%] Building CXX object CMakeFiles/sysinfo.dir/src/network/networkSolarisHelper.cpp.o
[ 40%] 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
In file included from /export/home/vagrant/wazuh/src/data_provider/src/osinfo/sysOsParsers.cpp:13:0:
/export/home/vagrant/wazuh/src/shared_modules/utils/stringHelper.h:27:17: warning: ‘bool Utils::replaceAll(std::__cxx11::string&, const string&, const string&)’ defined but not used [-Wunused-function]
     static bool replaceAll(std::string& data,
                 ^
/export/home/vagrant/wazuh/src/shared_modules/utils/stringHelper.h:43:17: warning: ‘bool Utils::replaceFirst(std::__cxx11::string&, const string&, const string&)’ defined but not used [-Wunused-function]
     static bool replaceFirst(std::string& data,

Agent compilation

image

HanesSciarrone avatar Jul 08 '22 12:07 HanesSciarrone

These are different PRECOMPILED_ARCH for several combinations of values of "uname -s", "uname -m", "uname -p". This was done with a 'unit test approach', making a dummy makefile just with precompiled_arch detection section and feeding the makefile with different hardcoded values for uname -s/-m/-p.

Input: uname_S:Linux uname_M:x86_64 uname_P:x86_64 | Output: PRECOMPILED_ARCH: /amd64 (OK)
Input: uname_S:Linux uname_M:x86_64 uname_P:unknown | Output: PRECOMPILED_ARCH: /amd64 (OK)
Input: uname_S:Linux uname_M:x86_64 uname_P:Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz | Output: PRECOMPILED_ARCH: /amd64 (OK)
Input: uname_S:Linux uname_M:aarch64 uname_P:unknown | Output: PRECOMPILED_ARCH: /aarch64 (OK)
Input: uname_S:Linux uname_M:arm64 uname_P:arm64 | Output: PRECOMPILED_ARCH: /aarch64 (OK)
Input: uname_S:Linux uname_M:armv7l uname_P:armv7l | Output: PRECOMPILED_ARCH: /arm32 (OK)
Input: uname_S:Linux uname_M:armv7l uname_P:unknown | Output: PRECOMPILED_ARCH: /arm32 (OK)
Input: uname_S:Linux uname_M:armhf uname_P:unknown | Output: PRECOMPILED_ARCH: /arm32 (OK)
Input: uname_S:Linux uname_M:armv8l uname_P:unknown | Output: PRECOMPILED_ARCH: /arm32 (OK)
Input: uname_S:Linux uname_M:arm32 uname_P:unknown | Output: PRECOMPILED_ARCH: /arm32 (OK)
Input: uname_S:Darwin uname_M:i386 uname_P:i386 | Output: PRECOMPILED_ARCH: /i386 (OK)
Input: uname_S:Darwin uname_M:x86_64 uname_P:i386 | Output: PRECOMPILED_ARCH: /amd64 (OK)
Input: uname_S:SunOS uname_M:sun4u uname_P:sparc | Output: PRECOMPILED_ARCH: /sparc (OK)
Input: uname_S:SunOS uname_M:i86pc uname_P:i386 | Output: PRECOMPILED_ARCH: /i386 (OK)
Input: uname_S:AIX uname_M:SERIAL_NUMBER uname_P:powerpc | Output: PRECOMPILED_ARCH: /powerpc (OK)
Input: uname_S:AIX uname_M:powerpc uname_P:not | Output: PRECOMPILED_ARCH: /powerpc (OK)
Input: uname_S:HP-UX uname_M:9000/712 uname_P:not | Output: PRECOMPILED_ARCH: /ia64 (OK)
Input: uname_S:HP-UX uname_M:ia64 uname_P:not | Output: PRECOMPILED_ARCH: /ia64 (OK)
Input: uname_S:el5 uname_M:i386 uname_P:not | Output: PRECOMPILED_ARCH: /i386 (OK)
Input: uname_S:el5 uname_M:not uname_P:i386 | Output: PRECOMPILED_ARCH: /i386 (OK)
Input: uname_S:el5 uname_M:amd64 uname_P:not | Output: PRECOMPILED_ARCH: /amd64 (OK)
Input: uname_S:el5 uname_M:not uname_P:amd64 | Output: PRECOMPILED_ARCH: /amd64 (OK)
Input: uname_S:FreeBSD uname_M:amd64 uname_P:amd64 | Output: PRECOMPILED_ARCH: /amd64 (OK)
Input: uname_S:_AnyOtherOS_ uname_M:amd64 uname_P:not | Output: PRECOMPILED_ARCH: /amd64 (OK)
Input: uname_S:_AnyOtherOS_ uname_M:not uname_P:amd64 | Output: PRECOMPILED_ARCH: /amd64 (OK)
Input: uname_S:Linux uname_M:ppc64le uname_P:ppc64le | Output: PRECOMPILED_ARCH: /ppc64le (OK)

jftuduri avatar Jul 11 '22 12:07 jftuduri

CentOS 7 (PowerPC)

version OS

[centos@wazuh3 HanesSciarrone]$ cat /etc/os-release 
NAME="CentOS Linux"
VERSION="7 (AltArch)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (AltArch)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7:server"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

uname command

[centos@wazuh3 HanesSciarrone]$ uname -p
ppc64le
[centos@wazuh3 HanesSciarrone]$ uname -m
ppc64le
[centos@wazuh3 HanesSciarrone]$

Dependencies URL

[centos@wazuh3 src]$ gmake deps TARGET=agent RESOURCES_URL=http://packages.wazuh.com/deps/17
curl -so external/cJSON.tar.gz http://packages.wazuh.com/deps/17/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 http://packages.wazuh.com/deps/17/libraries/sources/cJSON.tar.gz &&\
cd external && gunzip cJSON.tar.gz && tar -xf cJSON.tar && rm cJSON.tar)
curl -so external/curl.tar.gz http://packages.wazuh.com/deps/17/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 http://packages.wazuh.com/deps/17/libraries/sources/curl.tar.gz &&\
cd external && gunzip curl.tar.gz && tar -xf curl.tar && rm curl.tar)
curl -so external/libdb.tar.gz http://packages.wazuh.com/deps/17/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 http://packages.wazuh.com/deps/17/libraries/sources/libdb.tar.gz &&\
cd external && gunzip libdb.tar.gz && tar -xf libdb.tar && rm libdb.tar)
curl -so external/libffi.tar.gz http://packages.wazuh.com/deps/17/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 http://packages.wazuh.com/deps/17/libraries/sources/libffi.tar.gz &&\
cd external && gunzip libffi.tar.gz && tar -xf libffi.tar && rm libffi.tar)
curl -so external/libyaml.tar.gz http://packages.wazuh.com/deps/17/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 http://packages.wazuh.com/deps/17/libraries/sources/libyaml.tar.gz &&\
cd external && gunzip libyaml.tar.gz && tar -xf libyaml.tar && rm libyaml.tar)
curl -so external/openssl.tar.gz http://packages.wazuh.com/deps/17/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 http://packages.wazuh.com/deps/17/libraries/sources/openssl.tar.gz &&\
cd external && gunzip openssl.tar.gz && tar -xf openssl.tar && rm openssl.tar)

Agent compilation

image

HanesSciarrone avatar Jul 11 '22 21:07 HanesSciarrone

QA review

  • Type: Manual testing.
  • Status: Requested changes 🔴
  • Testing issue: https://github.com/wazuh/wazuh-qa/issues/3086
  • Comments: The compilation in Gentoo OS is working correctly, but the MacOs package building is failing (check this logs) when that is fixed the tests can be executed again

QU3B1M avatar Jul 29 '22 13:07 QU3B1M

AIX

OS

$ oslevel
6.1.0.0

Uname output

$ uname -a
AIX soaxp184 1 6 00CADA644C00
$ uname -m
00CADA644C00
$ uname -p
powerpc

Dependencies URL

# gmake deps TARGET=agent
grep: can't open /etc/os-release
curl -kso external/curl.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/curl.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/curl.tar.gz &&\
cd external && gunzip curl.tar.gz && tar -xf curl.tar && rm curl.tar)
curl -kso external/libdb.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/libdb.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libdb.tar.gz &&\
cd external && gunzip libdb.tar.gz && tar -xf libdb.tar && rm libdb.tar)
curl -kso external/libffi.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/libffi.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libffi.tar.gz &&\
cd external && gunzip libffi.tar.gz && tar -xf libffi.tar && rm libffi.tar)
curl -kso external/libyaml.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/libyaml.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libyaml.tar.gz &&\
cd external && gunzip libyaml.tar.gz && tar -xf libyaml.tar && rm libyaml.tar)
curl -kso external/openssl.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/openssl.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/openssl.tar.gz &&\
cd external && gunzip openssl.tar.gz && tar -xf openssl.tar && rm openssl.tar)
curl -kso external/procps.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/procps.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/procps.tar.gz &&\
cd external && gunzip procps.tar.gz && tar -xf procps.tar && rm procps.tar)
curl -kso external/sqlite.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/sqlite.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/sqlite.tar.gz &&\
cd external && gunzip sqlite.tar.gz && tar -xf sqlite.tar && rm sqlite.tar)
curl -kso external/zlib.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/zlib.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/zlib.tar.gz &&\
cd external && gunzip zlib.tar.gz && tar -xf zlib.tar && rm zlib.tar)
curl -kso external/audit-userspace.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/audit-userspace.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/audit-userspace.tar.gz &&\
cd external && gunzip audit-userspace.tar.gz && tar -xf audit-userspace.tar && rm audit-userspace.tar)
curl -kso external/msgpack.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/msgpack.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/msgpack.tar.gz &&\
cd external && gunzip msgpack.tar.gz && tar -xf msgpack.tar && rm msgpack.tar)
curl -kso external/bzip2.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/bzip2.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/bzip2.tar.gz &&\
cd external && gunzip bzip2.tar.gz && tar -xf bzip2.tar && rm bzip2.tar)
curl -kso external/nlohmann.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/nlohmann.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/nlohmann.tar.gz &&\
cd external && gunzip nlohmann.tar.gz && tar -xf nlohmann.tar && rm nlohmann.tar)
curl -kso external/googletest.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/googletest.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/googletest.tar.gz &&\
cd external && gunzip googletest.tar.gz && tar -xf googletest.tar && rm googletest.tar)
curl -kso external/libpcre2.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/libpcre2.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libpcre2.tar.gz &&\
cd external && gunzip libpcre2.tar.gz && tar -xf libpcre2.tar && rm libpcre2.tar)
curl -kso external/libplist.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/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 -kso external/libplist.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libplist.tar.gz &&\
cd external && gunzip libplist.tar.gz && tar -xf libplist.tar && rm libplist.tar)
curl -kso external/pacman.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/pacman.tar.gz || true
cd external && test -e pacman.tar.gz && gunzip pacman.tar.gz || true

gzip: pacman.tar.gz: not in gzip format
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 -kso external/pacman.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/pacman.tar.gz &&\
cd external && gunzip pacman.tar.gz && tar -xf pacman.tar && rm pacman.tar)
curl -kso external/libarchive.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/libarchive.tar.gz || true
cd external && test -e libarchive.tar.gz && gunzip libarchive.tar.gz || true

gzip: libarchive.tar.gz: not in gzip format
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 -kso external/libarchive.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libarchive.tar.gz &&\
cd external && gunzip libarchive.tar.gz && tar -xf libarchive.tar && rm libarchive.tar)
curl -kso external/popt.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/popt.tar.gz || true
cd external && test -e popt.tar.gz && gunzip popt.tar.gz || true

gzip: popt.tar.gz: not in gzip format
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 -kso external/popt.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/popt.tar.gz &&\
cd external && gunzip popt.tar.gz && tar -xf popt.tar && rm popt.tar)
curl -kso external/rpm.tar.gz https://packages.wazuh.com/deps/17/libraries/aix/powerpc/rpm.tar.gz || true
cd external && test -e rpm.tar.gz && gunzip rpm.tar.gz || true

gzip: rpm.tar.gz: not in gzip format
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 -kso external/rpm.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/rpm.tar.gz &&\
cd external && gunzip rpm.tar.gz && tar -xf rpm.tar && rm rpm.tar)

Agent compilation

# gmake TARGET=agent USE_SELINUX=no PREFIX=/var/ossec
grep: can't open /etc/os-release
gmake build_sysinfo build_shared_modules build_syscollector
gmake[1]: Entering directory '/home/onur/wazuh-fix/src'
grep: can't open /etc/os-release
mkdir -p libwazuhext;
find external/ -name \*.a -exec cp {} libwazuhext/ \;
for lib in libcjson.a libz.a libmsgpack.a libssl.a libcrypto.a libsqlite3.a libyaml.a libpcre2-8.a ; do \
        ar -x libwazuhext/$lib; \
        mv *.o libwazuhext/; \
done
    CC libwazuhext.so
cd data_provider/ && mkdir -p build && cd build && cmake -DINSTALL_PREFIX=/var/ossec    .. && gmake
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/onur/wazuh-fix/src/data_provider/build
gmake[2]: Entering directory '/home/onur/wazuh-fix/src/data_provider/build'
gmake[3]: Entering directory '/home/onur/wazuh-fix/src/data_provider/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/data_provider/build'
Scanning dependencies of target sysinfo
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/data_provider/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/data_provider/build'
[ 14%] Building CXX object CMakeFiles/sysinfo.dir/src/UtilsWrapperUnix.cpp.o
[ 28%] Building CXX object CMakeFiles/sysinfo.dir/src/osinfo/sysOsParsers.cpp.o
[ 42%] Building CXX object CMakeFiles/sysinfo.dir/src/sysInfoUnix.cpp.o
[ 57%] Building CXX object CMakeFiles/sysinfo.dir/src/sysInfo.cpp.o
[ 71%] Linking CXX shared library lib/libsysinfo.so
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-224 WARNING: Duplicate symbol: __init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/data_provider/build'
[ 71%] Built target sysinfo
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/data_provider/build'
Scanning dependencies of target sysinfo_test_tool
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/data_provider/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/data_provider/build'
[ 85%] Building CXX object testtool/CMakeFiles/sysinfo_test_tool.dir/main.cpp.o
[100%] Linking CXX executable ../bin/sysinfo_test_tool
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/data_provider/build'
[100%] Built target sysinfo_test_tool
gmake[3]: Leaving directory '/home/onur/wazuh-fix/src/data_provider/build'
gmake[2]: Leaving directory '/home/onur/wazuh-fix/src/data_provider/build'
cd shared_modules/dbsync/ && mkdir -p build && cd build && cmake -DINSTALL_PREFIX=/var/ossec   .. && gmake
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/onur/wazuh-fix/src/shared_modules/dbsync/build
gmake[2]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
gmake[3]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
Scanning dependencies of target dbsync
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
[ 10%] Building CXX object CMakeFiles/dbsync.dir/src/dbsync.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
[ 40%] Building CXX object CMakeFiles/dbsync.dir/src/sqlite/sqlite_dbengine.cpp.o
[ 50%] Building CXX object CMakeFiles/dbsync.dir/src/sqlite/sqlite_wrapper.cpp.o
[ 60%] Linking CXX shared library lib/libdbsync.so
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-224 WARNING: Duplicate symbol: __init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
[ 60%] Built target dbsync
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
Scanning dependencies of target dbsync_example
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
[ 70%] Building CXX object example/CMakeFiles/dbsync_example.dir/main.cpp.o
[ 80%] Linking CXX executable ../bin/dbsync_example
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
[ 80%] Built target dbsync_example
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
Scanning dependencies of target dbsync_test_tool
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
[ 90%] Building CXX object testtool/CMakeFiles/dbsync_test_tool.dir/main.cpp.o
[100%] Linking CXX executable ../bin/dbsync_test_tool
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
[100%] Built target dbsync_test_tool
gmake[3]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
gmake[2]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/dbsync/build'
cd shared_modules/rsync/ && mkdir -p build && cd build && cmake -DINSTALL_PREFIX=/var/ossec    .. && gmake
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/onur/wazuh-fix/src/shared_modules/rsync/build
gmake[2]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
gmake[3]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
Scanning dependencies of target rsync
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
[ 12%] Building CXX object CMakeFiles/rsync.dir/src/rsync.cpp.o
[ 25%] Building CXX object CMakeFiles/rsync.dir/src/rsyncImplementation.cpp.o
[ 37%] Linking CXX shared library lib/librsync.so
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-224 WARNING: Duplicate symbol: __init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
[ 37%] Built target rsync
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
Scanning dependencies of target rsync_test_tool
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
[ 50%] Building CXX object testtool/CMakeFiles/rsync_test_tool.dir/main.cpp.o
[ 62%] Building CXX object testtool/CMakeFiles/rsync_test_tool.dir/agentEmulator.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
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
[100%] Built target rsync_test_tool
gmake[3]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
gmake[2]: Leaving directory '/home/onur/wazuh-fix/src/shared_modules/rsync/build'
cd wazuh_modules/syscollector/ && mkdir -p build && cd build && cmake -DINSTALL_PREFIX=/var/ossec    .. && gmake
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/onur/wazuh-fix/src/wazuh_modules/syscollector/build
gmake[2]: Entering directory '/home/onur/wazuh-fix/src/wazuh_modules/syscollector/build'
gmake[3]: Entering directory '/home/onur/wazuh-fix/src/wazuh_modules/syscollector/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/wazuh_modules/syscollector/build'
Scanning dependencies of target syscollector
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/wazuh_modules/syscollector/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/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
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-224 WARNING: Duplicate symbol: __init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/wazuh_modules/syscollector/build'
[ 66%] Built target syscollector
gmake[4]: Entering directory '/home/onur/wazuh-fix/src/wazuh_modules/syscollector/build'
Scanning dependencies of target syscollector_test_tool
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/wazuh_modules/syscollector/build'
gmake[4]: Entering directory '/home/onur/wazuh-fix/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
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[4]: Leaving directory '/home/onur/wazuh-fix/src/wazuh_modules/syscollector/build'
[100%] Built target syscollector_test_tool
gmake[3]: Leaving directory '/home/onur/wazuh-fix/src/wazuh_modules/syscollector/build'
gmake[2]: Leaving directory '/home/onur/wazuh-fix/src/wazuh_modules/syscollector/build'
gmake[1]: Leaving directory '/home/onur/wazuh-fix/src'
gmake wazuh-agentd agent-auth wazuh-logcollector wazuh-syscheckd wazuh-execd manage_agents active-responses wazuh-modulesd
gmake[1]: Entering directory '/home/onur/wazuh-fix/src'
grep: can't open /etc/os-release
    CC client-agent/agcom.o
    CC client-agent/agentd.o
    CC client-agent/buffer.o
    CC client-agent/config.o
    CC client-agent/event-forward.o
    CC client-agent/main.o
    CC client-agent/notify.o
    CC client-agent/receiver.o
    CC client-agent/request.o
    CC client-agent/restart_agent.o
    CC client-agent/rotate_log.o
    CC client-agent/sendmsg.o
    CC client-agent/start_agent.o
    CC client-agent/state.o
    CC monitord/rotate_log.o
    CC monitord/compress_log.o
    CC config/active-response.o
    CC config/agentlessd-config.o
    CC config/alerts-config.o
    CC config/authd-config.o
    CC config/authd-key-request-config.o
    CC config/buffer-config.o
    CC config/client-config.o
    CC config/cluster-config.o
    CC config/config.o
    CC config/csyslogd-config.o
    CC config/dbd-config.o
    CC config/email-alerts-config.o
    CC config/global-config.o
    CC config/integrator-config.o
    CC config/labels-config.o
    CC config/localfile-config.o
    CC config/logtest-config.o
    CC config/remote-config.o
    CC config/reports-config.o
    CC config/rootcheck-config.o
    CC config/rules-config.o
    CC config/socket-config.o
    CC config/syscheck-config.o
    CC config/wazuh_db-config.o
    CC config/wmodules-agent-upgrade.o
    CC config/wmodules-aws.o
    CC config/wmodules-azure.o
    CC config/wmodules-ciscat.o
    CC config/wmodules-command.o
    CC config/wmodules-config.o
    CC config/wmodules-docker.o
    CC config/wmodules-fluent.o
    CC config/wmodules-gcp.o
    CC config/wmodules-github.o
    CC config/wmodules-key-request.o
    CC config/wmodules-office365.o
    CC config/wmodules-oscap.o
    CC config/wmodules-osquery-monitor.o
    CC config/wmodules-sca.o
    CC config/wmodules-task-manager.o
    CC config/wmodules-vuln-detector.o
    CC config/wmodules_syscollector.o
    CC wazuh_modules/wm_aws.o
    CC wazuh_modules/wm_azure.o
    CC wazuh_modules/wm_ciscat.o
    CC wazuh_modules/wm_command.o
    CC wazuh_modules/wm_control.o
    CC wazuh_modules/wm_database.o
    CC wazuh_modules/wm_docker.o
    CC wazuh_modules/wm_download.o
    CC wazuh_modules/wm_exec.o
    CC wazuh_modules/wm_fluent.o
    CC wazuh_modules/wm_gcp.o
    CC wazuh_modules/wm_github.o
    CC wazuh_modules/wm_office365.o
    CC wazuh_modules/wm_oscap.o
    CC wazuh_modules/wm_osquery_monitor.o
    CC wazuh_modules/wm_sca.o
    CC wazuh_modules/wm_syscollector.o
    CC wazuh_modules/wm_task_general.o
    CC wazuh_modules/wmcom.o
    CC wazuh_modules/wmodules.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.o
    CC wazuh_db/wdb_agents.o
    CC wazuh_db/wdb_ciscat.o
    CC wazuh_db/wdb_delta_event.o
    CC wazuh_db/wdb_fim.o
    CC wazuh_db/wdb_global.o
    CC wazuh_db/wdb_integrity.o
    CC wazuh_db/wdb_metadata.o
    CC wazuh_db/wdb_parser.o
    CC wazuh_db/wdb_rootcheck.o
    CC wazuh_db/wdb_sca.o
    CC wazuh_db/wdb_scan_info.o
    CC wazuh_db/wdb_syscollector.o
    CC wazuh_db/wdb_task.o
    CC wazuh_db/wdb_upgrade.o
    CC wazuh_db/helpers/wdb_agents_helpers.o
    CC wazuh_db/helpers/wdb_global_helpers.o
    CC wazuh_db/schema_agents.o
    CC wazuh_db/schema_global.o
    CC wazuh_db/schema_global_upgrade_v1.o
    CC wazuh_db/schema_global_upgrade_v2.o
    CC wazuh_db/schema_global_upgrade_v3.o
    CC wazuh_db/schema_global_upgrade_v4.o
    CC wazuh_db/schema_task_manager.o
    CC wazuh_db/schema_upgrade_v1.o
    CC wazuh_db/schema_upgrade_v2.o
    CC wazuh_db/schema_upgrade_v3.o
    CC wazuh_db/schema_upgrade_v4.o
    CC wazuh_db/schema_upgrade_v5.o
    CC wazuh_db/schema_upgrade_v6.o
    CC wazuh_db/schema_upgrade_v7.o
    CC wazuh_db/schema_upgrade_v8.o
    CC wazuh_db/schema_upgrade_v9.o
    CC wazuh_db/schema_vuln_detector.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
os_crypto/md5_sha1_sha256/md5_sha1_sha256_op.c: In function 'OS_MD5_SHA1_SHA256_File':
os_crypto/md5_sha1_sha256/md5_sha1_sha256_op.c:126:9: warning: 'wfd' may be used uninitialized in this function [-Wmaybe-uninitialized]
         wpclose(wfd);
         ^~~~~~~~~~~~
    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/agent_op.o
    CC shared/atomic.o
    CC shared/audit_op.o
    CC shared/auth_client.o
    CC shared/b64.o
    CC shared/bqueue_op.o
    CC shared/buffer_op.o
    CC shared/bzip2_op.o
    CC shared/cluster_utils.o
    CC shared/custom_output_search_replace.o
    CC shared/debug_op.o
    CC shared/enrollment_op.o
    CC shared/exec_op.o
    CC shared/expression.o
    CC shared/file-queue.o
    CC shared/file_op.o
    CC shared/fs_op.o
    CC shared/hash_op.o
    CC shared/help.o
    CC shared/integrity_op.o
    CC shared/json-queue.o
    CC shared/json_op.o
    CC shared/labels_op.o
    CC shared/list_op.o
    CC shared/log_builder.o
    CC shared/math_op.o
    CC shared/mem_op.o
    CC shared/mq_op.o
    CC shared/notify_op.o
    CC shared/os_utils.o
    CC shared/privsep_op.o
    CC shared/pthreads_op.o
    CC shared/queue_linked_op.o
    CC shared/queue_op.o
    CC shared/randombytes.o
    CC shared/rbtree_op.o
    CC shared/read-agents.o
    CC shared/read-alert.o
    CC shared/regex_op.o
    CC shared/remoted_op.o
    CC shared/report_op.o
    CC shared/request_op.o
    CC shared/rootcheck_op.o
    CC shared/rules_op.o
    CC shared/schedule_scan.o
    CC shared/sig_op.o
    CC shared/store_op.o
    CC shared/string_op.o
    CC shared/sym_load.o
    CC shared/syscheck_op.o
    CC shared/sysinfo_utils.o
    CC shared/time_op.o
    CC shared/url.o
    CC shared/utf8_op.o
    CC shared/validate_op.o
    CC shared/vector_op.o
    CC shared/version_op.o
    CC shared/wait_op.o
    CC shared/wazuhdb_op.o
    CC shared/yaml2json.o
    CC os_net/os_net.o
    CC os_regex/os_match.o
    CC os_regex/os_match_compile.o
    CC os_regex/os_match_execute.o
    CC os_regex/os_match_free_pattern.o
    CC os_regex/os_regex.o
    CC os_regex/os_regex_compile.o
    CC os_regex/os_regex_execute.o
    CC os_regex/os_regex_free_pattern.o
    CC os_regex/os_regex_maps.o
    CC os_regex/os_regex_match.o
    CC os_regex/os_regex_startswith.o
    CC os_regex/os_regex_str.o
    CC os_regex/os_regex_strbreak.o
    CC os_xml/os_xml.o
    CC os_xml/os_xml_access.o
    CC os_xml/os_xml_node_access.o
    CC os_xml/os_xml_variables.o
    CC os_xml/os_xml_writer.o
    CC os_zlib/os_zlib.o
    CC os_auth/ssl.o
    CC os_auth/check_cert.o
    CC addagent/validate.o
    CC analysisd/logmsg.o
    LINK libwazuh.a
    RANLIB libwazuh.a
    CC wazuh-agentd
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC os_auth/main-client.o
    CC agent-auth
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC logcollector/config.o
    CC logcollector/lccom.o
    CC logcollector/logcollector.o
    CC logcollector/macos_log.o
    CC logcollector/main.o
    CC logcollector/read_audit.o
    CC logcollector/read_command.o
    CC logcollector/read_djb_multilog.o
    CC logcollector/read_fullcommand.o
    CC logcollector/read_json.o
    CC logcollector/read_macos.o
    CC logcollector/read_mssql_log.o
    CC logcollector/read_multiline.o
    CC logcollector/read_multiline_regex.o
    CC logcollector/read_mysql_log.o
    CC logcollector/read_nmapg.o
    CC logcollector/read_ossecalert.o
    CC logcollector/read_postgresql_log.o
    CC logcollector/read_snortfull.o
    CC logcollector/read_syslog.o
    CC logcollector/read_ucs2_be.o
    CC logcollector/read_ucs2_le.o
    CC logcollector/read_win_el.o
    CC logcollector/read_win_event_channel.o
    CC logcollector/state.o
    CC wazuh-logcollector
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC syscheckd/db/schema_fim_db.o
    CC syscheckd/config.o
    CC syscheckd/create_db.o
    CC syscheckd/fim_diff_changes.o
    CC syscheckd/fim_sync.o
    CC syscheckd/main.o
    CC syscheckd/run_check.o
syscheckd/run_check.c: In function 'fim_run_realtime':
syscheckd/run_check.c:489:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
    CC syscheckd/run_realtime.o
    CC syscheckd/syscheck.o
    CC syscheckd/syscom.o
    CC syscheckd/db/fim_db.o
    CC syscheckd/db/fim_db_files.o
    CC syscheckd/db/fim_db_registries.o
    CC syscheckd/whodata/audit_healthcheck.o
    CC syscheckd/whodata/audit_parse.o
    CC syscheckd/whodata/audit_rule_handling.o
    CC syscheckd/whodata/syscheck_audit.o
    CC syscheckd/whodata/win_whodata.o
    CC syscheckd/registry/events.o
    CC syscheckd/registry/registry.o
    CC rootcheck/check_open_ports.o
    CC rootcheck/check_rc_dev.o
    CC rootcheck/check_rc_files.o
    CC rootcheck/check_rc_if.o
    CC rootcheck/check_rc_pids.o
    CC rootcheck/check_rc_policy.o
    CC rootcheck/check_rc_ports.o
    CC rootcheck/check_rc_readproc.o
    CC rootcheck/check_rc_sys.o
    CC rootcheck/check_rc_trojans.o
    CC rootcheck/common.o
    CC rootcheck/common_rcl.o
    CC rootcheck/config.o
    CC rootcheck/os_string.o
    CC rootcheck/rootcheck.o
    CC rootcheck/run_rk_check.o
    CC rootcheck/unix-process.o
    CC rootcheck/win-common.o
    CC rootcheck/win-process.o
    LINK rootcheck.a
    RANLIB rootcheck.a
    CC wazuh-syscheckd
ld: 0711-570 WARNING: Symbol table entry 1 in object syscheckd/db/schema_fim_db.o is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_agents.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_global.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v2.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v3.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v5.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v1.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v4.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v6.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v7.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v9.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v8.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_global_upgrade_v1.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_global_upgrade_v2.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_global_upgrade_v3.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_global_upgrade_v4.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_task_manager.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object syscheckd/db/schema_fim_db.o is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_agents.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_global.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v2.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v3.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v5.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v1.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v4.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v6.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v7.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v9.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_upgrade_v8.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_global_upgrade_v1.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_global_upgrade_v2.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_global_upgrade_v3.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_global_upgrade_v4.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-570 WARNING: Symbol table entry 1 in object libwazuh.a[schema_task_manager.o] is invalid.
        Filename in C_FILE auxiliary symbol is null.
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC os_execd/config.o
    CC os_execd/exec.o
    CC os_execd/execd.o
    CC os_execd/main.o
    CC os_execd/wcom.o
    CC active-response/active_responses.o
    CC wazuh-execd
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC addagent/main.o
    CC addagent/manage_agents.o
    CC addagent/manage_keys.o
    CC addagent/read_from_user.o
    CC manage_agents
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/firewalls/default-firewall-drop.o
    CC shared/file_op_proc.o
    CC shared/debug_op_proc.o
    CC libwazuhshared.so
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-224 WARNING: Duplicate symbol: __init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC default-firewall-drop
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/firewalls/pf.o
    CC pf
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/firewalls/npf.o
    CC npf
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/firewalls/ipfw.o
    CC ipfw
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/firewalld-drop.o
    CC firewalld-drop
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/disable-account.o
    CC disable-account
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/host-deny.o
    CC host-deny
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/ip-customblock.o
    CC ip-customblock
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/restart-wazuh.o
    CC restart-wazuh
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/route-null.o
    CC route-null
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/kaspersky.o
    CC kaspersky
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC active-response/wazuh-slack.o
    CC wazuh-slack
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    CC wazuh_modules/main.o
    CC wazuh-modulesd
ld: 0711-224 WARNING: Duplicate symbol: .__init_aix_libgcc_cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[1]: Leaving directory '/home/onur/wazuh-fix/src'
gmake settings
gmake[1]: Entering directory '/home/onur/wazuh-fix/src'
grep: can't open /etc/os-release

General settings:
    TARGET:             agent
    V:                  
    DEBUG:              
    DEBUGAD             
    INSTALLDIR:         /var/ossec
    DATABASE:           
    ONEWAY:             no
    CLEANFULL:          no
    RESOURCES_URL:      https://packages.wazuh.com/deps/17
    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:        no
    USE_AUDIT:          no
    DISABLE_SYSC:       no
    DISABLE_CISCAT:     no
Mysql settings:
    includes:           
    libs:               
Pgsql settings:
    includes:           
    libs:               
Defines:
    -DOSSECHIDS -DUSER="wazuh" -DGROUPGLOBAL="wazuh" -DAIX -DAIX -D__unix -DHIGHFIRST -DENABLE_SYSC -DENABLE_CISCAT -DCLIENT
Compiler:
    CFLAGS            -pthread -DNDEBUG -O2 -DOSSECHIDS -DUSER="wazuh" -DGROUPGLOBAL="wazuh" -DAIX -DAIX -D__unix -DHIGHFIRST -DENABLE_SYSC -DENABLE_CISCAT -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 -I/builddir/output/include 
    LDFLAGS           -pthread -L./lib '-Wl,-blibpath:/var/ossec/lib:/usr/lib:/lib' -O2 -Lshared_modules/dbsync/build/lib -Lshared_modules/rsync/build/lib  -Lwazuh_modules/syscollector/build/lib -Ldata_provider/build/lib
    LIBS              
    CC                gcc
    MAKE              gmake
gmake[1]: Leaving directory '/home/onur/wazuh-fix/src'

Done building agent

jftuduri avatar Aug 08 '22 13:08 jftuduri

HP-UX

OS

$ machinfo
CPU info:
   Intel(R) Itanium 2 9000 series processor (1.6 GHz, 9 MB)
   1 core, 1 logical processor per socket
   200 MHz bus, CPU version C2
          Active processor count:
          2 sockets
          2 cores

Memory: 3834 MB (3.74 GB)

Firmware info:
   Firmware revision:  04.10.00
   FP SWA driver revision: 1.18
   IPMI is supported on this system.
   BMC firmware revision: 4.0a

Platform info:
   Model:                  "ia64 hp server Integrity Virtual Machine"
   Machine ID number:      d16728a2-2acf-11ec-9007-001279439cc0
   Machine serial number:  VM02141001

OS info:
   Nodename:  sovmh123
   Release:   HP-UX B.11.31
   Version:   U (unlimited-user license)
   Machine:   ia64
   ID Number: 3513198754
   vmunix _release_version:               
@(#) $Revision: vmunix:    B.11.31_LR FLAVOR=perf 

Uname output

$ uname -a
HP-UX sovmh123 B.11.31 U ia64 3513198754 unlimited-user license
$ uname -m
ia64
$ uname -p
uname: illegal option -- p
usage: uname [-amnrsvil] [-S nodename]

Dependencies URL

# gmake -C src deps TARGET=agent
gmake: Entering directory '/home/giixv/wazuh-fix-14109/src'
grep: can't open /etc/os-release
curl -kso external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/cJSON.tar.gz &&\
cd external && gunzip cJSON.tar.gz && tar -xf cJSON.tar && rm cJSON.tar)
curl -kso external/curl.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/curl.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/curl.tar.gz &&\
cd external && gunzip curl.tar.gz && tar -xf curl.tar && rm curl.tar)
curl -kso external/libdb.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/libdb.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libdb.tar.gz &&\
cd external && gunzip libdb.tar.gz && tar -xf libdb.tar && rm libdb.tar)
curl -kso external/libffi.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/libffi.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libffi.tar.gz &&\
cd external && gunzip libffi.tar.gz && tar -xf libffi.tar && rm libffi.tar)
curl -kso external/libyaml.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/libyaml.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libyaml.tar.gz &&\
cd external && gunzip libyaml.tar.gz && tar -xf libyaml.tar && rm libyaml.tar)
curl -kso external/openssl.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/openssl.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/openssl.tar.gz &&\
cd external && gunzip openssl.tar.gz && tar -xf openssl.tar && rm openssl.tar)
curl -kso external/procps.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/procps.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/procps.tar.gz &&\
cd external && gunzip procps.tar.gz && tar -xf procps.tar && rm procps.tar)
curl -kso external/sqlite.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/sqlite.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/sqlite.tar.gz &&\
cd external && gunzip sqlite.tar.gz && tar -xf sqlite.tar && rm sqlite.tar)
curl -kso external/zlib.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/zlib.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/zlib.tar.gz &&\
cd external && gunzip zlib.tar.gz && tar -xf zlib.tar && rm zlib.tar)
curl -kso external/audit-userspace.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/audit-userspace.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/audit-userspace.tar.gz &&\
cd external && gunzip audit-userspace.tar.gz && tar -xf audit-userspace.tar && rm audit-userspace.tar)
curl -kso external/msgpack.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/msgpack.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/msgpack.tar.gz &&\
cd external && gunzip msgpack.tar.gz && tar -xf msgpack.tar && rm msgpack.tar)
curl -kso external/bzip2.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/bzip2.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/bzip2.tar.gz &&\
cd external && gunzip bzip2.tar.gz && tar -xf bzip2.tar && rm bzip2.tar)
curl -kso external/nlohmann.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/nlohmann.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/nlohmann.tar.gz &&\
cd external && gunzip nlohmann.tar.gz && tar -xf nlohmann.tar && rm nlohmann.tar)
curl -kso external/googletest.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/googletest.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/googletest.tar.gz &&\
cd external && gunzip googletest.tar.gz && tar -xf googletest.tar && rm googletest.tar)
curl -kso external/libpcre2.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/libpcre2.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libpcre2.tar.gz &&\
cd external && gunzip libpcre2.tar.gz && tar -xf libpcre2.tar && rm libpcre2.tar)
curl -kso external/libplist.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/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 -kso external/libplist.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libplist.tar.gz &&\
cd external && gunzip libplist.tar.gz && tar -xf libplist.tar && rm libplist.tar)
curl -kso external/pacman.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/pacman.tar.gz || true
cd external && test -e pacman.tar.gz && gunzip pacman.tar.gz || true

gzip: pacman.tar.gz: not in gzip format
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 -kso external/pacman.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/pacman.tar.gz &&\
cd external && gunzip pacman.tar.gz && tar -xf pacman.tar && rm pacman.tar)
curl -kso external/libarchive.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/libarchive.tar.gz || true
cd external && test -e libarchive.tar.gz && gunzip libarchive.tar.gz || true

gzip: libarchive.tar.gz: not in gzip format
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 -kso external/libarchive.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/libarchive.tar.gz &&\
cd external && gunzip libarchive.tar.gz && tar -xf libarchive.tar && rm libarchive.tar)
curl -kso external/popt.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/popt.tar.gz || true
cd external && test -e popt.tar.gz && gunzip popt.tar.gz || true

gzip: popt.tar.gz: not in gzip format
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 -kso external/popt.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/popt.tar.gz &&\
cd external && gunzip popt.tar.gz && tar -xf popt.tar && rm popt.tar)
curl -kso external/rpm.tar.gz https://packages.wazuh.com/deps/17/libraries/hpux/ia64/rpm.tar.gz || true
cd external && test -e rpm.tar.gz && gunzip rpm.tar.gz || true

gzip: rpm.tar.gz: not in gzip format
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 -kso external/rpm.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/rpm.tar.gz &&\
cd external && gunzip rpm.tar.gz && tar -xf rpm.tar && rm rpm.tar)
gmake: Leaving directory '/home/giixv/wazuh-fix-14109/src'

Agent compilation

# gmake -C src TARGET=agent USE_SELINUX=no
gmake: Entering directory '/home/giixv/wazuh-fix-14109/src'
grep: can't open /etc/os-release
gmake wazuh-agentd agent-auth wazuh-logcollector wazuh-syscheckd wazuh-execd manage_agents active-responses wazuh-modulesd
gmake[1]: Entering directory '/home/giixv/wazuh-fix-14109/src'
grep: can't open /etc/os-release
    CC client-agent/notify.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/agcom.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/start_agent.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/buffer.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/restart_agent.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/main.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/receiver.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/state.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/rotate_log.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/event-forward.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/agentd.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/request.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC client-agent/sendmsg.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC monitord/rotate_log.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC monitord/compress_log.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/logtest-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-fluent.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-ciscat.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/csyslogd-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-task-manager.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-command.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/alerts-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-office365.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/syscheck-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
config/syscheck-config.c: In function 'read_data_unit':
config/syscheck-config.c:1259: warning: array subscript has type 'char'
config/syscheck-config.c:1301: warning: array subscript has type 'char'
config/syscheck-config.c:1305: warning: array subscript has type 'char'
    CC config/wmodules-azure.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-gcp.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
config/wmodules-gcp.c: In function 'wm_gcp_pubsub_read':
config/wmodules-gcp.c:150: warning: array subscript has type 'char'
config/wmodules-gcp.c:167: warning: array subscript has type 'char'
    CC config/wmodules-vuln-detector.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/dbd-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/rules-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-key-request.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/cluster-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/buffer-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/authd-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-sca.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/labels-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/client-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/global-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/email-alerts-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-docker.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-github.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-oscap.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules_syscollector.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-osquery-monitor.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/reports-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
config/reports-config.c:184:7: warning: no newline at end of file
    CC config/authd-key-request-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/remote-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/socket-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-agent-upgrade.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/integrator-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wazuh_db-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/active-response.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/agentlessd-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/rootcheck-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/localfile-config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC config/wmodules-aws.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_ciscat.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_command.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_fluent.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
In file included from external/msgpack/include/msgpack/pack.h:125,
                 from external/msgpack/include/msgpack.h:19,
                 from wazuh_modules/wm_fluent.c:20:
external/msgpack/include/msgpack/pack_template.h:276: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:276: warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute
external/msgpack/include/msgpack/pack_template.h:282: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:289: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:296: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:303: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:309: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:316: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:323: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:334: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:339: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:344: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:349: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:354: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:359: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:364: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:369: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:374: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:387: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:392: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:399: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:430: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:461: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:492: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:523: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:554: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:585: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:616: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:656: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:665: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:686: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:697: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:703: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:714: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:735: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:756: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:776: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:785: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:801: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:810: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:827: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:836: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:893: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack_template.h:898: warning: C99 inline functions are not supported; using GNU89
In file included from external/msgpack/include/msgpack.h:19,
                 from wazuh_modules/wm_fluent.c:20:
external/msgpack/include/msgpack/pack.h:128: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack.h:134: warning: C99 inline functions are not supported; using GNU89
external/msgpack/include/msgpack/pack.h:142: warning: C99 inline functions are not supported; using GNU89
    CC wazuh_modules/wm_sca.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_docker.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_download.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_database.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_github.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_syscollector.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
In file included from wazuh_modules/wm_syscollector.c:15:
wazuh_modules/syscollector/include/syscollector.h:94:25: warning: no newline at end of file
    CC wazuh_modules/wm_aws.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_task_general.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_osquery_monitor.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_exec.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_office365.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_azure.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wmodules.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
wazuh_modules/wmodules.c: In function 'wm_read_http_size':
wazuh_modules/wmodules.c:222: warning: array subscript has type 'char'
    CC wazuh_modules/wm_gcp.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_oscap.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wmcom.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/wm_control.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/agent_upgrade/wm_agent_upgrade.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/agent_upgrade/agent/wm_agent_upgrade_com.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_modules/agent_upgrade/agent/wm_agent_upgrade_agent.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/wdb_ciscat.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/wdb_rootcheck.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/wdb_fim.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
wazuh_db/wdb_fim.c: In function 'wdb_syscheck_load':
wazuh_db/wdb_fim.c:58: warning: array subscript has type 'char'
    CC wazuh_db/wdb_parser.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/wdb_global.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
wazuh_db/wdb_global.c: In function 'wdb_global_get_most_recent_backup':
wazuh_db/wdb_global.c:2022: warning: missing initializer
wazuh_db/wdb_global.c:2022: warning: (near initialization for 'backup_info.st_ino')
wazuh_db/wdb_global.c: In function 'wdb_global_get_oldest_backup':
wazuh_db/wdb_global.c:2060: warning: missing initializer
wazuh_db/wdb_global.c:2060: warning: (near initialization for 'backup_info.st_ino')
    CC wazuh_db/wdb_sca.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/wdb_delta_event.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/wdb_upgrade.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
wazuh_db/wdb_upgrade.c: In function 'wdb_adjust_v4':
wazuh_db/wdb_upgrade.c:325: warning: array subscript has type 'char'
    CC wazuh_db/wdb_syscollector.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/wdb_task.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/wdb_scan_info.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
wazuh_db/wdb_scan_info.c:181:2: warning: no newline at end of file
    CC wazuh_db/wdb.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/wdb_integrity.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/wdb_agents.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/wdb_metadata.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/helpers/wdb_agents_helpers.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/helpers/wdb_global_helpers.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_upgrade_v4.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_vuln_detector.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_global_upgrade_v3.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_upgrade_v5.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_global_upgrade_v2.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_upgrade_v7.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_global.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_global_upgrade_v4.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_upgrade_v8.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_task_manager.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_global_upgrade_v1.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_agents.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_upgrade_v6.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_upgrade_v1.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_upgrade_v3.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_upgrade_v9.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh_db/schema_upgrade_v2.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_crypto/blowfish/bf_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_crypto/md5/md5_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_crypto/sha1/sha1_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_crypto/shared/msgs.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_crypto/shared/keys.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_crypto/md5_sha1/md5_sha1_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_crypto/md5_sha1_sha256/md5_sha1_sha256_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
os_crypto/md5_sha1_sha256/md5_sha1_sha256_op.c: In function 'OS_MD5_SHA1_SHA256_File':
os_crypto/md5_sha1_sha256/md5_sha1_sha256_op.c:31: warning: 'wfd' may be used uninitialized in this function
    CC os_crypto/sha256/sha256_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_crypto/sha512/sha512_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_crypto/aes/aes_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_crypto/hmac/hmac.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_crypto/signature/signature.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/wazuhdb_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/agent_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/randombytes.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/utf8_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/queue_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/bqueue_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/sysinfo_utils.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/expression.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/string_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/schedule_scan.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/json_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/sig_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/validate_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/buffer_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/notify_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/hash_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/mq_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/remoted_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/version_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/read-agents.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/regex_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/rules_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/atomic.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/math_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/debug_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/custom_output_search_replace.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/b64.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/url.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/privsep_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/list_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/auth_client.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/labels_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/help.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/wait_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/sym_load.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
shared/sym_load.c:51:2: warning: no newline at end of file
    CC shared/audit_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/report_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/vector_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/yaml2json.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/queue_linked_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/syscheck_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/time_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/integrity_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/cluster_utils.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/rbtree_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/os_utils.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/pthreads_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/file_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/mem_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/log_builder.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/request_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/exec_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/bzip2_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/store_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/rootcheck_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/fs_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/enrollment_op.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/read-alert.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/json-queue.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/file-queue.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
shared/file-queue.c:177:7: warning: no newline at end of file
    CC os_net/os_net.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_match_execute.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_regex_execute.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_regex_strbreak.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_regex_maps.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_match_free_pattern.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_match_compile.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_regex_free_pattern.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_regex_startswith.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_regex_compile.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_match.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_regex_str.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_regex.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_regex/os_regex_match.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_xml/os_xml_writer.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_xml/os_xml_node_access.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_xml/os_xml_access.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_xml/os_xml.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_xml/os_xml_variables.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_zlib/os_zlib.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_auth/ssl.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_auth/check_cert.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
os_auth/check_cert.c: In function 'label_valid':
os_auth/check_cert.c:261: warning: array subscript has type 'char'
os_auth/check_cert.c:266: warning: array subscript has type 'char'
    CC addagent/validate.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC analysisd/logmsg.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    LINK libwazuh.a
    RANLIB libwazuh.a
mkdir -p libwazuhext;
find external/ -name \*.a -exec cp {} libwazuhext/ \;
for lib in libcjson.a libz.a libmsgpack.a libssl.a libcrypto.a libsqlite3.a libyaml.a libpcre2-8.a ; do \
        ar -x libwazuhext/$lib; \
        mv *.o libwazuhext/; \
done
    CC libwazuhext.so
    CC wazuh-agentd
    CC os_auth/main-client.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC agent-auth
    CC logcollector/read_snortfull.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_fullcommand.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_multiline.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_ucs2_be.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_mysql_log.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/logcollector.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_nmapg.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_multiline_regex.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_audit.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/macos_log.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_syslog.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_win_event_channel.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_json.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_mssql_log.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_macos.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/lccom.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_win_el.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_ucs2_le.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/main.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_postgresql_log.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_djb_multilog.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/state.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_command.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC logcollector/read_ossecalert.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh-logcollector
    CC syscheckd/db/schema_fim_db.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/run_realtime.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/main.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/run_check.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
syscheckd/run_check.c: In function 'fim_run_realtime':
syscheckd/run_check.c:489: warning: control reaches end of non-void function
    CC syscheckd/fim_sync.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/fim_diff_changes.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/syscheck.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/syscom.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/create_db.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/db/fim_db_registries.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/db/fim_db_files.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/db/fim_db.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
syscheckd/db/fim_db.c:1043: warning: C99 inline functions are not supported; using GNU89
syscheckd/db/fim_db.c:1043: warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute
    CC syscheckd/whodata/win_whodata.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/whodata/audit_parse.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/whodata/syscheck_audit.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/whodata/audit_rule_handling.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/whodata/audit_healthcheck.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/registry/events.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC syscheckd/registry/registry.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/check_rc_trojans.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/check_rc_pids.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/check_rc_policy.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/run_rk_check.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/check_rc_sys.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/check_rc_dev.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/check_rc_readproc.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/win-common.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/os_string.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/check_open_ports.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/check_rc_if.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/rootcheck.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/common.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/unix-process.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/common_rcl.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/check_rc_ports.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/win-process.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/check_rc_files.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC rootcheck/config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    LINK rootcheck.a
    RANLIB rootcheck.a
    CC wazuh-syscheckd
    CC os_execd/wcom.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_execd/execd.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_execd/main.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_execd/config.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC os_execd/exec.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC active-response/active_responses.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh-execd
    CC addagent/manage_agents.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC addagent/manage_keys.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
addagent/manage_keys.c: In function 'trimwhitespace':
addagent/manage_keys.c:36: warning: array subscript has type 'char'
addagent/manage_keys.c:46: warning: array subscript has type 'char'
addagent/manage_keys.c: In function 'k_bulkload':
addagent/manage_keys.c:478: warning: missing initializer
addagent/manage_keys.c:478: warning: (near initialization for 'force_options.key_mismatch')
    CC addagent/main.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC addagent/read_from_user.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC manage_agents
    CC active-response/firewalls/default-firewall-drop.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/file_op_proc.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC shared/debug_op_proc.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC libwazuhshared.so
    CC default-firewall-drop
    CC active-response/firewalls/pf.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC pf
    CC active-response/firewalls/npf.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC npf
    CC active-response/firewalls/ipfw.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC ipfw
    CC active-response/firewalld-drop.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC firewalld-drop
    CC active-response/disable-account.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC disable-account
    CC active-response/host-deny.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC host-deny
    CC active-response/ip-customblock.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC ip-customblock
    CC active-response/restart-wazuh.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC restart-wazuh
    CC active-response/route-null.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC route-null
    CC active-response/kaspersky.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC kaspersky
    CC active-response/wazuh-slack.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh-slack
    CC wazuh_modules/main.o
<command-line>: warning: ISO C99 requires whitespace after the macro name
    CC wazuh-modulesd
gmake[1]: Leaving directory '/home/giixv/wazuh-fix-14109/src'
gmake settings
gmake[1]: Entering directory '/home/giixv/wazuh-fix-14109/src'
grep: can't open /etc/os-release

General settings:
    TARGET:             agent
    V:                  
    DEBUG:              
    DEBUGAD             
    INSTALLDIR:         /var/ossec
    DATABASE:           
    ONEWAY:             no
    CLEANFULL:          no
    RESOURCES_URL:      https://packages.wazuh.com/deps/17
    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:        no
    USE_AUDIT:          no
    DISABLE_SYSC:       no
    DISABLE_CISCAT:     no
Mysql settings:
    includes:           
    libs:               
Pgsql settings:
    includes:           
    libs:               
Defines:
    -DOSSECHIDS -DUSER="wazuh" -DGROUPGLOBAL="wazuh" -DHP-UX -DHPUX -D_XOPEN_SOURCE_EXTENDED -DHIGHFIRST -DOS_BIG_ENDIAN -DENABLE_SYSC -DENABLE_CISCAT -DCLIENT
Compiler:
    CFLAGS            -pthread -pthread -DNDEBUG -O2 -DOSSECHIDS -DUSER="wazuh" -DGROUPGLOBAL="wazuh" -DHP-UX -DHPUX -D_XOPEN_SOURCE_EXTENDED -DHIGHFIRST -DOS_BIG_ENDIAN -DENABLE_SYSC -DENABLE_CISCAT -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 -I/builddir/output/include 
    LDFLAGS           -lrt -pthread -L. -lwazuhext '-Wl,+b,/var/ossec/lib' -O2 -Lshared_modules/dbsync/build/lib -Lshared_modules/rsync/build/lib  -Lwazuh_modules/syscollector/build/lib -Ldata_provider/build/lib
    LIBS              
    CC                gcc
    MAKE              gmake
gmake[1]: Leaving directory '/home/giixv/wazuh-fix-14109/src'

Done building agent

gmake: Leaving directory '/home/giixv/wazuh-fix-14109/src'

jftuduri avatar Aug 08 '22 13:08 jftuduri

Solaris 10

OS

# cat /etc/release
                   Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC
  Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
                            Assembled 17 January 2013

Uname output

# uname -a
SunOS sossp028 5.10 Generic_147147-26 sun4v sparc sun4v
# uname -m
sun4v
# uname -p
sparc

Dependencies URL - Compilation :yellow_circle:

# gmake deps TARGET=agent
grep: can't open /etc/os-release
curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/libraries/solaris/sparc/cJSON.tar.gz || true
cd external && test -e cJSON.tar.gz && gunzip cJSON.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/cJSON.tar.gz] Error 1 (ignored)
cd external && test -e cJSON.tar && tar -xf cJSON.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/cJSON.tar.gz] Error 1 (ignored)
test -e external/cJSON.tar && rm external/cJSON.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/cJSON.tar.gz] Error 1 (ignored)
test -d external/cJSON ||\
(curl -so external/cJSON.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/curl.tar.gz || true
cd external && test -e curl.tar.gz && gunzip curl.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/curl.tar.gz] Error 1 (ignored)
cd external && test -e curl.tar && tar -xf curl.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/curl.tar.gz] Error 1 (ignored)
test -e external/curl.tar && rm external/curl.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/curl.tar.gz] Error 1 (ignored)
test -d external/curl ||\
(curl -so external/curl.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/libdb.tar.gz || true
cd external && test -e libdb.tar.gz && gunzip libdb.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/libdb.tar.gz] Error 1 (ignored)
cd external && test -e libdb.tar && tar -xf libdb.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/libdb.tar.gz] Error 1 (ignored)
test -e external/libdb.tar && rm external/libdb.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/libdb.tar.gz] Error 1 (ignored)
test -d external/libdb ||\
(curl -so external/libdb.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/libffi.tar.gz || true
cd external && test -e libffi.tar.gz && gunzip libffi.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/libffi.tar.gz] Error 1 (ignored)
cd external && test -e libffi.tar && tar -xf libffi.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/libffi.tar.gz] Error 1 (ignored)
test -e external/libffi.tar && rm external/libffi.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/libffi.tar.gz] Error 1 (ignored)
test -d external/libffi ||\
(curl -so external/libffi.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/libyaml.tar.gz || true
cd external && test -e libyaml.tar.gz && gunzip libyaml.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/libyaml.tar.gz] Error 1 (ignored)
cd external && test -e libyaml.tar && tar -xf libyaml.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/libyaml.tar.gz] Error 1 (ignored)
test -e external/libyaml.tar && rm external/libyaml.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/libyaml.tar.gz] Error 1 (ignored)
test -d external/libyaml ||\
(curl -so external/libyaml.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/openssl.tar.gz || true
cd external && test -e openssl.tar.gz && gunzip openssl.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/openssl.tar.gz] Error 1 (ignored)
cd external && test -e openssl.tar && tar -xf openssl.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/openssl.tar.gz] Error 1 (ignored)
test -e external/openssl.tar && rm external/openssl.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/openssl.tar.gz] Error 1 (ignored)
test -d external/openssl ||\
(curl -so external/openssl.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/procps.tar.gz || true
cd external && test -e procps.tar.gz && gunzip procps.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/procps.tar.gz] Error 1 (ignored)
cd external && test -e procps.tar && tar -xf procps.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/procps.tar.gz] Error 1 (ignored)
test -e external/procps.tar && rm external/procps.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/procps.tar.gz] Error 1 (ignored)
test -d external/procps ||\
(curl -so external/procps.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/sqlite.tar.gz || true
cd external && test -e sqlite.tar.gz && gunzip sqlite.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/sqlite.tar.gz] Error 1 (ignored)
cd external && test -e sqlite.tar && tar -xf sqlite.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/sqlite.tar.gz] Error 1 (ignored)
test -e external/sqlite.tar && rm external/sqlite.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/sqlite.tar.gz] Error 1 (ignored)
test -d external/sqlite ||\
(curl -so external/sqlite.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/zlib.tar.gz || true
cd external && test -e zlib.tar.gz && gunzip zlib.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/zlib.tar.gz] Error 1 (ignored)
cd external && test -e zlib.tar && tar -xf zlib.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/zlib.tar.gz] Error 1 (ignored)
test -e external/zlib.tar && rm external/zlib.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/zlib.tar.gz] Error 1 (ignored)
test -d external/zlib ||\
(curl -so external/zlib.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/audit-userspace.tar.gz || true
cd external && test -e audit-userspace.tar.gz && gunzip audit-userspace.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/audit-userspace.tar.gz] Error 1 (ignored)
cd external && test -e audit-userspace.tar && tar -xf audit-userspace.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/audit-userspace.tar.gz] Error 1 (ignored)
test -e external/audit-userspace.tar && rm external/audit-userspace.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/audit-userspace.tar.gz] Error 1 (ignored)
test -d external/audit-userspace ||\
(curl -so external/audit-userspace.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/msgpack.tar.gz || true
cd external && test -e msgpack.tar.gz && gunzip msgpack.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/msgpack.tar.gz] Error 1 (ignored)
cd external && test -e msgpack.tar && tar -xf msgpack.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/msgpack.tar.gz] Error 1 (ignored)
test -e external/msgpack.tar && rm external/msgpack.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/msgpack.tar.gz] Error 1 (ignored)
test -d external/msgpack ||\
(curl -so external/msgpack.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/bzip2.tar.gz || true
cd external && test -e bzip2.tar.gz && gunzip bzip2.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/bzip2.tar.gz] Error 1 (ignored)
cd external && test -e bzip2.tar && tar -xf bzip2.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/bzip2.tar.gz] Error 1 (ignored)
test -e external/bzip2.tar && rm external/bzip2.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/bzip2.tar.gz] Error 1 (ignored)
test -d external/bzip2 ||\
(curl -so external/bzip2.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/nlohmann.tar.gz || true
cd external && test -e nlohmann.tar.gz && gunzip nlohmann.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/nlohmann.tar.gz] Error 1 (ignored)
cd external && test -e nlohmann.tar && tar -xf nlohmann.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/nlohmann.tar.gz] Error 1 (ignored)
test -e external/nlohmann.tar && rm external/nlohmann.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/nlohmann.tar.gz] Error 1 (ignored)
test -d external/nlohmann ||\
(curl -so external/nlohmann.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/googletest.tar.gz || true
cd external && test -e googletest.tar.gz && gunzip googletest.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/googletest.tar.gz] Error 1 (ignored)
cd external && test -e googletest.tar && tar -xf googletest.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/googletest.tar.gz] Error 1 (ignored)
test -e external/googletest.tar && rm external/googletest.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/googletest.tar.gz] Error 1 (ignored)
test -d external/googletest ||\
(curl -so external/googletest.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/libpcre2.tar.gz || true
cd external && test -e libpcre2.tar.gz && gunzip libpcre2.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/libpcre2.tar.gz] Error 1 (ignored)
cd external && test -e libpcre2.tar && tar -xf libpcre2.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/libpcre2.tar.gz] Error 1 (ignored)
test -e external/libpcre2.tar && rm external/libpcre2.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/libpcre2.tar.gz] Error 1 (ignored)
test -d external/libpcre2 ||\
(curl -so external/libpcre2.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/libplist.tar.gz || true
cd external && test -e libplist.tar.gz && gunzip libplist.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/libplist.tar.gz] Error 1 (ignored)
cd external && test -e libplist.tar && tar -xf libplist.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/libplist.tar.gz] Error 1 (ignored)
test -e external/libplist.tar && rm external/libplist.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/libplist.tar.gz] Error 1 (ignored)
test -d external/libplist ||\
(curl -so external/libplist.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/pacman.tar.gz || true
cd external && test -e pacman.tar.gz && gunzip pacman.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/pacman.tar.gz] Error 1 (ignored)
cd external && test -e pacman.tar && tar -xf pacman.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/pacman.tar.gz] Error 1 (ignored)
test -e external/pacman.tar && rm external/pacman.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/pacman.tar.gz] Error 1 (ignored)
test -d external/pacman ||\
(curl -so external/pacman.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/libarchive.tar.gz || true
cd external && test -e libarchive.tar.gz && gunzip libarchive.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/libarchive.tar.gz] Error 1 (ignored)
cd external && test -e libarchive.tar && tar -xf libarchive.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/libarchive.tar.gz] Error 1 (ignored)
test -e external/libarchive.tar && rm external/libarchive.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/libarchive.tar.gz] Error 1 (ignored)
test -d external/libarchive ||\
(curl -so external/libarchive.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/popt.tar.gz || true
cd external && test -e popt.tar.gz && gunzip popt.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/popt.tar.gz] Error 1 (ignored)
cd external && test -e popt.tar && tar -xf popt.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/popt.tar.gz] Error 1 (ignored)
test -e external/popt.tar && rm external/popt.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/popt.tar.gz] Error 1 (ignored)
test -d external/popt ||\
(curl -so external/popt.tar.gz https://packages.wazuh.com/deps/17/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/17/libraries/solaris/sparc/rpm.tar.gz || true
cd external && test -e rpm.tar.gz && gunzip rpm.tar.gz || true
/bin/sh: test: argument expected
gmake: [Makefile:1283: external-precompiled/rpm.tar.gz] Error 1 (ignored)
cd external && test -e rpm.tar && tar -xf rpm.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1284: external-precompiled/rpm.tar.gz] Error 1 (ignored)
test -e external/rpm.tar && rm external/rpm.tar || true
/bin/sh: test: argument expected
gmake: [Makefile:1285: external-precompiled/rpm.tar.gz] Error 1 (ignored)
test -d external/rpm ||\
(curl -so external/rpm.tar.gz https://packages.wazuh.com/deps/17/libraries/sources/rpm.tar.gz &&\
cd external && gunzip rpm.tar.gz && tar -xf rpm.tar && rm rpm.tar)
#

Agent compilation

image

jftuduri avatar Aug 08 '22 13:08 jftuduri

QA review

  • Type: Manual testing.
  • Status: Approved 🟢
  • Testing issue: https://github.com/wazuh/wazuh-qa/issues/3086
  • Comments: Everything seems to work properly.

jmv74211 avatar Aug 23 '22 13:08 jmv74211