[SSSD] [PATCH] tests: Link the simple access tests with -ldl

Jakub Hrozek jhrozek at redhat.com
Fri Apr 19 09:30:47 UTC 2013


Timo Aaltonen discovered that on Ubuntu the simple access tests fail
with a linker error saying that dlopen and dlsym are not available. It
seems that because we are linking to some files from
src/providers/data_provider_*.c we need to also link with -ldl.

Timo confirmed on IRC that this one-liner fixes the problem for him.
-------------- next part --------------
>From a58c950b21056925f8a5ae46a6bb6ad5a951ef11 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Fri, 19 Apr 2013 11:27:59 +0200
Subject: [PATCH] tests: Link the simple access tests with -ldl

---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.am b/Makefile.am
index 09056b5d9fec1d23213132940d11c312bcbfc23d..ef1802246226bd08826f028a784d80289b723d81 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1058,6 +1058,7 @@ simple_access_tests_CFLAGS = \
     $(CHECK_CFLAGS) \
     -DUNIT_TESTING
 simple_access_tests_LDADD = \
+    -ldl \
     $(SSSD_LIBS) \
     $(CARES_LIBS) \
     $(CHECK_LIBS) \
-- 
1.8.1.4



More information about the sssd-devel mailing list