From 73ec8fdfddb2d4bf99977f758eec80e1b1ee8542 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Tue, 29 Sep 2015 09:02:51 +0200 Subject: BUILD: Link test_data_provider_be with -ldl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The module data_provider_be.o uses uncfion dlsym and thus need to be linked with -ldl. /usr/bin/ld: src/providers/test_data_provider_be-data_provider_be.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5' /usr/lib64/libdl.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:10461: recipe for target 'test_data_provider_be' failed It was not a problem when sssd was compiled with NSS because it contains -ldl among its flags. NSS_LIBS='-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl ' However the compilation failed when sssd was compiled with libcrypto Reviewed-by: Michal Židek --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 511d1196a..aae123c18 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2605,6 +2605,7 @@ test_data_provider_be_LDADD = \ $(PAM_LIBS) \ $(SSSD_LIBS) \ $(SSSD_INTERNAL_LTLIBS) \ + $(LIBADD_DL) \ libsss_test_common.la \ libdlopen_test_providers.la \ $(NULL) -- cgit