Mailing List Archive

[Bug 63854] Failure to compile httpd 2.4.41 on RHEL 6.10
https://bz.apache.org/bugzilla/show_bug.cgi?id=63854

--- Comment #1 from nv596r@att.com ---

Relevant lines from /build/httpd-2.4.41/srclib/apr-util/include/apr_ldap_init.h

139: APU_DECLARE_LDAP(int) apr_ldap_init(apr_pool_t *pool,
140: LDAP **ldap,
141: const char *hostname,
142: int portno,
143: int secure,
144: apr_ldap_err_t **result_err);

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63854] Failure to compile httpd 2.4.41 on RHEL 6.10 [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=63854

--- Comment #2 from Ruediger Pluem <rpluem@apache.org> ---
--with-ldap does not have a path set unlike your other --with-something
options

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63854] Failure to compile httpd 2.4.41 on RHEL 6.10 [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=63854

--- Comment #3 from nv596r@att.com ---
below we can see the location of the ldap library and the required "ldap_init"
definition:

[build@ecombuild03 httpd-2.4.41]$ ls -l /sites/utils/lib/libldap.so
lrwxrwxrwx 1 build build 37 Oct 15 14:11 /sites/utils/lib/libldap.so ->
../att/openldap-2.4.48/lib/libldap.so
[build@ecombuild03 httpd-2.4.41]$ ls -l
/sites/utils/att/openldap-2.4.48/lib/libldap.so
lrwxrwxrwx 1 build build 22 Oct 15 13:53
/sites/utils/att/openldap-2.4.48/lib/libldap.so -> libldap-2.4.so.2.10.11
[build@ecombuild03 httpd-2.4.41]$ ls -l
/sites/utils/att/openldap-2.4.48/lib/libldap-2.4.so.2.10.11
-rw-r--r-- 1 build build 407844 Oct 15 13:53
/sites/utils/att/openldap-2.4.48/lib/libldap-2.4.so.2.10.11
[build@ecombuild03 httpd-2.4.41]$ strings
/sites/utils/att/openldap-2.4.48/lib/libldap-2.4.so.2.10.11 | grep ldap_init
ldap_init
ldap_initialize
ldap_init_fd
ldap_init: trying %s
ldap_init: using %s
ldap_init: HOME env is %s
ldap_init: HOME env is NULL
ldap_init: %s env is %s
ldap_init: %s env is NULL

Yet, when I update the --with-ldap setting with a path the ldap_init function
is not found (example at end of this comment). ALL of the following values have
been used for --with-ldap:

/sites/utils
/sites/utils/lib
/sites/utils/lib/libldap.so
/sites/utils/att/openldap-2.4.48
/sites/utils/att/openldap-2.4.48/lib
/sites/utils/att/openldap-2.4.48/lib/libldap.so
/sites/utils/att/openldap-2.4.48/lib/libldap-2.4.so.2.10.11

checking for ldap support...
checking for ldap_init in -l/sites/utils... no
checking for ldap_init in -l/sites/utils... no
checking for ldap_init in -l/sites/utils... no
checking for ldap_init in -l/sites/utils... no
configure: error: could not find an LDAP library

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63854] Failure to compile httpd 2.4.41 on RHEL 6.10 [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=63854

--- Comment #4 from nv596r@att.com ---
In the end, the following worked:

./configure \
--prefix=/sites/www-site/att/httpd-2.4.41 \
--enable-modules="all" \
--enable-mods-shared="all" \
--enable-authn-file \
--enable-authn-dbm \
--enable-authn-core \
--enable-authz-host \
--enable-authz-groupfile \
--enable-authz-user \
--enable-authz-dbm \
--enable-authz-owner \
--enable-authz-core \
--enable-access-compat \
--enable-auth-basic \
--enable-auth-digest \
--enable-allowmethods \
--enable-isapi \
--enable-file-cache \
--enable-cache \
--enable-cache-disk \
--enable-so \
--enable-watchdog \
--enable-macro \
--enable-dumpio \
--enable-buffer \
--enable-data \
--enable-reqtimeout \
--enable-ext-filter \
--enable-request \
--enable-include \
--enable-filter \
--enable-substitute \
--enable-sed \
--enable-charset-lite \
--enable-deflate \
--enable-http \
--enable-mime \
--enable-log-config \
--enable-log-debug \
--enable-log-forensic \
--enable-logio \
--enable-env \
--enable-mime-magic \
--enable-cern-meta \
--enable-expires \
--enable-headers \
--enable-ident \
--enable-usertrack \
--enable-unique-id \
--enable-setenvif \
--enable-version \
--enable-remoteip \
--enable-proxy \
--enable-proxy-connect \
--enable-proxy-http \
--enable-proxy-balancer \
--enable-proxy-express \
--enable-proxy-hcheck \
--enable-session \
--enable-session-cookie \
--enable-session-dbd \
--enable-slotmem-shm \
--enable-slotmem-plain \
--enable-ssl \
--enable-ssl-staticlib-deps \
--enable-http2 \
--enable-proxy-http2 \
--enable-lbmethod-byrequests \
--enable-lbmethod-bytraffic \
--enable-lbmethod-bybusyness \
--enable-lbmethod-heartbeat \
--enable-mpms-shared="all" \
--enable-unixd \
--enable-heartbeat \
--enable-heartmonitor \
--enable-status \
--enable-autoindex \
--enable-ldap \
--enable-asis \
--enable-vhost-alias \
--enable-negotiation \
--enable-dir \
--enable-imagemap \
--enable-actions \
--enable-speling \
--enable-alias \
--enable-rewrite \
--enable-v4-mapped \
--with-ldap \
--with-ldap-include=/sites/utils/include \
--with-ldap-lib=/sites/utils/lib \
--with-libxml2=/sites/www-site \
--with-included-apr \
--with-pcre=/sites/www-site/bin/pcre-config \
--with-ssl=/sites/www-site \
--with-z=/sites/www-site \
--with-nghttp2=/sites/www-site \
--with-curl=/sites/www-site \
--with-mpm=prefork \
--enable-authnz-ldap \
--enable-cache-disk \
--enable-xml2enc \
--enable-proxy-html \
--enable-userdir \
CFLAGS="-I/sites/www-site/include -I/sites/utils/include" \
LDFLAGS="-L/sites/www-site/lib -L/sites/utils/lib
-Wl,-rpath=/sites/www-site/lib,-rpath=/sites/utils/lib" \
LIBS='-ldl -lldap'

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org