>From 20465ef0191c09b89edf00d00c9343fa8a1e1c24 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 15 Mar 2014 16:40:58 +0100 Subject: [PATCH 4/6] BUILD: Link libsss_ldap_common.so to libsss_idmap.so Library libsss_ldap.so does not directly use functions from library libsss_idmap.so. It only call function sdap_idmap_init (from file sdap_idmap.c) which is in library libsss_ldap_common.so sh-4.2$ nm -D --undefined-only /usr/lib64/sssd/libsss_ldap.so | grep idmap U sdap_idmap_init On the other hand, libsss_ldap_common.so uses functions from libsss_idmap but it was not linked to libsss_idmap.so. sh-4.2$ objdump -p /usr/lib64/sssd/libsss_ldap_common.so | grep idmap sh-4.2$ echo $? 1 --- Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index aada0e021c72a3a0e6809b0a96307802225a0216..c6222b813f0af8ae4324bf827e8f3a35879b0876 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1782,6 +1782,8 @@ libsss_ldap_common_la_SOURCES = \ src/providers/ldap/sdap_utils.c \ src/providers/ldap/sdap_domain.c \ src/providers/ldap/sdap.c +libsss_ldap_common_la_LIBADD = \ + libsss_idmap.la libsss_ldap_common_la_LDFLAGS = \ -avoid-version @@ -1838,8 +1840,7 @@ libsss_ldap_la_LIBADD = \ $(OPENLDAP_LIBS) \ $(SSSD_INTERNAL_LTLIBS) \ libsss_ldap_common.la \ - libsss_krb5_common.la \ - libsss_idmap.la + libsss_krb5_common.la libsss_ldap_la_LDFLAGS = \ -avoid-version \ -module -- 1.8.5.3