Summary: | apr-util-1.5.4 build against openldap - "could not find an LDAP library" | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | flynn8765 <christian.tremel> |
Component: | Build | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.5-HEAD | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | AIX |
Description
flynn8765
2015-07-31 08:31:00 UTC
This has been around - for a long time - yet I believe I have a solution. Just have not figured out where to include it (in m4 or a .in file). The key issue for AIX is that the SSL and CRYPTO libraries are also needed. To get configure to succeed I made the following manual adjustment to ./configure This is against version 1.6.1 +8591 if test ${apu_has_ldap} != "1"; then +8592 ldaplib="ldap" +8593 extralib="-llber" +8594 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. +8595 +8596 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" +8597 +8598 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init +8599 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init +8600 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` +8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 +8602 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } +8603 if eval \${$as_ac_Lib+:} false; then : +8604 $as_echo_n "(cached) " >&6 +8605 else +8606 ac_check_lib_save_LIBS=$LIBS +8607 LIBS="-l${ldaplib} ${extralib} $LIBS $LDADD_crypto_openssl" On Line 8607 I add $LDD_crypto_openssl - and LDAP is found! root@x066:[/data/prj/apache/apr/apr-util-1.6.1]/opt/bin/apu-1-config --ldap-libs -lldap -llber Hope this helps! Michael |