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