HI Team,
For the build, I'm using: Wazuh source: https://github.com/wazuh/wazuh/archive/refs/tags/v4.5.2.zip Ports tree : https://github.com/freebsd/freebsd-ports/archive/a1b512e0161d4e965c74f3f1a8853596396c149d.zip (This commit contains the Wazuh port version that matches 4.5.2) My build VM is running FreeBSD 13.5, and the default Perl installed on the system is perl 5.42. However, the ports tree snapshot I'm using depends on older Perl versions. In Mk/Uses/perl5.mk from that snapshot, the supported values are: 5.34 5.36 5.38 devel Since Perl 5.42 is not in this list, I'm running into compatibility issues during the Wazuh 4.5.2 build process. What to do ?? For reference: I successfully built a pkg using the latest ports tree for Wazuh 4.12.0, but I specifically need 4.5.2 because we have custom modifications for that version. Thanks ---- On Tue, 09 Dec 2025 18:14:07 +0530 Robert Clausecker <[email protected]> wrote --- Hello Saii, Am Tue, Dec 09, 2025 at 12:49:15PM +0530 schrieb Saii Varun M R: > Hi team, > > I’m trying to build the wazuh-agent FreeBSD port using the FreeBSD > ports tree bundled inside the Wazuh source code. > > I executed the following command: > > make V=1 -C > ./wazuh/build/temp/freebsd-ports-release-13.0.0/security/wazuh-agent package > > However, the build fails with the following error: > > Makefile:88: *** missing separator. Stop. > > (...) > > Additional context: > > I am performing this build on a Linux x86_64 (AMD64) machine, not on a > FreeBSD host. The FreeBSD ports tree does not support cross-compilation, neither from non-FreeBSD hosts, nor from other architectures. Thus, what you wish to do will not work. Here's what you could do: 1. install FreeBSD in a VM 2. go to /usr/port/security/wazuh-agent 3. as root execute, "make package". This will recursively build all dependencies for the the port as well as the port itself. You will be asked to set options for various ports. Unless you know what you are doing, just leave the options unchanged. 4. find the package in /usr/port/security/wazuh-agent/work/pkg/ Note that the package has dependencies and as such likely cannot be directly installed by users, unless they happen to have those dependencies installed in the right version. It is a good idea to instead point your users to the FreeBSD package repositories, which include this package. They can just type "pkg install security/wazuh-agent" to get it. Yours, Robert Clausecker -- () ascii ribbon campaign - for an encoding-agnostic world /\ - against html email - against proprietary attachments
