Roumen,

Thanks for the build fixes! I also see the segfault but in very
weird place. I'll investigate more.

Aleksey

Roumen Petrov wrote:
Hi Aleksey,

Build of version 1.1.12 with upcoming openssl version 1.1.0 fail with
following errors and warnings:
/bin/sh ../../libtool --tag=CC   --mode=compile i486-mingw32-gcc
-DHAVE_CONFIG_H -I. -I<SRCROOT>/xmlsec1-1.2.12/src/openssl -I../..
-DPACKAGE=\"xmlsec1\" -I../../include -I<SRCROOT>/xmlsec1-1.2.12/include
-D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1
-I<MINGWROOT>/include -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1
-I<MINGWROOT>/include -I<MINGWROOT>/include/libxml2
-I<MINGWROOT>/include/libxml2 -I<MINGWROOT>/include    -O2
-fno-strict-aliasing -Wall -MT libxmlsec1_openssl_la-x509vfy.lo -MD -MP
-MF .deps/libxmlsec1_openssl_la-x509vfy.Tpo -c -o
libxmlsec1_openssl_la-x509vfy.lo `test -f 'x509vfy.c' || echo
'<SRCROOT>/xmlsec1-1.2.12/src/openssl/'`x509vfy.c
  i486-mingw32-gcc -DHAVE_CONFIG_H -I.
-I<SRCROOT>/xmlsec1-1.2.12/src/openssl -I../.. -DPACKAGE=\"xmlsec1\"
-I../../include -I<SRCROOT>/xmlsec1-1.2.12/include
-D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1
-I<MINGWROOT>/include -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1
-I<MINGWROOT>/include -I<MINGWROOT>/include/libxml2
-I<MINGWROOT>/include/libxml2 -I<MINGWROOT>/include -O2
-fno-strict-aliasing -Wall -MT libxmlsec1_openssl_la-x509vfy.lo -MD -MP
-MF .deps/libxmlsec1_openssl_la-x509vfy.Tpo -c
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c  -DDLL_EXPORT -DPIC -o
.libs/libxmlsec1_openssl_la-x509vfy.o
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c: In function
'xmlSecOpenSSLX509StoreVerify':
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:221: warning: assignment
from incompatible pointer type
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:231: warning: pointer
type mismatch in conditional expression
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:232: warning: pointer
type mismatch in conditional expression
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:236: warning: pointer
type mismatch in conditional expression
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:236: warning: value
computed is not used
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:253: warning: passing
argument 1 of 'xmlSecOpenSSLX509VerifyCertAgainstCrls' from incompatible
pointer type
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:98: note: expected
'struct stack_st_X509_CRL *' but argument is of type 'struct
stack_st_X509_CRLS *'
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:255: warning: value
computed is not used
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:270: warning: value
computed is not used
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:422: warning: pointer
type mismatch in conditional expression
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c: In function
'xmlSecOpenSSLX509FindCert':
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:805: error: 'struct
stack_st_X509' has no member named 'num'
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:806: error: 'struct
stack_st_X509' has no member named 'data'
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:866: error: 'struct
stack_st_X509' has no member named 'num'
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:867: error: 'struct
stack_st_X509' has no member named 'data'
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:898: error: 'struct
stack_st_X509' has no member named 'num'
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:899: error: 'struct
stack_st_X509' has no member named 'data'
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c: In function
'xmlSecOpenSSLX509VerifyCertAgainstCrls':
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:985: warning: passing
argument 1 of 'sk_num' from incompatible pointer type
<MINGWROOT>/include/openssl/stack.h:79: note: expected 'const struct
_STACK *' but argument is of type 'struct stack_st_X509_REVOKED *'
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:987: warning: passing
argument 1 of 'sk_value' from incompatible pointer type
<MINGWROOT>/include/openssl/stack.h:80: note: expected 'const struct
_STACK *' but argument is of type 'struct stack_st_X509_REVOKED *'
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c: In function
'xmlSecOpenSSLX509NamesCompare':
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:1246: warning: pointer
type mismatch in conditional expression
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:1246: warning: value
computed is not used
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:1248: warning: pointer
type mismatch in conditional expression
<SRCROOT>/xmlsec1-1.2.12/src/openssl/x509vfy.c:1248: warning: value
computed is not used
make: *** [libxmlsec1_openssl_la-x509vfy.lo] Error 1

The above output is from cross-compiler  "i486-mingw32-gcc (GCC) 4.4.0".

The attached file "xmlsec1-1.2.12.patch" fixed the build issue - errors
and some but not all warnings related to STACK.


Test cases (native, linux build) for Keys and DSig pass but Enc fail
with segmentation fail. The test terminal output is attached as file
"xmlsec1-1.2.12-openssl.log". OpenSSL pass its tests.

Regards,
Roumen



------------------------------------------------------------------------

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to