Source: crtmpserver Version: 1.0~dfsg-5.5 Tags: patch upstream Control: block 798955 by -1
crtmpserver sarches for dlfcn.h on a hard coded search path that happens to not include Debian's multiarch directory. Thus crtmpserver will fail to build against non-glibc libcs and against a multiarched glibc (#798955). The attached patch replaces the search for the header with a call to CHECK_INCLUDE_FILE, which uses the compiler's search path. Please consider applying the attached patch. Helmut
--- crtmpserver-1.0~dfsg.orig/cmake_find_modules/Find_dl.cmake +++ crtmpserver-1.0~dfsg/cmake_find_modules/Find_dl.cmake @@ -1,13 +1,6 @@ MESSAGE(STATUS "Looking for dl") -FIND_PATH(DL_INCLUDE_PATH - NAMES - dlfcn.h - PATHS - /usr/include - /usr/local/include - /sw/include - /opt/local/include - NO_DEFAULT_PATH) +include(CheckIncludeFile) +CHECK_INCLUDE_FILE("dlfcn.h" HAVE_DLFCN_H) SET(CMAKE_FIND_LIBRARY_SUFFIXES .so.2 ${CMAKE_FIND_LIBRARY_SUFFIXES}) @@ -26,18 +19,18 @@ MESSAGE("DL_LIBRARY_PATH: ${DL_LIBRARY_PATH}") -IF(DL_INCLUDE_PATH) +IF(HAVE_DLFCN_H) SET(DL_FOUND 1 CACHE STRING "Set to 1 if dl is found, 0 otherwise") MESSAGE(STATUS "Looking for libdl headers - found") -ELSE(DL_INCLUDE_PATH) +ELSE(HAVE_DLFCN_H) SET(DL_FOUND 0 CACHE STRING "Set to 1 if dl is found, 0 otherwise") MESSAGE(FATAL_ERROR "Looking for libdl headers - not found") -ENDIF(DL_INCLUDE_PATH) +ENDIF(HAVE_DLFCN_H) IF(DL_LIBRARY_PATH) SET(DL_FOUND 1 CACHE STRING "Set to 1 if dl is found, 0 otherwise") MESSAGE(STATUS "Looking for libdl library - found") -ELSE(DL_LIBRddARY_PATH) +ELSE(DL_LIBRARY_PATH) SET(DL_LIBRARY_PATH "") ENDIF(DL_LIBRARY_PATH)