Opened 14 years ago

Closed 14 years ago

#27964 closed defect (fixed)

xmlsec: unable to load xmlsec-openssl library

Reported by: kurt@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: xmlsec

Description (last modified by ryandesign (Ryan Carsten Schmidt))

% xmlsec1 --sign-tmpl --print-debug --ignore-manifests --privkey-pem ../xmlsec1-1.2.16/tests/keys/rsakey.pem --pwd secret sig.xml
func=xmlSecCryptoDLLibraryCreate:file=dl.c:line=130:obj=xmlsec_lt_dlopen:subj=unknown:error=7:io function failed:filename=libxmlsec1-openssl.so
func=xmlSecCryptoDLGetLibraryFunctions:file=dl.c:line=453:obj=unknown:subj=xmlSecCryptoDLLibraryCreate:error=1:xmlsec library function failed:crypto=openssl
func=xmlSecCryptoDLLoadLibrary:file=dl.c:line=404:obj=unknown:subj=xmlSecCryptoDLGetLibraryFunctions:error=1:xmlsec library function failed: 
Error: unable to load xmlsec-openssl library. Make sure that you have
this it installed, check shared libraries path (LD_LIBRARY_PATH)
envornment variable or use "--crypto" option to specify different
crypto engine.

This is likely due to the version of libtool used in the port not properly setting LTDL_SHLIB_EXT.

Change History (7)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: xmlsec removed

Please remember to use WikiFormatting.

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Does r75092 help?

comment:3 Changed 14 years ago by kurt@…

Your patch seems to alter the directory to be searched, not the suffix of the library of the dynamic library to be loaded. Hence, I would guess it wouldn't resolve this issue. If you believe it would, I'll give it a try when I'm next at my development station (tomorrow).

comment:4 Changed 14 years ago by kurt@…

I note that a work around to this issue is:

# ln -s libxmlsec1-openssl.dylib libxmlsec1-openssl.so

Also, to test xmlsec1 is properly built and installed, one can go the examples directory and execute 'make all; make check'. This also a test suite which can be ran.

comment:5 in reply to:  3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: xmlsec1 looking for .so's not .dylib'sxmlsec: unable to load xmlsec-openssl library

Replying to kurt@…:

Your patch seems to alter the directory to be searched, not the suffix of the library of the dynamic library to be loaded. Hence, I would guess it wouldn't resolve this issue. If you believe it would, I'll give it a try when I'm next at my development station (tomorrow).

You may not have noticed that I also updated the port to version 1.2.16 in r75082, which no longer seems to have the .so vs. .dylib problem. After r75092, I no longer got the error you posted, but I don't really know anything about xmlsec so I don't know if it now works as it's supposed to.

comment:6 Changed 14 years ago by kurt@…

Yes, I missed the version update.

The port is now working as I expect it to!

Thank you for you quick attention to this issue.

comment:7 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

I'm glad!

Note: See TracTickets for help on using tickets.