Mailing List Archive

Exim-4.0.5 fails to compile with OPENLDAP2
Hi,

I wanted to compile Exim-4 with OPENLDAP type set to OPENLDAP2
(FreeBSD 4.6-STABLE here) from the ports.

I'm wondering whether this is OpenLDAP or Exim issue.



<cut>

>>> exim_tidydb utility built

gcc -c -O -pipe -I /usr/local/include exim_lock.c
gcc -o exim_lock exim_lock.o -lcrypt -lpam
/usr/bin/strip exim_lock

>>> exim_lock utility built

gcc -c -O -pipe -I /usr/local/include -I/usr/local/include/mysql -I/usr/local/include cdb.c
gcc -c -O -pipe -I /usr/local/include -I/usr/local/include/mysql -I/usr/local/include dbmdb.c
gcc -c -O -pipe -I /usr/local/include -I/usr/local/include/mysql -I/usr/local/include dnsdb.c
gcc -c -O -pipe -I /usr/local/include -I/usr/local/include/mysql -I/usr/local/include dsearch.c
gcc -c -O -pipe -I /usr/local/include -I/usr/local/include/mysql -I/usr/local/include ldap.c
ldap.c: In function `perform_ldap_search':
ldap.c:520: dereferencing pointer to incomplete type
ldap.c:521: dereferencing pointer to incomplete type
*** Error code 1

Stop in /usr/ports/mail/exim-devel/work/exim-4.05/build-FreeBSD-i386/lookups.
*** Error code 1

Stop in /usr/ports/mail/exim-devel/work/exim-4.05/build-FreeBSD-i386.
*** Error code 1

Stop in /usr/ports/mail/exim-devel/work/exim-4.05.
*** Error code 1

Stop in /usr/ports/mail/exim-devel.
</cut>




-Wash

--
Odhiambo Washington <wash@wananchi.com> "The box said 'Requires
Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,'
Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD."
GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-)


You will be a winner today. Pick a fight with a four-year-old.
Re: Exim-4.0.5 fails to compile with OPENLDAP2 [ In reply to ]
On (2002/07/19 16:42), Odhiambo G. Washington wrote:

> I wanted to compile Exim-4 with OPENLDAP type set to OPENLDAP2
> (FreeBSD 4.6-STABLE here) from the ports.
>
> I'm wondering whether this is OpenLDAP or Exim issue.

It could be a problem with the FreeBSD port itself
(ports/mail/exim-devel), since I haven't tested ldap2 compilation
myself.

How did you start the port build? Like this?

make WITH_LDAP=yes LDAP_LIB_TYPE=OPENLDAP2

If not, show me what you did. If so, can you confirm that

a) ports/net/openldap2 is installed, and
b) liblber.so.2 is available, with 'ldconfig -r |grep lber'.

Ciao,
Sheldon.