a656aa3 TEST: Link ipa_ldap_opt test with openldap libs

1 file Authored by lslebodn 9 years ago, Committed by jhrozek 9 years ago,
1 file changed. 1 lines added. 0 lines removed.
    TEST: Link ipa_ldap_opt test with openldap libs
    
    The test ipa_ldap_opt has undefined symbols from libldap and liblber,
    but it was not directly linked with openldap libraries.
    
    sh-4.2$ nm --undefined-only .libs/ipa_ldap_opt-tests | grep -E "ldap|ber"
                     U ber_free
                     U ldap_err2string
    
    It causes linker failure on systems with disabled link_all_deplibs (debian)
    
    /usr/bin/ld: src/providers/ldap/ipa_ldap_opt_tests-sdap.o: undefined reference
    to symbol 'ber_free'
    /usr/bin/ld: note: 'ber_free' is defined in DSO /lib64/liblber-2.4.so.2 so try
    adding it to the linker command line
    /lib64/liblber-2.4.so.2: could not read symbols: Invalid operation
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
    Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
    (cherry picked from commit d12c95d840ed5de7f34e21002943c48e711a33f4)
    
        
file modified
+1 -0