[Exim] Exim with LDAP options won't compile

Top Page
Delete this message
Reply to this message
Author: Bruno Touleau
Date:  
To: exim-users
Subject: [Exim] Exim with LDAP options won't compile
I'am try to use Exim as MTA on a linux server wtih a LDAP users
authentication, I got some erros, what's wrong?
I use openldap, the libraries are in /usr/local/lib and /usr/local/include

TIA for any help.

>>> exim monitor binary built


make[2]: Entering directory
`/usr/src/RPM/BUILD/exim-3.15/build-Linux-i386/libident'
make[2]: `libident.a' is up to date.
make[2]: Leaving directory
`/usr/src/RPM/BUILD/exim-3.15/build-Linux-i386/libident'

make[2]: Entering directory
`/usr/src/RPM/BUILD/exim-3.15/build-Linux-i386/lookups'
gcc -c -O -I /usr/local/include ldap.c
ldap.c:57: parse error before `LDAP'
ldap.c:57: warning: no semicolon at end of struct or union
ldap.c:58: warning: data definition has no type or storage class
ldap.c:60: parse error before `*'
ldap.c:60: warning: data definition has no type or storage class
ldap.c: In function `perform_ldap_search':
ldap.c:96: `LDAPURLDesc' undeclared (first use in this function)
ldap.c:96: (Each undeclared identifier is reported only once
ldap.c:96: for each function it appears in.)
ldap.c:96: `ludp' undeclared (first use in this function)
ldap.c:97: `LDAPMessage' undeclared (first use in this function)
ldap.c:97: `result' undeclared (first use in this function)
ldap.c:98: `e' undeclared (first use in this function)
ldap.c:99: parse error before `*'
ldap.c:100: `lcp' undeclared (first use in this function)
ldap.c:102: parse error before `char'
ldap.c:134: `rc' undeclared (first use in this function)
ldap.c:148: `host' undeclared (first use in this function)
ldap.c:149: `port' undeclared (first use in this function)
ldap.c:159: `attrp' undeclared (first use in this function)
ldap.c:160: `attr_count' undeclared (first use in this function)
ldap.c:182: `LDAP' undeclared (first use in this function)
ldap.c:182: `ld' undeclared (first use in this function)
ldap.c:182: `LDAP_PORT' undeclared (first use in this function)
ldap.c:229: `LDAP_AUTH_SIMPLE' undeclared (first use in this function)
ldap.c:230: `LDAP_SUCCESS' undeclared (first use in this function)
ldap.c:261: `LDAP_RES_ANY' undeclared (first use in this function)
ldap.c:316: `size' undeclared (first use in this function)
ldap.c:317: `ptr' undeclared (first use in this function)
ldap.c:318: `data' undeclared (first use in this function)
ldap.c:324: `NULLMSG' undeclared (first use in this function)
ldap.c:333: `add_newline' undeclared (first use in this function)
ldap.c:341: `attr' undeclared (first use in this function)
ldap.c:341: `ber' undeclared (first use in this function)
ldap.c:349: `firstval' undeclared (first use in this function)
ldap.c:349: `values' undeclared (first use in this function)
ldap.c:369: `attribute_found' undeclared (first use in this function)
ldap.c: In function `eldap_tidy':
ldap.c:569: `lcp' undeclared (first use in this function)
make[2]: *** [ldap.o] Error 1
make[2]: Leaving directory
`/usr/src/RPM/BUILD/exim-3.15/build-Linux-i386/lookups'

make[2]: Entering directory
`/usr/src/RPM/BUILD/exim-3.15/build-Linux-i386/directors'
make[2]: `directors.a' is up to date.
make[2]: Leaving directory
`/usr/src/RPM/BUILD/exim-3.15/build-Linux-i386/directors'