I have a some problems for wazuh agent compile in HPUX

70 views
Skip to first unread message

zw...@korea.ac.kr

unread,
Apr 15, 2019, 11:32:47 PM4/15/19
to Wazuh mailing list
OS : HP-UX 11.31 ia64

When I compile wazuh agent, error occured like below picture.

my gcc is 4.6.1 and for ia64.


my compile command is "/usr/local/bin/gmake TARGET=agent DISABLE_SHARED=yes"


캡처.PNG


Can you help me? I think problem is compiler's architecture.

Braulio Vargas

unread,
Apr 16, 2019, 1:43:50 PM4/16/19
to Wazuh mailing list

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.

zw...@korea.ac.kr

unread,
Apr 19, 2019, 12:10:59 AM4/19/19
to Wazuh mailing list
Hello, Braulio

I'm sorry lately answer.

I tried to your answer but, doesn't fix my error. I installed 32bit gcc and dependency programs..

compile is success. but it showed me too many warning like a 'missing whitespace after the macro name' this message.

and I started install.sh. but it showed me error like below picture. When did you compile, what is your gcc version? 

Thanks.


KakaoTalk_20190419_130855691.jpg



2019년 4월 17일 수요일 오전 2시 43분 50초 UTC+9, Braulio Vargas 님의 말:
Message has been deleted

Braulio Vargas

unread,
May 6, 2019, 5:30:05 AM5/6/19
to Wazuh mailing list

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

Reply all
Reply to author
Forward
0 new messages