>From 53f8fae8132951eea126f90af329de33249e82a6 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 9 Jul 2014 12:47:55 +0200 Subject: [PATCH 2/2] BUILD: Link sdap-tests with openldap libraries sdap-tests uses functions from openldap, but it was not linked with libldap or liblber. sh-4.2$ nm --undefined-only .libs/sdap-tests | grep -E "ldap|ber" U ber_free U ldap_control_create U ldap_err2string U ldap_get_option U ldap_init_fd U ldap_install_tls U ldap_is_ldaps_url U ldap_unbind_ext sdap-tests cannot be linked on platfrms with disabled link_all_deplibs. CCLD sdap-tests /usr/bin/ld: src/providers/ldap/sdap_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) make[3]: *** [sdap-tests] Error 1 --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 32af6c0696384c2c91b7d4a7dbef1b84e925846c..04bfeeb2f92284aa54864bea39fb79a62cabfe3b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1878,6 +1878,7 @@ sdap_tests_LDADD = \ $(POPT_LIBS) \ $(SSSD_INTERNAL_LTLIBS) \ $(SSS_CRYPT_LIBS) \ + $(OPENLDAP_LIBS) \ libsss_test_common.la \ $(NULL) -- 1.9.3