[Dovecot] autoconf check for ldap not linking with -lber

Timo Sirainen tss at iki.fi
Tue Oct 17 12:08:53 UTC 2006


On Tue, 2006-10-17 at 15:29 +0900, Jorgen Lundman wrote:
> Maybe not a big deal, but generally you (used to?) link against both:

No, I've never even heard of lber before.

> configure:31276: checking for ldap_init in -lldap
> configure:31311: gcc -o conftest -std=gnu99 -I/usr/local/include -Wall -W -Wmiss
> ing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat
> =2 -Wbad-function-cast -I/usr/sfw/include    -L/usr/local/lib conftest.c -lldap
>    -lsocket -lnsl -lrt -lsendfile >&5
> Undefined                       first referenced
>   symbol                             in file
> ber_sockbuf_io_readahead            /usr/local/lib/libldap.so
> ber_sockbuf_alloc                   /usr/local/lib/libldap.so
> ber_sockbuf_io_fd                   /usr/local/lib/libldap.so

I think usually the linker links it with automatically..:

~/cvs/m/dovecot/src/auth% rm dovecot-auth 
~/cvs/m/dovecot/src/auth% make |grep lber
~/cvs/m/dovecot/src/auth% ldd dovecot-auth|grep lber
        liblber.so.2 => /usr/lib/liblber.so.2 (0xb7b75000)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20061017/4edda0fe/attachment.pgp 


More information about the dovecot mailing list