[xmlsec] Self-built Windows console app fails to sign

Aleksey Sanin aleksey at aleksey.com
Tue Jun 24 09:16:31 PDT 2014


Hi Daniel,

Unfortunately I don't have Windows dev environment anymore so it would
be hard for me to repro your problem. However, from the error it looks
like there is a problem with global constants. I would suggest to try
to rebuild the library as static libraries and then link xmlsec
statically.

Aleksey

On 6/24/14, 5:30 AM, Daniel Taylor wrote:
> I've managed to compile libxml2-2.9.1, libxslt-1.1.28, openssl-1.0.1h
> and xmlsec1-1.2.20 from source, using the nmake version that comes with
> VS2013. The only tweaking I had to do was take out the /OPT:NOWIN98
> references which no longer build.
> 
> However, when I run a --sign command using libxmla.exe, I get the
> following failure:
> 
> func=xmlSecPtrListAdd:file=..\src\list.c:line=305:obj=unknown:subj=xmlSecPtrListIsValid(list):error=100:assertion:
> func=xmlSecKeyDataIdsRegister:file=..\src\keysdata.c:line=110:obj=unknown:subj=xmlSecPtrListAdd:error=1:xmlsec
> library function failed:dataId=aes
> func=xmlSecCryptoDLFunctionsRegisterKeyDataAndTransforms:file=..\src\dl.c:line=614:obj=aes:subj=xmlSecKeyDataIdsRegister:error=1:xmlsec
> library function failed:
> func=xmlSecOpenSSLInit:file=..\src\openssl\crypto.c:line=331:obj=unknown:subj=xmlSecCryptoDLFunctionsRegisterKeyDataAndTransforms:error=1:xmlsec
> library function failed:
> func=xmlSecAppCryptoInit:file=..\apps\crypto.c:line=34:obj=unknown:subj=xmlSecCryptoInit:error=1:xmlsec
> library function failed:
> Error: xmlsec crypto intialization failed.
> Error: initialization failed
> 
> Each makefile (or its configuration) has the /MD flag set and each DLL
> (and xmlseca.exe itself) has a dependency on MSVCR120.dll, matching the
> MD flag.
> 
> If it's not caused by a runtime mismatch, what else could be causing
> this assert to fail?
> 
> -- 
> Dan Taylor
> 
> 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
> 


More information about the xmlsec mailing list