Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fails to build .deb package of Agent on arm64 #473

Closed
vgrechin opened this issue Jan 1, 2025 · 2 comments
Closed

Fails to build .deb package of Agent on arm64 #473

vgrechin opened this issue Jan 1, 2025 · 2 comments
Assignees
Labels
module/packages Agent packages platform/unix reporter/community Issue reported by the community type/enhancement Enhancement issue

Comments

@vgrechin
Copy link

vgrechin commented Jan 1, 2025

Wazuh version Component Install type Install method Platform
5.0.0-latest Agent Deb Packages JetPack 6.0 (Ubuntu 22.04)

Fails to build deb package on arm64 box (Jetson Orin of NVidia) with command:

./generate_package.sh -a arm64 -j 6 2>&1 | tee ~/wazuh_build.txt

Yields the error (attaching full log to the ticket):

-- Running vcpkg install
/build_wazuh/agent/wazuh-agent-5.0.0/src/vcpkg/vcpkg: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /build_wazuh/agent/wazuh-agent-5.0.0/src/vcpkg/vcpkg)
/build_wazuh/agent/wazuh-agent-5.0.0/src/vcpkg/vcpkg: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /build_wazuh/agent/wazuh-agent-5.0.0/src/vcpkg/vcpkg)
/build_wazuh/agent/wazuh-agent-5.0.0/src/vcpkg/vcpkg: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /build_wazuh/agent/wazuh-agent-5.0.0/src/vcpkg/vcpkg)
-- Running vcpkg install - failed

It is all right though on Linux amd64, and produces .deb package correspoinding to the platform:

$ ls output/
wazuh-agent_5.0.0-0_amd64_95b9665cf.deb

Full log:
wazuh_build.txt.tar.gz

@MarcelKemp MarcelKemp self-assigned this Jan 7, 2025
@MarcelKemp MarcelKemp added reporter/community Issue reported by the community type/enhancement Enhancement issue platform/unix module/packages Agent packages labels Jan 7, 2025
@MarcelKemp
Copy link
Member

Hi @vgrechin,

Currently, the only architecture that is supported for 5.0 is amd64, that is why it fails to generate the ARM package, as it is necessary to adapt the script, along with the code (SPECS, Dockerfile, etc), as it is incomplete.

We have this task queued, although it was not reflected in any issue. Therefore, I have opened the following issue to give it visibility:

I hope you find it useful.

@vgrechin
Copy link
Author

vgrechin commented Jan 7, 2025

Thanks, Marcel for this useful advice ^^^, and closing the issue now

Because I only monitor RPi Zero 2W (armhf 4.9.2).
Which I managed to roll out, but also encontered an issue during installation.

It failed to substitute a value in the config /var/ossec/etc/ossec.conf,
according to environment variable of WAZUH_MANAGER=MY_IPADDRESS dpkg -i ...
<ossec_config>

MY_IPADDRESS
So that I had to change manuallly.

@vgrechin vgrechin closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/packages Agent packages platform/unix reporter/community Issue reported by the community type/enhancement Enhancement issue
Projects
None yet
Development

No branches or pull requests

2 participants