ehlo,
I was testing patch for building man pages on ubuntu and
there was problem with linking some tests and dlopen-test failed.
I was not able to reproduce the same problem on fedora with the same
linking flags and patched version of libtool.
We should link libsss_ldap_common.so with LDAP libraries.
nm --dynamic --undefined-only .libs/libsss_ldap_common.so | grep -E
"ldap_|ber_"
U ber_alloc_t
U ber_bvfree
U ber_flatten
U ber_free
U ber_memfree
U ber_printf
U ber_pvt_opt_on
U ber_sockbuf_alloc
U ber_sockbuf_ctrl
U ber_sockbuf_free
U ldap_abandon_ext
U ldap_control_create
//snip
U ldap_set_rebind_proc
U ldap_start_tls
U ldap_str2dn
U ldap_tls_inplace
U ldap_unbind_ext
U ldap_url_desc2str
U ldap_url_parse
U ldap_value_free_len
LS