>From 7bcdbf7e0b4a9947d33a9f3e1024a6172f265dfb Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 17 Mar 2014 09:07:56 +0100 Subject: [PATCH 2/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 2540988b0b44cb23842e6afb89a8773f4f55324a..8430490ddc9669dba9e739fd712f0c9945286197 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1797,6 +1797,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 @@ -1858,8 +1860,7 @@ libsss_ldap_la_LIBADD = \ $(DHASH_LIBS) \ $(KRB5_LIBS) \ $(SYSTEMD_LOGIN_LIBS) \ - libsss_ldap_common.la \ - libsss_idmap.la + libsss_ldap_common.la libsss_ldap_la_LDFLAGS = \ -avoid-version \ -module -- 1.8.5.3