Re: [Exim] Problem compiling 4.01 with ldap

Top Pagina
Delete this message
Reply to this message
Auteur: David L. Potter
Datum:  
Aan: exim-users
CC: Philip Hazel
Onderwerp: Re: [Exim] Problem compiling 4.01 with ldap
Thanks for putting me on the right track... ;-)

I had left the default (LDAP_LIB_TYPE=OPENLDAP1) when RedHat 7.2 wants
LDAP_LIB_TYPE=OPENLDAP2.

In addition the library seems to be split between /lib and /usr/lib so
once I got that sorted out it built fine.

Regards,

David Potter


Philip Hazel wrote:
>
> On Mon, 25 Mar 2002, David L. Potter wrote:
>
> > make[2]: Entering directory
> > `/var/source/exim-4.01/build-Linux-i386/lookups'
> > gcc -c -O cdb.c
> > gcc -c -O dbmdb.c
> > gcc -c -O dnsdb.c
> > gcc -c -O dsearch.c
> > gcc -c -O ldap.c
> > ldap.c: In function `perform_ldap_search':
> > ldap.c:517: dereferencing pointer to incomplete type
> > ldap.c:518: dereferencing pointer to incomplete type
> > make[2]: *** [ldap.o] Error 1
> > make[2]: Leaving directory
> > `/var/source/exim-4.01/build-Linux-i386/lookups'
> >
> > ldap stuff is /usr/include;/usr/lib and I've specified them in
> > Local/Makefile
>
> Have you set LDAP_LIB_TYPE to the correct LDAP library type? (I'm just
> guessing here, but the line numbers you quote are inside some code that
> varies between the different APIs.)
>
> --
> Philip Hazel            University of Cambridge Computing Service,
> ph10@???      Cambridge, England. Phone: +44 1223 334714.