[Exim] Trouble compiling Exim with LDAP

Top Page
Delete this message
Reply to this message
Author: Dave Lewney
Date:  
To: exim-users
Subject: [Exim] Trouble compiling Exim with LDAP
I'm having trouble compiling Exim with LDAP libs.

OS, versions: Solaris 7, exim-1.13, gcc 2.95.1, Sun Directory Services
3.1

Makefile contains
LOOKUP_LDAP=yes
LOOKUP_LIBS=-L/usr/lib -lldap -llber -lmysqlclient
LDAP_LIB_TYPE=SOLARIS7


make
...
...
gcc -c -O -I /usr/include/ldap -I /usr/lib/llib-lldap ldap.c
ldap.c: In function `perform_ldap_search':
ldap.c:252: dereferencing pointer to incomplete type
ldap.c:253: dereferencing pointer to incomplete type
*** Error code 1
make: Fatal error: Command failed for target `ldap.o'
Current working directory
/export/home/dml/exim-3.13/build-SunOS5-5.7-sparc/lookups
*** Error code 1
make: Fatal error: Command failed for target `buildlookups'
Current working directory
/export/home/dml/exim-3.13/build-SunOS5-5.7-sparc
*** Error code 1
make: Fatal error: Command failed for target `go'


Lines 252, 253 appear to be the two lines between the #else/#endif
statements.

#if defined LDAP_LIB_NETSCAPE
if (sizelimit > 0)
ldap_set_option(lcp->ld, LDAP_OPT_SIZELIMIT, (void *)&sizelimit);
if (timelimit > 0)
ldap_set_option(lcp->ld, LDAP_OPT_TIMELIMIT, (void *)&timelimit);
#else
if (sizelimit > 0) lcp->ld->ld_sizelimit = sizelimit;
if (timelimit > 0) lcp->ld->ld_timelimit = timelimit;
#endif

Any ideas?

Dave
---
Dave Lewney  
Unix System Manager             Email:  D.M.Lewney@??? 
University of Brighton          phone:  01273 642669
UK                              fax:    01273 642666