[xmlsec] So Near And Yet So Far: Building xmlsec Under OS X

David Mundie mundie at anthus.com
Sat Jan 10 06:56:14 PST 2004


I took Aleksey's advice and used Fink to install openssl097-dev on a  
non-mission-critical machine. I was then able to build xmlsec from the  
1.2.3 sources without any (obvious) errors - in particular, I didn't  
get the parsing problems that Darian did. I just did

	./configure
	make
	sudo make install

and everything *seemed* to build correctly.

However, when I did

	make check

I got errors:

--- testKeys started for xmlsec-openssl library (20040110_083608) ---
---  
LD_LIBRARY_PATH=/Users/dmundie/opt/005/8/xmlsec1-1.2.3/src/openssl/ 
.libs:/usr/local/lib
/Users/dmundie/opt/005/8/xmlsec1-1.2.3/apps/xmlsec1 keys  
--gen-key:test-hmac-sha1 hmac-192  --crypto opens\
sl --crypto-config /tmp/xmlsec-crypto-config  
/tmp/xmlsec-crypto-config/keys.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:err\
or=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.
Error: initialization failed

And in fact there is no libxmlsec1-openssl.so in /usr/local/lib:

openssl>  ls /usr/local/lib
libxmlsec1-openssl.1.2.3.dylib* libxmlsec1-openssl.la*           
libxmlsec1.dylib@
libxmlsec1-openssl.1.dylib@     libxmlsec1.1.2.3.dylib*          
libxmlsec1.la*
libxmlsec1-openssl.a            libxmlsec1.1.dylib@              
pkgconfig/
libxmlsec1-openssl.dylib@       libxmlsec1.a                     
xmlsec1Conf.sh

nor in xmlsec1-1.2.3/src/openssl/.libs:/usr/local/lib:

openssl>  ls /Users/dmundie/opt/005/8/xmlsec1-1.2.3/src/openssl/.libs
app.o                           kt_rsa.o                         
libxmlsec1-openssl.la@
bn.o                            kw_aes.o                         
libxmlsec1-openssl.lai
ciphers.o                       kw_des.o                         
signatures.o
crypto.o                        libxmlsec1-openssl.1.2.3.dylib*  
symkeys.o
digests.o                       libxmlsec1-openssl.1.dylib@     x509.o
evp.o                           libxmlsec1-openssl.a             
x509vfy.o
hmac.o                          libxmlsec1-openssl.dylib@

Unfortunately I'm not an expert when it comes to linker nuances. I will  
continue to investigate, but would appreciate any pointers. How is this  
supposed to work? I did due diligence, but found nothing in the mailing  
list archive that seemed to address this.

  - dam


On 2004-Jan-09, at 20:44, Aleksey Sanin wrote:

> If you have fink then you can download openssl-devel from there.
>
> Aleksey
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
>




More information about the xmlsec mailing list