[Exim] Exim 4.11 LDAP lookup fails to compile

トップ ページ
このメッセージを削除
このメッセージに返信
著者: William Craven
日付:  
To: exim-users
題目: [Exim] Exim 4.11 LDAP lookup fails to compile
I am attempting to build Exim 4.11 on a Solaris 8 system using Solaris
LDAP client libraries as provided in Solaris 8 and the compilation of
src/lookups/ldap.c fails. Below is the relevant output

>>> exim_lock utility built


gcc -c -g -O -I/usr/local/db/include cdb.c
gcc -c -g -O -I/usr/local/db/include dbmdb.c
gcc -c -g -O -I/usr/local/db/include dnsdb.c
gcc -c -g -O -I/usr/local/db/include dsearch.c
gcc -c -g -O -I/usr/local/db/include ldap.c
ldap.c: In function `perform_ldap_search':
ldap.c:235: structure has no member named `lud_scheme'
*** Error code 1
make: Fatal error: Command failed for target `ldap.o'
Current working directory
/local/home/its/wcraven/exim-4.11/build-SunOS5-5.8-sparc/lookups
*** Error code 1
make: Fatal error: Command failed for target `buildlookups'
Current working directory
/local/home/its/wcraven/exim-4.11/build-SunOS5-5.8-sparc
*** Error code 1
make: Fatal error: Command failed for target `go'

Looking at /usr/include/ldap.h and /usr/include/lber.h there is no
reference to 'lud_scheme'. Seems like Solaris LDAP client libraries do
not support ldapi - here is the relevant bit of code where it is failing

  #if defined LDAP_LIB_OPENLDAP2 || defined LDAP_LIB_SOLARIS
  else if (strncmp(ludp->lud_scheme, "ldapi", 5) == 0)
    {
    *errmsg = string_sprintf("ldapi requires an absolute path (\"%s\"
given)",
      host);
    goto RETURN_ERROR;
    }
  #endif


I maybe missing something. Any ideas from list ?

Thanks

Wm.
--
William Craven
ITServices                Email:    William.Craven@???
University of British Columbia        Tel:    +1-604-822-8955
Vancouver, BC, Canada V6T 1Z2        Fax:    +1-604-822-5116