httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13427] New: - Can't build LDAP enable on Solaris
Date Tue, 08 Oct 2002 23:04:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13427>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13427

Can't build LDAP enable on Solaris

           Summary: Can't build LDAP enable on Solaris
           Product: Apache httpd-2.0
           Version: 2.0.42
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Build
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: gaa@ulticom.com


I have attempted to build the LDAP enabled Apache 2.0.43 on Solaris 9 using
OpenLDAP 2.0.7 (from Sunfreeware.com).  The Solaris compiles require
one to link LDAP with "... -lldap -llber -lsocket -lnsl -lresolv ...".
The attempted LDAP lookups in srclib/apr-util/configure don't include
this.

Attempts to specify something on the command line like:
    ../configure --with-ldap="ldap, \"-llber -lsocket\"..."
will never work as the variable set by the script is different from the variable
used.

Attempts to fix the script to try more possibilities fails because the
attempts are performed in a loop with a cache variable set and tested
each time that is based purly upon the library name, not using the extralibs
names.  This causes second and subsequent tests to never be run.  It looks
like someone tried to unset the cache variable, but the name unset does not
match the name set.  I don't know if the "''" in the middle of the name is
a bug in this package, a bug in autoconf, or "planned", but it gets translated
to two extra "_" characters.  The sure fix is to unset both.

The fix: make these changes to build/apu-conf.m4 and rebuild configure:

diff -u -r1.1.1.1 apu-conf.m4
--- build/apu-conf.m4   8 Oct 2002 21:38:11 -0000       1.1.1.1
+++ build/apu-conf.m4   8 Oct 2002 22:38:52 -0000
@@ -651,6 +651,7 @@
     ldaplib=$1
     extralib=$2
     unset ac_cv_lib_${ldaplib}_ldap_init
+    unset ac_cv_lib_${ldaplib}___ldap_init
     AC_CHECK_LIB(${ldaplib}, ldap_init, 
       [
         APR_ADDTO(APRUTIL_EXPORT_LIBS,[-l${ldaplib} ${extralib}])
@@ -699,9 +700,13 @@
       APU_FIND_LDAPLIB("ldapssl20")
       APU_FIND_LDAPLIB("ldap", "-llber")
       APU_FIND_LDAPLIB("ldap", "-llber -lresolv")
+      APU_FIND_LDAPLIB("ldap", "-llber -lsocket -lnsl -lresolv")
       APU_FIND_LDAPLIB("ldap", "-ldl -lpthread")
     else
-      APU_FIND_LDAPLIB($LDAPLIB)
+      APU_FIND_LDAPLIB($LIBLDAP)
+      APU_FIND_LDAPLIB($LIBLDAP, "-lresolv")
+      APU_FIND_LDAPLIB($LIBLDAP, "-lsocket -lnsl -lresolv")
+      APU_FIND_LDAPLIB($LIBLDAP, "-ldl -lpthread")
     fi
 
     test ${apu_has_ldap} != "define" && AC_MSG_ERROR(could not find an LDAP
library)

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message