Thank you for useful notice.<br>I reinstalled the Mac OS X to make it 100% sure that there's no OpenSSL on other place, but I still can't get it done<br><br>I installed<br><br>OpenSSL 0.9.8w with<br><b>sudo ./config --prefix=/usr/ no-asm</b><br>
<br>and<br><br>xmlsec 1.2.12 with<br><br><b>sudo ./configure --with-openssl=/usr/</b><br>(with or without --with-openssl=/usr/ leads to the same result)<br><br>information about openssl during configuration:<br><br>checking for openssl libraries >= 0.9.6... rm: conftest.dSYM: is a directory<br>
yes ('0.9.8')<br>checking for nspr libraries >= 4.0... ./configure: line 26065: test: too many arguments<br>./configure: line 26065: test: too many arguments<br>./configure: line 26065: test: too many arguments<br>
./configure: line 26065: test: too many arguments<br>./configure: line 26065: test: too many arguments<br>no<br>checking for nss libraries >= 3.2... ./configure: line 26151: test: too many arguments<br>./configure: line 26151: test: too many arguments<br>
./configure: line 26151: test: too many arguments<br>./configure: line 26151: test: too many arguments<br>./configure: line 26151: test: too many arguments<br>no<br>checking for gnutls libraries >= 0.8.1... no<br>checking for mscrypto libraries... none<br>
checking for crypto library... yes ('openssl')<br>checking for MD5 support... yes<br>checking for RIPEMD-160 support... yes<br>checking for SHA1 support... yes<br>checking for SHA224 support... yes<br>checking for SHA256 support... yes<br>
checking for SHA384 support... yes<br>checking for SHA512 support... yes<br>checking for HMAC support... yes<br>checking for DSA support... yes<br>checking for RSA support... yes<br>checking for x509 support... yes<br>checking for DES support... yes<br>
checking for AES support... yes<br>checking for GOST support... no<br>checking for XMLDSig support... yes<br>checking for XMLEnc support... yes<br>checking for XMKMS support - under development... no<br>checking for xmlsec-crypto dynamic loading support... yes<br>
checking for xmlsec-crypto dynamic loading support in command line tool... yes<br>checking for docs folder... $(datadir)/doc/xmlsec1<br>checking for Simple Keys Manager testing... yes<br>checking for templates testing... yes<br>
checking for debuging... no<br>checking for profiling... no<br>checking for pedantic... no<br>checking for static linking... no<br>configure: creating ./config.status<br>config.status: creating include/xmlsec/openssl/Makefile<br>
config.status: creating src/openssl/Makefile<br><br>and<br><br><b>sudo make install<br>make check</b><br><br>part of checking information<br>--- testDSig started for xmlsec-openssl library (20120506_061628)<br>--- LD_LIBRARY_PATH=/Users/AKITSUKINEKO/Workshop/Library/xmlsec1-1.2.12/src/openssl/.libs:<br>
--- log file is /tmp/testDSig.20120506_061628-15687.log<br>aleksey-xmldsig-01/enveloping-dsa-x509chain<br> Checking required transforms ./tests/testDSig.sh: line 67: 15692 Trace/BPT trap: 5 $xmlsec_app check-transforms $req_transforms >> $logfile 2>> $logfile<br>
Skip<br>aleksey-xmldsig-01/enveloping-rsa-x509chain<br> Checking required transforms ./tests/testDSig.sh: line 67: 15707 Trace/BPT trap: 5 $xmlsec_app check-transforms $req_transforms >> $logfile 2>> $logfile<br>
Skip<br>aleksey-xmldsig-01/enveloping-md5-hmac-md5<br> Checking required transforms ./tests/testDSig.sh: line 67: 15722 Trace/BPT trap: 5 $xmlsec_app check-transforms $req_transforms >> $logfile 2>> $logfile<br>
Skip<br><br>and I recompiled again the information become the original one<br>--- testDSig started for xmlsec-openssl library (20120506_071203)<br>--- LD_LIBRARY_PATH=/Users/AKITSUKINEKO/Workshop/Library/xmlsec1-1.2.12/src/openssl/.libs:<br>
--- log file is /tmp/testDSig.20120506_071203-13345.log<br>aleksey-xmldsig-01/enveloping-dsa-x509chain<br> Checking required transforms Skip<br>aleksey-xmldsig-01/enveloping-rsa-x509chain<br> Checking required transforms Skip<br>
aleksey-xmldsig-01/enveloping-md5-hmac-md5<br> Checking required transforms Skip<br>aleksey-xmldsig-01/enveloping-md5-hmac-md5-64<br> Checking required transforms Skip<br>
aleksey-xmldsig-01/enveloping-ripemd160-hmac-ripemd160<br> Checking required transforms Skip<br><br>I also tried <br><br><b>sudo env CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure<br>
</b><br>and<br><br><b>export DYLD_LIBRARY_PATH=/usr/local/lib:/opt/lib/:/usr/</b><br><br>It turned out the same<br><br>Looks like I'm running in cycles...?<br><br><br><br><div class="gmail_quote">2012/5/3 Aleksey Sanin <span dir="ltr"><<a href="mailto:aleksey@aleksey.com" target="_blank">aleksey@aleksey.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I see another problem:<br>
<div><br>
checking OPENSSL_CFLAGS... -I/opt/local/include<br>
checking OPENSSL_LIBS... -L/opt/local/lib -lssl -lcrypto<br>
<br>
</div>Sounds like configure finds openssl in the different place<br>
than one you've installed it<br>
<br>
Aleksey<br>
<div><div><br>
On 5/3/12 4:31 AM, Neko wrote:<br>
> Thank you for answering<br>
> I rebuild OpenSSL 1.0.1b<br>
><br>
> sudo ./config --prefix=/usr/ enable-cms no-asm<br>
> sudo make<br>
> sudo make install<br>
><br>
> and added<br>
> export DYLD_LIBRARY_PATH="/usr/local/ssl"<br>
> to .bash_profile<br>
> This time, OpenSSL can be recognized correctly during xmlsec 1.2.12<br>
> configuration<br>
><br>
> checking for openssl >= 0.9.8... yes<br>
> checking OPENSSL_CFLAGS... -I/opt/local/include<br>
> checking OPENSSL_LIBS... -L/opt/local/lib -lssl -lcrypto<br>
><br>
> However, while doing "sudo make install", errors occurred<br>
><br>
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DPACKAGE=\"xmlsec1\"<br>
> -I../../include -I../../include -D__XMLSEC_FUNCTION__=__FUNCTION__<br>
> -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1<br>
> -I/opt/local/include -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1<br>
> -I/usr/include/libxml2 -I/usr/include/libxml2 -g -O2 -MT<br>
> libxmlsec1_openssl_la-x509vfy.lo -MD -MP -MF<br>
> .deps/libxmlsec1_openssl_la-x509vfy.Tpo -c x509vfy.c -fno-common -DPIC<br>
> -o .libs/libxmlsec1_openssl_la-x509vfy.o<br>
> x509vfy.c: In function 'xmlSecOpenSSLX509StoreVerify':<br>
> x509vfy.c:221: warning: assignment from incompatible pointer type<br>
> x509vfy.c:231: warning: pointer type mismatch in conditional expression<br>
> x509vfy.c:232: warning: pointer type mismatch in conditional expression<br>
> x509vfy.c:236: warning: pointer type mismatch in conditional expression<br>
> x509vfy.c:253: warning: passing argument 1 of<br>
> 'xmlSecOpenSSLX509VerifyCertAgainstCrls' from incompatible pointer type<br>
> x509vfy.c:422: warning: pointer type mismatch in conditional expression<br>
> x509vfy.c: In function 'xmlSecOpenSSLX509FindCert':<br>
> x509vfy.c:805: error: 'struct stack_st_X509' has no member named 'num'<br>
> x509vfy.c:806: error: 'struct stack_st_X509' has no member named 'data'<br>
> x509vfy.c:866: error: 'struct stack_st_X509' has no member named 'num'<br>
> x509vfy.c:867: error: 'struct stack_st_X509' has no member named 'data'<br>
> x509vfy.c:898: error: 'struct stack_st_X509' has no member named 'num'<br>
> x509vfy.c:899: error: 'struct stack_st_X509' has no member named 'data'<br>
> x509vfy.c: In function 'xmlSecOpenSSLX509VerifyCertAgainstCrls':<br>
> x509vfy.c:985: warning: passing argument 1 of 'sk_num' from incompatible<br>
> pointer type<br>
> x509vfy.c:987: warning: passing argument 1 of 'sk_value' from<br>
> incompatible pointer type<br>
> x509vfy.c: In function 'xmlSecOpenSSLX509NamesCompare':<br>
> x509vfy.c:1246: warning: pointer type mismatch in conditional expression<br>
> x509vfy.c:1248: warning: pointer type mismatch in conditional expression<br>
> make[3]: *** [libxmlsec1_openssl_la-x509vfy.lo] Error 1<br>
> make[2]: *** [all-recursive] Error 1<br>
> make[1]: *** [all-recursive] Error 1<br>
> make: *** [all] Error 2<br>
><br>
> I saw there's a thread about a similar problem<br>
> <a href="http://www.aleksey.com/pipermail/xmlsec/2009/008708.html" target="_blank">http://www.aleksey.com/pipermail/xmlsec/2009/008708.html</a><br>
> but how should I use the patch<br>
> <a href="http://www.aleksey.com/pipermail/xmlsec/attachments/20090806/5ffb2b43/xmlsec1-1.2.12-0001.bin" target="_blank">http://www.aleksey.com/pipermail/xmlsec/attachments/20090806/5ffb2b43/xmlsec1-1.2.12-0001.bin</a><br>
><br>
> Thank you<br>
><br>
><br>
</div></div>> 2012/5/1 Aleksey Sanin <<a href="mailto:aleksey@aleksey.com" target="_blank">aleksey@aleksey.com</a> <mailto:<a href="mailto:aleksey@aleksey.com" target="_blank">aleksey@aleksey.com</a>>><br>
<div><div>><br>
> I'll start from following the instructions<br>
><br>
> > Error: unable to load xmlsec-openssl library. Make sure that you have<br>
> > this it installed, check shared libraries path (LD_LIBRARY_PATH)<br>
> > envornment variable or use "--crypto" option to specify different<br>
> > crypto engine.<br>
><br>
><br>
><br>
> Aleksey<br>
><br>
> On 5/1/12 6:12 AM, Neko wrote:<br>
> > Dear Aleksey,<br>
> > Sorry for sending to the wrong position...<br>
> ><br>
> > I'm compiling xmlsec1-1.2.12(since any version above this will need<br>
> > libxml2.7.4) on my Macbook<br>
> > However, I can't make it work...<br>
> > It seems that OpenSSL can be recognized during the configuration,<br>
> > however it doesn't work correctly.<br>
> ><br>
> > Mac OS X: 10.7.3<br>
> > OpenSSL: I tried<br>
> > 0.9.8r(brought with Mac OS X)<br>
> > 0.9.8w<br>
> > 1.installed by<br>
> > sudo ./config<br>
> > sudo make<br>
> > sudo make install<br>
> ><br>
> > 2.<br>
> > sudo ./config --prefix=$HOME no-asm<br>
> > sudo make<br>
> > sudo make install<br>
> ><br>
> > 3.<br>
> > sudo ./config --prefix=/usr/ darwin64-x86_64-cc enable-cms no-asm<br>
> > sudo make<br>
> > sudo make install<br>
> > 1.0.1b<br>
> > 1.installed by<br>
> > sudo ./config<br>
> > sudo make<br>
> > sudo make install<br>
> ><br>
> > 2.<br>
> > sudo ./config --prefix=$HOME no-asm<br>
> > sudo make<br>
> > sudo make install<br>
> > And I did make check on all the OpenSSL version.<br>
> ><br>
> > xmlsec1-1.2.12<br>
> > installed by<br>
> > sudo ./configure<br>
> > sudo make<br>
> ><br>
> > configure information about OpenSSL<br>
> > checking for openssl >= 0.9.8... checking for openssl >= 0.9.7...<br>
> > checking for openssl >= 0.9.6... checking for openssl libraries >=<br>
> > 0.9.6... rm: conftest.dSYM: is a directory<br>
> > yes ('0.9.8')<br>
> > (whatever which version of OpenSSL installed)<br>
> > and almost all of the tests are skipped during make check<br>
> > trying to sign a xml file, I got error message<br>
> ><br>
> func=xmlSecCryptoDLLibraryCreate:file=dl.c:line=130:obj=xmlsec_lt_dlopen:subj=unknown:error=7:io<br>
> > function failed:filename=libxmlsec1-openssl.so<br>
> ><br>
> func=xmlSecCryptoDLGetLibraryFunctions:file=dl.c:line=453:obj=unknown:subj=xmlSecCryptoDLLibraryCreate:error=1:xmlsec<br>
> > library function failed:crypto=openssl<br>
> ><br>
> func=xmlSecCryptoDLLoadLibrary:file=dl.c:line=404:obj=unknown:subj=xmlSecCryptoDLGetLibraryFunctions:error=1:xmlsec<br>
> > library function failed:<br>
> > Error: unable to load xmlsec-openssl library. Make sure that you have<br>
> > this it installed, check shared libraries path (LD_LIBRARY_PATH)<br>
> > envornment variable or use "--crypto" option to specify different<br>
> > crypto engine.<br>
> > Error: initialization failed<br>
> > Usage: xmlsec <command> [<options>] [<files>]<br>
> > (...)<br>
> ><br>
> func=xmlSecCryptoShutdown:file=app.c:line=69:obj=unknown:subj=cryptoShutdown:error=9:feature<br>
> > is not implemented:<br>
> ><br>
> func=xmlSecAppCryptoShutdown:file=crypto.c:line=48:obj=unknown:subj=xmlSecCryptoShutdown:error=1:xmlsec<br>
> > library function failed:<br>
> > Error: xmlsec crypto shutdown failed.<br>
> ><br>
> > I noticed there's "Error: unable to load xmlsec-openssl library.", how<br>
> > should I fix it?<br>
> > Any help would be very appreciated.<br>
> ><br>
> > Thanks<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > xmlsec mailing list<br>
</div></div>> > <a href="mailto:xmlsec@aleksey.com" target="_blank">xmlsec@aleksey.com</a> <mailto:<a href="mailto:xmlsec@aleksey.com" target="_blank">xmlsec@aleksey.com</a>><br>
> > <a href="http://www.aleksey.com/mailman/listinfo/xmlsec" target="_blank">http://www.aleksey.com/mailman/listinfo/xmlsec</a><br>
><br>
><br>
</blockquote></div><br>