I tried compiling with OpenLDAP 1.2.0 and linking failed. The generated
src/Makefile only includes the -lldap library when LDAP is compiled in.
The libraries -llber -lkrb -ldes are also required for linking with
OpenLDAP. I'll leave the fix to someone who knows autoconf, I'm afraid I
don't qualify.
/usr/local/lib/libldap.a(result.o): In function `read1msg':
result.o(.text+0x551): undefined reference to `ber_init'
result.o(.text+0x575): undefined reference to `ber_get_next'
result.o(.text+0x5b5): undefined reference to `ber_get_int'
result.o(.text+0x6aa): undefined reference to `ber_peek_tag'
result.o(.text+0x761): undefined reference to `ber_scanf'
result.o(.text+0xa9e): undefined reference to `ber_dup'
/usr/local/lib/libldap.a(result.o): In function `build_result_ber':
result.o(.text+0xca5): undefined reference to `ber_init'
result.o(.text+0xd04): undefined reference to `ber_printf'
result.o(.text+0xd23): undefined reference to `ber_reset'
result.o(.text+0xd33): undefined reference to `ber_skip_tag'
result.o(.text+0xd51): undefined reference to `ber_get_int'
result.o(.text+0xd71): undefined reference to `ber_peek_tag'
/usr/local/lib/libldap.a(result.o): In function `ldap_msgfree':
result.o(.text+0xf24): undefined reference to `ber_free'
/usr/local/lib/libldap.a(error.o): In function `ldap_result2error':
error.o(.text+0x2c4): undefined reference to `ber_scanf'
error.o(.text+0x2e9): undefined reference to `ber_scanf'
/usr/local/lib/libldap.a(search.o): In function `ldap_search':
search.o(.text+0x87): undefined reference to `ber_free'
/usr/local/lib/libldap.a(search.o): In function `ldap_build_search_req':
search.o(.text+0x14a): undefined reference to `ber_printf'
search.o(.text+0x16d): undefined reference to `ber_free'
search.o(.text+0x1c5): undefined reference to `ber_free'
search.o(.text+0x1de): undefined reference to `ber_printf'
search.o(.text+0x1fd): undefined reference to `ber_free'
/usr/local/lib/libldap.a(search.o): In function `put_complex_filter':
search.o(.text+0x2b8): undefined reference to `ber_printf'
search.o(.text+0x323): undefined reference to `ber_printf'
/usr/local/lib/libldap.a(search.o): In function `put_filter':
search.o(.text+0x692): undefined reference to `ber_printf'
/usr/local/lib/libldap.a(search.o): In function `put_simple_filter':
search.o(.text+0x9f7): undefined reference to `ber_printf'
search.o(.text+0xa1e): undefined reference to `ber_printf'
/usr/local/lib/libldap.a(search.o)(.text+0xa99): more undefined references to
`ber_printf' follow
/usr/local/lib/libldap.a(abandon.o): In function `do_abandon':
abandon.o(.text+0x1a9): undefined reference to `ber_free'
abandon.o(.text+0x1d9): undefined reference to `ber_flush'
/usr/local/lib/libldap.a(cache.o): In function `ldap_add_request_to_cache':
cache.o(.text+0x5cc): undefined reference to `ber_free'
/usr/local/lib/libldap.a(cache.o): In function `cache_hash':
cache.o(.text+0xcf7): undefined reference to `ber_skip_tag'
cache.o(.text+0xd16): undefined reference to `ber_scanf'
/usr/local/lib/libldap.a(cache.o): In function `msg_dup':
cache.o(.text+0xdec): undefined reference to `ber_dup'
cache.o(.text+0xe5a): undefined reference to `ber_free'
/usr/local/lib/libldap.a(cache.o): In function `request_cmp':
cache.o(.text+0xf21): undefined reference to `ber_skip_tag'
cache.o(.text+0xf39): undefined reference to `ber_scanf'
cache.o(.text+0xf5d): undefined reference to `ber_skip_tag'
cache.o(.text+0xf75): undefined reference to `ber_scanf'
/usr/local/lib/libldap.a(cache.o): In function `chain_contains_dn':
cache.o(.text+0xffd): undefined reference to `ber_scanf'
cache.o(.text+0x10a5): undefined reference to `ber_scanf'
/usr/local/lib/libldap.a(sbind.o): In function `ldap_simple_bind':
sbind.o(.text+0x92): undefined reference to `ber_printf'
sbind.o(.text+0xb1): undefined reference to `ber_free'
/usr/local/lib/libldap.a(kbind.o): In function `ldap_kerberos_bind1':
kbind.o(.text+0xc6): undefined reference to `ber_printf'
kbind.o(.text+0xeb): undefined reference to `ber_free'
/usr/local/lib/libldap.a(kbind.o): In function `ldap_kerberos_bind2':
kbind.o(.text+0x2a6): undefined reference to `ber_printf'
kbind.o(.text+0x2cb): undefined reference to `ber_free'
/usr/local/lib/libldap.a(kbind.o): In function `ldap_get_kerberosv4_credentials':
kbind.o(.text+0x439): undefined reference to `tkt_string'
kbind.o(.text+0x441): undefined reference to `krb_get_tf_realm'
kbind.o(.text+0x462): undefined reference to `krb_err_txt'
kbind.o(.text+0x4ba): undefined reference to `krb_mk_req'
kbind.o(.text+0x4db): undefined reference to `krb_err_txt'
/usr/local/lib/libldap.a(unbind.o): In function `ldap_send_unbind':
unbind.o(.text+0x2ca): undefined reference to `ber_printf'
unbind.o(.text+0x2e9): undefined reference to `ber_free'
unbind.o(.text+0x303): undefined reference to `ber_flush'
unbind.o(.text+0x322): undefined reference to `ber_free'
/usr/local/lib/libldap.a(free.o): In function `ldap_mods_free':
free.o(.text+0x1aa): undefined reference to `ber_bvecfree'
/usr/local/lib/libldap.a(getattr.o): In function `ldap_first_attribute':
getattr.o(.text+0x83): undefined reference to `ber_scanf'
getattr.o(.text+0xa4): undefined reference to `ber_free'
/usr/local/lib/libldap.a(getattr.o): In function `ldap_next_attribute':
getattr.o(.text+0x110): undefined reference to `ber_scanf'
getattr.o(.text+0x12f): undefined reference to `ber_free'
/usr/local/lib/libldap.a(getvalues.o): In function `ldap_get_values':
getvalues.o(.text+0x6e): undefined reference to `ber_scanf'
getvalues.o(.text+0xe2): undefined reference to `ber_scanf'
getvalues.o(.text+0x131): undefined reference to `ber_scanf'
/usr/local/lib/libldap.a(getvalues.o): In function `ldap_get_values_len':
getvalues.o(.text+0x1d2): undefined reference to `ber_scanf'
getvalues.o(.text+0x246): undefined reference to `ber_scanf'
/usr/local/lib/libldap.a(getvalues.o)(.text+0x295): more undefined references to
`ber_scanf' follow
/usr/local/lib/libldap.a(request.o): In function `ldap_alloc_ber_with_options':
request.o(.text+0xf): undefined reference to `ber_alloc_t'
/usr/local/lib/libldap.a(request.o): In function `ldap_send_server_request':
request.o(.text+0x2a3): undefined reference to `ber_free'
request.o(.text+0x320): undefined reference to `ber_free'
request.o(.text+0x403): undefined reference to `ber_flush'
/usr/local/lib/libldap.a(request.o): In function `ldap_free_request':
request.o(.text+0xd1a): undefined reference to `ber_free'
/usr/local/lib/libldap.a(request.o): In function `ldap_chase_referrals':
request.o(.text+0x108a): undefined reference to `ber_free'
request.o(.text+0x10d4): undefined reference to `ber_free'
/usr/local/lib/libldap.a(request.o): In function `re_encode_request':
request.o(.text+0x134d): undefined reference to `ber_scanf'
request.o(.text+0x1364): undefined reference to `ber_skip_tag'
request.o(.text+0x13bb): undefined reference to `ber_get_int'
request.o(.text+0x13da): undefined reference to `ber_free'
request.o(.text+0x13f1): undefined reference to `ber_get_stringa'
request.o(.text+0x1406): undefined reference to `ber_free'
request.o(.text+0x1456): undefined reference to `ber_printf'
request.o(.text+0x147c): undefined reference to `ber_printf'
request.o(.text+0x1495): undefined reference to `ber_free'
request.o(.text+0x14b6): undefined reference to `ber_write'
request.o(.text+0x14d3): undefined reference to `ber_printf'
request.o(.text+0x14f5): undefined reference to `ber_free'
request.o(.text+0x1535): undefined reference to `ber_dump'
*** Error code 1
Show replies by date