ossec-hids icon indicating copy to clipboard operation
ossec-hids copied to clipboard

./external/compat/includes.h:65:10: fatal error: 'openssl/opensslv.h' file not found

Open rdivakar opened this issue 4 years ago • 2 comments

Am trying to install ossec agent version 3.6.0 on Mac OS Catalina (10.15.6) using command sudo ./install.sh . Installation is failing with following error.

5- Installing the system
 - Running the Makefile
cc -I./external/compat -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DDarwin -DDarwin -DHIGHFIRST -DZLIB_SYSTEM -DUSE_PCRE2_JIT -DCLIENT -Wall -Wextra -I./ -I./headers/  client-agent/agentd.o client-agent/config.o client-agent/event-forward.o client-agent/intcheck_op.o client-agent/main.o client-agent/notify.o client-agent/receiver-win.o client-agent/receiver.o client-agent/sendmsg.o client-agent/start_agent.o os_dns/os_dns.o os_crypto.a config.a shared.a os_net.a os_regex.a os_xml.a os_zlib.a  -lm -lpcre2-8 -lz  -levent ./external/compat/imsg.c ./external/compat/imsg-buffer.c -o ossec-agentd
In file included from ./external/compat/imsg.c:21:
./external/compat/includes.h:65:10: fatal error: 'openssl/opensslv.h' file not found
#include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from ./external/compat/imsg-buffer.c:21:
./external/compat/includes.h:65:10: fatal error: 'openssl/opensslv.h' file not found
#include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [ossec-agentd] Error 1

 Error 0x5.
 Building error. Unable to finish the installation.

I have verified that openssl is installed.

Could someone help me in resolving this error?

rdivakar avatar Sep 17 '20 17:09 rdivakar

I am running into the same issue currently and would love to hear solutions any one has come up with.

jacob-morin avatar Feb 09 '21 15:02 jacob-morin

It's likely because the target host is missing the openssl development packages that include the headers. In rhel/centos/rocky this would be the openssl-devel package

atomicturtle avatar Feb 21 '21 19:02 atomicturtle