On Thu, Aug 09, 2007, Peter Zimmer wrote: > when I try to compile OpenLDAP on Ubuntu 7.04, the following error > appears: > > [EMAIL PROTECTED] rpm -bb openldap.spec > Executing(%prep): env -i /opt/local/lib/openpkg/bash --norc --noprofile > --posix -e /opt/local/RPM/TMP/rpm-tmp.76104 > + cd /opt/local/RPM/TMP > + cd /opt/local/RPM/TMP > + rm -rf openldap-2.3.37 > + /opt/local/lib/openpkg/gzip -dc > /opt/local/RPM/SRC/openldap/openldap-2.3.37.tgz > + /opt/local/lib/openpkg/tar -xf - > + STATUS=0 > + '[' 0 -ne 0 ']' > + cd openldap-2.3.37 > + echo 'Patch #0 (openldap.patch):' > ... > checking struct sockaddr_storage... yes > checking sys/un.h usability... yes > checking sys/un.h presence... yes > checking for sys/un.h... yes > checking openssl/ssl.h usability... yes > checking openssl/ssl.h presence... yes > checking for openssl/ssl.h... yes > checking for SSL_library_init in -lssl... no > checking for ssl3_accept in -lssl... no > checking OpenSSL library version (CRL checking capability)... yes > configure: error: Could not locate TLS/SSL package > error: Bad exit status from /opt/local/RPM/TMP/rpm-tmp.33921 (%build) > > RPM build errors: > Bad exit status from /opt/local/RPM/TMP/rpm-tmp.33921 (%build) > [EMAIL PROTECTED] > > Openssl is installed correctly. What am I doing wrong?
To find out the root cause you have to look into /opt/local/RPM/TMP/openldap-2.3.37/config.log and there search for "SSL_library_init" and check for what reason the linker was not able to link the test program based on a SSL_library_init() call. A wild guess from my side is: you built OpenSSL with "with_zlib=yes". This cannot be used in general as not all applications (like OpenLDAP here) use the "openssl.pc" pkg-config(1) specification (where the -lz is recorded correctly). If this is the case please re-build and re-install "openssl" with "with_zlib=no". Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ OpenPKG http://openpkg.org User Communication List openpkg-users@openpkg.org