Hi zwish,
I was trying to reproduce your error and I couldn't. I tried to do compile the agent using the -mlp64 flag and without it, and I couldn't, but I got some errors when using the -mlp64 flag. When we build the HP-UX agent, we use the following lines:
# gmake deps RESOURCES_URL=http://packages.wazuh.com/deps/3.8 # gmake TARGET=agent USE_SELINUX=no DISABLE_SHARED=yes
If you try to build the agent using those lines and you get the same error, please, run the following lines and attach the lines from running gmake:
# gmake clean # gmake deps RESOURCES_URL=http://packages.wazuh.com/deps/3.8 # gmake TARGET=agent USE_SELINUX=no DISABLE_SHARED=yes V=1
This will run a much verbose compilation that will help us to catch the error.
Finally, here you can find a prebuild tar of the agent for HP-UX https://packages.wazuh.com/3.x/hp-ux/wazuh-agent-3.8.2-1-hpux-11v3-ia64.tar. Follow the instructions from https://documentation.wazuh.com/current/installation-guide/installing-wazuh-agent/wazuh_agent_hpux.htmlto install it.
Regards,
Braulio.
Hi zwish,
Sorry for the late response. Here you can find the GCC version:
gcc -v
Using built-in specs.
Target: ia64-hp-hpux11.31
Configured with: ../gcc/configure
Thread model: posix
gcc version 4.2.3
You can find this GCC at http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.2.3/, but this is the 32-bit version which is publicly available.
I notified the issue with the warnings to the core development team in order to solve this as soon as possible.
Finally, the error that you are facing is related to the libwazuhext.so. This shared object can’t be built under HP-UX hosts but the Makefile can build the libwazuh.a instead. To solve this issue, run the install.sh as follows: DISABLE_SHARED=yes install.sh
Also, you can build and compile the agent as follows:
gmake -C src deps RESOURCES_URL=http://packages.wazuh.com/deps/3.8
gmake -C src TARGET=agent USE_SELINUX=no DISABLE_SHARED=yes
DISABLE_SHARED=yes ./install.sh
Hope it helps.
Regards,
Braulio.
This will build and install the agent.
Also, we have recently released Wazuh v3.9.0. You can find the installer for HP-UX agents at: https://packages.wazuh.com/3.x/hp-ux/wazuh-agent-3.9.0-1-hpux-11v3-ia64.tar