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

Aleksey Sanin aleksey at aleksey.com
Thu May 3 07:13:46 PDT 2012


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
> 
> 


More information about the xmlsec mailing list