ossec / ossec-hids

OSSEC is an Open Source Host-based Intrusion Detection System that performs log analysis, file integrity checking, policy monitoring, rootkit detection, real-time alerting and active response.
http://www.ossec.net
Other
4.44k stars 1.04k forks source link

ssl.c:(.text+0x256): undefined reference to `OPENSSL_init_ssl' #2054

Open lichongtian opened 2 years ago

lichongtian commented 2 years ago

I reported the following error when installing ossec-2.9.2(My current environment is Centos6.3, and openssl version is openssl-1.1.1i) """ make[1]: Leaving directory /usr/local/ossec-hids-2.9.3/src/external/lua-5.2.3' CC agent-auth os_auth/ssl.o: In functionget_ssl_context': ssl.c:(.text+0x256): undefined reference to OPENSSL_init_ssl' ssl.c:(.text+0x262): undefined reference toOPENSSL_init_ssl' ssl.c:(.text+0x26e): undefined reference to OPENSSL_init_crypto' ssl.c:(.text+0x275): undefined reference toTLSv1_2_method' ssl.c:(.text+0x28f): undefined reference to SSL_CTX_set_options' os_auth/check_cert.o: In functionasn1_to_cstr': check_cert.c:(.text+0x44): undefined reference to ASN1_STRING_data' os_auth/check_cert.o: In functioncheck_subject_alt_names': check_cert.c:(.text+0x50c): undefined reference to OPENSSL_sk_num' check_cert.c:(.text+0x51f): undefined reference toOPENSSL_sk_value' collect2: ld returned 1 exit status make: *** [agent-auth] Error 1

Error 0x5. Building error. Unable to finish the installation. """ I really don't know how to solve ,who can help me Thanks

bitloop39 commented 2 years ago

Hello, My current environment is Centos7, i had same problem here All dev packages installed.

libellux commented 1 year ago

Are you sure you've installed openssl-devel?