[xmlsec] Building problem on Mac OS X (xmlsec1-1.2.12)

Neko akitsukineko at gmail.com
Sat May 5 16:42:08 PDT 2012


Thank you for useful notice.
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

I installed

OpenSSL 0.9.8w with
*sudo ./config --prefix=/usr/ no-asm*

and

xmlsec 1.2.12 with

*sudo ./configure --with-openssl=/usr/*
(with or without --with-openssl=/usr/ leads to the same result)

information about openssl during configuration:

checking for openssl libraries >= 0.9.6... rm: conftest.dSYM: is a directory
yes ('0.9.8')
checking for nspr libraries >= 4.0... ./configure: line 26065: test: too
many arguments
./configure: line 26065: test: too many arguments
./configure: line 26065: test: too many arguments
./configure: line 26065: test: too many arguments
./configure: line 26065: test: too many arguments
no
checking for nss libraries >= 3.2... ./configure: line 26151: test: too
many arguments
./configure: line 26151: test: too many arguments
./configure: line 26151: test: too many arguments
./configure: line 26151: test: too many arguments
./configure: line 26151: test: too many arguments
no
checking for gnutls libraries >= 0.8.1... no
checking for mscrypto libraries... none
checking for crypto library... yes ('openssl')
checking for MD5 support... yes
checking for RIPEMD-160 support... yes
checking for SHA1 support... yes
checking for SHA224 support... yes
checking for SHA256 support... yes
checking for SHA384 support... yes
checking for SHA512 support... yes
checking for HMAC support... yes
checking for DSA support... yes
checking for RSA support... yes
checking for x509 support... yes
checking for DES support... yes
checking for AES support... yes
checking for GOST support... no
checking for XMLDSig support... yes
checking for XMLEnc support... yes
checking for XMKMS support - under development... no
checking for xmlsec-crypto dynamic loading support... yes
checking for xmlsec-crypto dynamic loading support in command line tool...
yes
checking for docs folder... $(datadir)/doc/xmlsec1
checking for Simple Keys Manager testing... yes
checking for templates testing... yes
checking for debuging... no
checking for profiling... no
checking for pedantic... no
checking for static linking... no
configure: creating ./config.status
config.status: creating include/xmlsec/openssl/Makefile
config.status: creating src/openssl/Makefile

and

*sudo make install
make check*

part of checking information
--- testDSig started for xmlsec-openssl library (20120506_061628)
---
LD_LIBRARY_PATH=/Users/AKITSUKINEKO/Workshop/Library/xmlsec1-1.2.12/src/openssl/.libs:
--- log file is /tmp/testDSig.20120506_061628-15687.log
aleksey-xmldsig-01/enveloping-dsa-x509chain
    Checking required transforms
./tests/testDSig.sh: line 67: 15692 Trace/BPT trap: 5       $xmlsec_app
check-transforms $req_transforms >> $logfile 2>> $logfile
 Skip
aleksey-xmldsig-01/enveloping-rsa-x509chain
    Checking required transforms
./tests/testDSig.sh: line 67: 15707 Trace/BPT trap: 5       $xmlsec_app
check-transforms $req_transforms >> $logfile 2>> $logfile
 Skip
aleksey-xmldsig-01/enveloping-md5-hmac-md5
    Checking required transforms
./tests/testDSig.sh: line 67: 15722 Trace/BPT trap: 5       $xmlsec_app
check-transforms $req_transforms >> $logfile 2>> $logfile
 Skip

and I recompiled again the information become the original one
--- testDSig started for xmlsec-openssl library (20120506_071203)
---
LD_LIBRARY_PATH=/Users/AKITSUKINEKO/Workshop/Library/xmlsec1-1.2.12/src/openssl/.libs:
--- log file is /tmp/testDSig.20120506_071203-13345.log
aleksey-xmldsig-01/enveloping-dsa-x509chain
    Checking required transforms                          Skip
aleksey-xmldsig-01/enveloping-rsa-x509chain
    Checking required transforms                          Skip
aleksey-xmldsig-01/enveloping-md5-hmac-md5
    Checking required transforms                          Skip
aleksey-xmldsig-01/enveloping-md5-hmac-md5-64
    Checking required transforms                          Skip
aleksey-xmldsig-01/enveloping-ripemd160-hmac-ripemd160
    Checking required transforms                          Skip

I also tried

*sudo env CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib"
./configure
*
and

*export DYLD_LIBRARY_PATH=/usr/local/lib:/opt/lib/:/usr/*

It turned out the same

Looks like I'm running in cycles...?



2012/5/3 Aleksey Sanin <aleksey at aleksey.com>

> I see another problem:
>
> checking OPENSSL_CFLAGS... -I/opt/local/include
> checking OPENSSL_LIBS... -L/opt/local/lib -lssl -lcrypto
>
> Sounds like configure finds openssl in the different place
> than one you've installed it
>
> Aleksey
>
> On 5/3/12 4:31 AM, Neko wrote:
> > Thank you for answering
> > I rebuild OpenSSL 1.0.1b
> >
> > sudo ./config --prefix=/usr/ enable-cms no-asm
> > sudo make
> > sudo make install
> >
> > and added
> > export DYLD_LIBRARY_PATH="/usr/local/ssl"
> > to .bash_profile
> > This time, OpenSSL can be recognized correctly during xmlsec 1.2.12
> > configuration
> >
> > checking for openssl >= 0.9.8... yes
> > checking OPENSSL_CFLAGS... -I/opt/local/include
> > checking OPENSSL_LIBS... -L/opt/local/lib -lssl -lcrypto
> >
> > However, while doing "sudo make install", errors occurred
> >
> >  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DPACKAGE=\"xmlsec1\"
> > -I../../include -I../../include -D__XMLSEC_FUNCTION__=__FUNCTION__
> > -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1
> > -I/opt/local/include -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1
> > -I/usr/include/libxml2 -I/usr/include/libxml2 -g -O2 -MT
> > libxmlsec1_openssl_la-x509vfy.lo -MD -MP -MF
> > .deps/libxmlsec1_openssl_la-x509vfy.Tpo -c x509vfy.c  -fno-common -DPIC
> > -o .libs/libxmlsec1_openssl_la-x509vfy.o
> > x509vfy.c: In function 'xmlSecOpenSSLX509StoreVerify':
> > x509vfy.c:221: warning: assignment from incompatible pointer type
> > x509vfy.c:231: warning: pointer type mismatch in conditional expression
> > x509vfy.c:232: warning: pointer type mismatch in conditional expression
> > x509vfy.c:236: warning: pointer type mismatch in conditional expression
> > x509vfy.c:253: warning: passing argument 1 of
> > 'xmlSecOpenSSLX509VerifyCertAgainstCrls' from incompatible pointer type
> > x509vfy.c:422: warning: pointer type mismatch in conditional expression
> > x509vfy.c: In function 'xmlSecOpenSSLX509FindCert':
> > x509vfy.c:805: error: 'struct stack_st_X509' has no member named 'num'
> > x509vfy.c:806: error: 'struct stack_st_X509' has no member named 'data'
> > x509vfy.c:866: error: 'struct stack_st_X509' has no member named 'num'
> > x509vfy.c:867: error: 'struct stack_st_X509' has no member named 'data'
> > x509vfy.c:898: error: 'struct stack_st_X509' has no member named 'num'
> > x509vfy.c:899: error: 'struct stack_st_X509' has no member named 'data'
> > x509vfy.c: In function 'xmlSecOpenSSLX509VerifyCertAgainstCrls':
> > x509vfy.c:985: warning: passing argument 1 of 'sk_num' from incompatible
> > pointer type
> > x509vfy.c:987: warning: passing argument 1 of 'sk_value' from
> > incompatible pointer type
> > x509vfy.c: In function 'xmlSecOpenSSLX509NamesCompare':
> > x509vfy.c:1246: warning: pointer type mismatch in conditional expression
> > x509vfy.c:1248: warning: pointer type mismatch in conditional expression
> > make[3]: *** [libxmlsec1_openssl_la-x509vfy.lo] Error 1
> > make[2]: *** [all-recursive] Error 1
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all] Error 2
> >
> > I saw there's a thread about a similar problem
> > http://www.aleksey.com/pipermail/xmlsec/2009/008708.html
> > but how should I use the patch
> >
> http://www.aleksey.com/pipermail/xmlsec/attachments/20090806/5ffb2b43/xmlsec1-1.2.12-0001.bin
> >
> > Thank you
> >
> >
> > 2012/5/1 Aleksey Sanin <aleksey at aleksey.com <mailto:aleksey at aleksey.com
> >>
> >
> >     I'll start from following the instructions
> >
> >     > 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.
> >
> >
> >
> >     Aleksey
> >
> >     On 5/1/12 6:12 AM, Neko wrote:
> >     > Dear Aleksey,
> >     > Sorry for sending to the wrong position...
> >     >
> >     > I'm compiling xmlsec1-1.2.12(since any version above this will need
> >     > libxml2.7.4) on my Macbook
> >     > However, I can't make it work...
> >     > It seems that OpenSSL can be recognized during the configuration,
> >     > however it doesn't work correctly.
> >     >
> >     > Mac OS X: 10.7.3
> >     > OpenSSL: I tried
> >     > 0.9.8r(brought with Mac OS X)
> >     > 0.9.8w
> >     > 1.installed by
> >     > sudo ./config
> >     > sudo make
> >     > sudo make install
> >     >
> >     > 2.
> >     > sudo ./config --prefix=$HOME no-asm
> >     > sudo make
> >     > sudo make install
> >     >
> >     > 3.
> >     > sudo ./config --prefix=/usr/ darwin64-x86_64-cc enable-cms no-asm
> >     > sudo make
> >     > sudo make install
> >     > 1.0.1b
> >     > 1.installed by
> >     > sudo ./config
> >     > sudo make
> >     > sudo make install
> >     >
> >     > 2.
> >     > sudo ./config --prefix=$HOME no-asm
> >     > sudo make
> >     > sudo make install
> >     > And I did make check on all the OpenSSL version.
> >     >
> >     > xmlsec1-1.2.12
> >     > installed by
> >     > sudo ./configure
> >     > sudo make
> >     >
> >     > configure information about OpenSSL
> >     > checking for openssl >= 0.9.8... checking for openssl >= 0.9.7...
> >     > checking for openssl >= 0.9.6... checking for openssl libraries >=
> >     > 0.9.6... rm: conftest.dSYM: is a directory
> >     > yes ('0.9.8')
> >     > (whatever which version of OpenSSL installed)
> >     > and almost all of the tests are skipped during make check
> >     > trying to sign a xml file, I got error message
> >     >
> >
> 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.
> >     > Error: initialization failed
> >     > Usage: xmlsec <command> [<options>] [<files>]
> >     > (...)
> >     >
> >
> func=xmlSecCryptoShutdown:file=app.c:line=69:obj=unknown:subj=cryptoShutdown:error=9:feature
> >     > is not implemented:
> >     >
> >
> func=xmlSecAppCryptoShutdown:file=crypto.c:line=48:obj=unknown:subj=xmlSecCryptoShutdown:error=1:xmlsec
> >     > library function failed:
> >     > Error: xmlsec crypto shutdown failed.
> >     >
> >     > I noticed there's "Error: unable to load xmlsec-openssl library.",
> how
> >     > should I fix it?
> >     > Any help would be very appreciated.
> >     >
> >     > Thanks
> >     >
> >     >
> >     >
> >     > _______________________________________________
> >     > xmlsec mailing list
> >     > xmlsec at aleksey.com <mailto:xmlsec at aleksey.com>
> >     > http://www.aleksey.com/mailman/listinfo/xmlsec
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20120506/cd36fece/attachment.html>


More information about the xmlsec mailing list