diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-05-02 16:13:58 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-05-06 15:58:37 +0200 |
commit | d12c95d840ed5de7f34e21002943c48e711a33f4 (patch) | |
tree | c71f430d705a6167263121d5112ee8288c9605ef /Makefile.am | |
parent | 09f6afae29a2e80655496f7f71a72e50424e6f1c (diff) | |
download | sssd-d12c95d840ed5de7f34e21002943c48e711a33f4.tar.gz sssd-d12c95d840ed5de7f34e21002943c48e711a33f4.tar.xz sssd-d12c95d840ed5de7f34e21002943c48e711a33f4.zip |
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>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 56d8e1df6..4f9c11f47 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1226,6 +1226,7 @@ ipa_ldap_opt_tests_LDADD = \ $(CHECK_LIBS) \ $(TALLOC_LIBS) \ $(SSSD_INTERNAL_LTLIBS) \ + $(OPENLDAP_LIBS) \ libsss_test_common.la ad_ldap_opt_tests_SOURCES = \ |