[xmlsec] Question: I have a problem with "xmlSecCryptoDLLoadLibrary"

John Belmonte john at neggie.net
Sat Apr 8 06:21:27 PDT 2006


cuzcueta at unl.edu.ar wrote:
> debian:/usr/share/doc/libxmlsec1-dev/examples# make
> gcc -g -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_XKMS=1
> -I/usr/local/include/xmlsec1 -I/usr/local/include/libxml2 -I/usr/local/include
> -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO=\"openssl\" -DUNIX_SOCKETS  -g
> -L/usr/local/lib -ldl -lxmlsec1 -lxslt -lxml2 -lz -lpthread -lm  sign1.c   -o sign1
...
>>sign1-res.xml
> 
> error : Unknown IO error
> error : Unknown IO error
> ./sign1: relocation error: ./sign1: undefined symbol: xmlSecCryptoDLLoadLibrary
> 
> 
> Can you tell me what is the problem here?

Hello,

>From /usr/share/doc/libxmlsec1-dev/README.Debian:

  Note that the library has a dynamic crypto engine loading feature,
  but I have not yet enabled it.

Looking at your compile line, it seems you modified the makefile.  The C
flags should be as follows:

  $ xmlsec1-config --cflags
  -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_XKMS=1
  -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -I/usr/include/xmlsec1
  -I/usr/include/libxml2 -DXMLSEC_OPENSSL_097=1
  -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=\"openssl\


--John



More information about the xmlsec mailing list