From cab901c0a61fab5e5fd20f80be4edcbff8a641a9 Mon Sep 17 00:00:00 2001 From: Michal Vyskocil Date: Sun, 6 Nov 2016 11:18:55 +0100 Subject: [PATCH] Problem: linking fails on glibc 2.24 with dladdr missing Solution: try to find dladdr function on Linux - glibc systems provides dlopen/dladdr in libdl and not in libc itseld. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index b863c628..4fb2757b 100644 --- a/configure.ac +++ b/configure.ac @@ -157,6 +157,11 @@ case "${host_os}" in AC_DEFINE(ZMQ_HAVE_LINUX, 1, [Have Linux OS]) libzmq_on_linux="yes" + # dladdr/dlopen is in libdl on glibc + AC_SEARCH_LIBS([dladdr], [dl dld], [], [ + AC_MSG_ERROR([unable to find the dladdr() function]) + ]) + if test "x$libzmq_tipc_support" = "xyes"; then AC_DEFINE(ZMQ_HAVE_TIPC, 1, [Have TIPC support]) fi