[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4508) OpenLDAP 2.3.20 has problems when integrated with Apache 2.0.55



Full_Name: Sridhar N Murthy
Version: 2.3.20
OS: AIX 5.3 ML-03
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (70.247.99.154)


I used the follwoing bash script to compile OpenLDAP
## Script build-openldap2.3.20.bash
export pct="%"
export RUNTIME="$(date +${pct}Y${pct}m${pct}d-${pct}H${pct}M${pct}S)"
export CONFIG_SHELL=/usr/bin/bash
export TOPDIR=/work
export SRCDIR=${TOPDIR}/openldap-2.3.20
export OBJSRC=${TOPDIR}/objsrc-openldap2.3.20
export LOGFILE=${TOPDIR}/logs/`basename $0`-log-${RUNTIME}
export PREFIX=/usr/openldap.2.3.20-bs_gcc345
export CC=/usr/gcc/bin/gcc

export CPPFLAGS="-I/opt/freeware/include "
export CPPFLAGS="$CPPFLAGS -I/opt/freeware/include/openssl " 
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5 "
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5/backward"
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5/bits "
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5/ext"
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5/powerpc-ibm-aix5.3.0.0"
export CPPFLAGS="$CPPFLAGS
-I/usr/gcc/include/c++/3.4.5/powerpc-ibm-aix5.3.0.0/bits" 

{
  cmd="${SRCDIR}/configure --with-tls --prefix=${PREFIX} --disable-slapd"
  echo "COMMAND: '${cmd}'\n\n"
  ${SRCDIR}/configure --with-tls --prefix=${PREFIX} --disable-slapd 
  echo "RC($?)"
  echo "========================================="
  echo "COMMAND: 'gmake depend'"
  gmake depend
  echo "RC($?)"
  echo "========================================="
  echo "COMMAND: 'gmake install'"
  gmake install
  echo "RC($?)"
  echo "========================================="
  echo "END: `date`"
} 2>&1 | tee ${LOGFILE}

This works fine and install OpenLDAP correctly.

The next step is I build Apache 2.0.55

## Script build-httpd.2.0.55.bash
#!/usr/bin/bash
export pct="%"
export RUNTIME="$(date +${pct}Y${pct}m${pct}d-${pct}H${pct}M${pct}S)"
export CONFIG_SHELL=/usr/bin/bash
export TOPDIR=/work
export SRCDIR=${TOPDIR}/httpd-2.0.55
export OBJSRC=${TOPDIR}/objsrc-httpd2.0.55
export LOGFILE=${TOPDIR}/logs/`basename $0`-log-${RUNTIME}
export PREFIX=/usr/apache-2.0.55/
export CC=/usr/gcc/bin/gcc 
export OPENLDAP_DIR=/usr/openldap.2.3.20-bs_gcc345
export ZLIB_DIR=/usr/zlib123-bs_gcc345
export CPPFLAGS="-I/opt/freeware/include "
export CPPFLAGS="$CPPFLAGS -I/opt/freeware/include/openssl " 
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5 "
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5/backward"
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5/bits "
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5/ext"
export CPPFLAGS="$CPPFLAGS -I/usr/gcc/include/c++/3.4.5/powerpc-ibm-aix5.3.0.0"
export CPPFLAGS="$CPPFLAGS
-I/usr/gcc/include/c++/3.4.5/powerpc-ibm-aix5.3.0.0/bits" 
export CPPFLAGS="$CPPFLAGS -I/usr/zlib123-bs_gcc345/include"
export CPPFLAGS="$CPPFLAGS -I/usr/openldap.2.3.20-bs_gcc345/include"

{
  echo "START: `date`"
  echo "========================================="

  if [[ ${PWD} != "${OBJSRC}" ]]; then
    echo " ERROR !!! This script must be run from '${OBJSRC}' directory"
    exit 1
  fi

  cmd="${SRCDIR}/configure --prefix=${PREFIX} --enable-ldap --enable-auth-ldap
--enable-deflate --enable-ssl --with-ssl
=/opt/freeware/include/openssl --enable-dav --enable-dav-fs --enable-rewrite
--enable-so --with-z=${ZLIB_DIR} --with-ld
ap-lib=${OPENLDAP_DIR}/lib --with-ldap-include=${OPENLDAP_DIR}/include
--with-ldap --enable-mods-shared=most"
  echo "COMMAND: '${cmd}'\n\n"

  ${SRCDIR}/configure --prefix=${PREFIX} --enable-ldap --enable-auth-ldap
--enable-deflate --enable-ssl --with-ssl=/opt
/freeware/include/openssl --enable-dav --enable-dav-fs --enable-rewrite
--enable-so --with-z=${ZLIB_DIR} --with-ldap-li
b=${OPENLDAP_DIR}/lib --with-ldap-include=${OPENLDAP_DIR}/include --with-ldap
--enable-mods-shared=most

  echo "RC($?)"
  echo "========================================="
  echo "COMMAND: 'gmake'"
  gmake 
  echo "RC($?)"
  echo "========================================="
  echo "COMMAND: 'gmake install'"
  gmake install
  echo "RC($?)"
  echo "========================================="
  echo "END: `date`"
} 2>&1 | tee ${LOGFILE}

Apache builds fine.

Set the http.conf file and try to start apache

/usr/apache-tomcat-5.5.12/bin/startup.sh Then we get the following error:



Syntax error on line 239 of /usr/apache-2.0.55/conf/httpd.conf:

Cannot load /usr/apache-2.0.55/modules/mod_ldap.so into server: rtld: 0712-001
Symbol ldap_unbind_s was referenced\n      from module
/usr/apache-2.0.55/modules/mod_ldap.so(), but a runtime definition\n      of the
symbol was not found.
\nrtld: 0712-001 Symbol ldap_simple_bind_s was referenced\n      from module
/usr/apache-2.0.55/modules/mod_ldap.so(), but a runtime definition\n      of the
symbol was not found.
\nrtld: 0712-001 Symbol ldap_init was referenced\n      from module
/usr/apache-2.0.55/modules/mod_ldap.so(), but a runtime definition\n of the
symbol was not found
.\nrtld: 0712-001 Symbol ldap_set_option was referenced\n      from module
/usr/apache-2.0.55/modules/mod_ldap.so(), but a runtime definition\n      of the
symbol was not found.
\nrtld: 0712-001 Symbol ldap_search_ext_s was referenced\n      from module
/usr/apache-2.0.55/modules/mod_ldap.so(), but a runtime definition\n      of the
symbol was not found.
\nrtld: 0712-001 Symbol ldap_first_entry was referenced\n      from module
/usr/apache-2.0.55/modules/mod_ldap.so(), but a runtime definition\n      of the
symbol was not found.
\nrtld: 0712-001 Symbol ldap_get_dn was referenced\n      from module
/usr/apache-2.0.55/modules/mod_ldap.so(), but a runtime 
definition\n      of the symbol was not found.\n\t0509-021 Additional errors
occurred but are not reported.


Please note that when I compile OpenLDAP 2.2.23 with the sam flags and same
settings 
everything works correctly (including the same httpd.conf file)