I am trying to build xml-security-c-1.7.2 on Debian, however during ./configure I fail with
configure: error: "Unable to find libcrypto" The offending line in configure.ac is AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <openssl/evp.h>]], [[EVP_EncryptInit(NULL, NULL, NULL, NULL) ; return 0; ]])],, [AC_MSG_ERROR(["Unable to find libcrypto"])]) I have libssl-dev installed and the header is also where it should be: # ldconfig -p | grep openssl libgnutls-openssl.so.27 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libgnutls-openssl.so.27 # ldconfig -p | grep crypto libcrypto.so.1.0.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 libcrypto.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libcrypto.so # ls /usr/include/openssl/evp.h /usr/include/openssl/evp.h Also I can build the defined test program manually just fine with gcc test.cpp -lcrypto. Interestingly the same error also occurs when trying to build the source available on the Debian repos. The only missing dependency missing is libxerces-c-dev which I have already compiled from source. Apparently this issue isn't new, as I have found two E-Mail correspondences regarding this: http://apache-xml-project.6118.n7.nabble.com/Build-on-C-version-on-Ubuntu-gcc-4-8-td40216.html http://mail-archives.apache.org/mod_mbox/santuario-dev/201210.mbox/%3c5086a029.1050...@cineca.it%3E But neither of these give me a hint where things go wrong or their resolution did not work.