From: Jan Engelhardt Date: 2013-09-11 14:33:49.545836772 +0200 build: add missing libraries to link line test_dbi_dlopen.o: In function `main': test_dbi_dlopen.c:41: undefined reference to `dlopen' test_dbi_dlopen.c:45: undefined reference to `dlopen' test_dbi_dlopen.c:61: undefined reference to `dlsym' test_dbi_dlopen.c:63: undefined reference to `dlerror' --- tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) Index: libdbi-drivers-0.9.0/tests/Makefile.am =================================================================== --- libdbi-drivers-0.9.0.orig/tests/Makefile.am +++ libdbi-drivers-0.9.0/tests/Makefile.am @@ -11,6 +11,7 @@ test_dbi_SOURCES = test_dbi.c test_dbi_LDADD = $(top_srcdir)/tests/cgreen/libcgreen.a -L@libdir@ -lm -ldbi @LIBADD_LIBDBI@ test_dbi_dlopen_SOURCES = test_dbi_dlopen.c test_dbi_dlopen_LDFLAGS = @LIBADD_LIBDBI@ +test_dbi_dlopen_LDADD = -ldl libtest_dbi_plugin_la_SOURCES = test_dbi_plugin.c libtest_dbi_plugin_la_LIBADD = @LIBADD_LIBDBI@ libtest_dbi_plugin_la_LDFLAGS = -module -rpath /nowhere