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)