On Tue, Aug 9, 2022 at 10:32 AM vmaidarkar@gmail.com wrote:
Hi Team,
I'm compiling OpenLDAP 2.5.13 on CentOS 7 & OpenSSL 1.1.1g is already installed & below is the command. ./configure --prefix=/opt/deployment/openldap_v13 --sysconfdir=/opt/deployment/openldap_v13/etc --localstatedir=/opt/deployment/openldap_v13/var --libexecdir=/opt/deployment/openldap_v13/libexec --enable-overlays=mod --enable-modules --enable-accesslog --enable-auditlog --enable-collect --enable-memberof --enable-syncprov --with-tls=openssl --enable-dynamic --enable-crypt --enable-slapd --enable-rlookups --disable-perl --enable-ppolicy --enable-backends=mod --disable-ndb --disable-sql --disable-shell --disable-bdb --disable-hdb
I'm getting the below error of OpenSSL.
checking for openssl/ssl.h... yes checking for SSL_export_keying_material_early in -lssl... no configure: error: Could not locate TLS/SSL package
Could you please suggest how to fix this issue.
prefix=/opt/deployment/openldap_v13 is not enough to pick up OpenSSL 1.1.
OpenSSL provides package configuration information. Try setting PKG_CONFIG_PATH before invoking configure.Something like:
# prefix is the location you are installing updated packages # In your case it looks like /opt/deployment/openldap_v13 export PKG_CONFIG_PATH=${prefix}/lib/pkgconfig ./configure --prefix=/opt/deployment/openldap_v13 ...
If you don't set PKG_CONFIG_PATH, then you probably need to set the path to headers and libraries in CFLAGS and LDFLAGS.
Jeff