[xmlsec] extra defines for static linking

Aleksey Sanin aleksey at aleksey.com
Sat Jun 10 17:53:35 PDT 2017


I fixed the --enable-static-linking  -- it should imply no
dynamic loading for crypto libraries (kind of makes sense :) ):

https://github.com/lsh123/xmlsec/commit/b422875e66bfe7053ba61dc0e26b86386ea51850

Aleksey

On 6/10/17 5:33 PM, Aleksey Sanin wrote:
> I think LIBXML_STATIC and LIBXSLT_STATIC might also be required.
> That's how Win32 build works for MSVC.
> 
> I am looking at the test failures -- it's the test script that
> passes incorrect params for this case.
> 
> Aleksey
> 
> On 6/10/17 8:12 AM, Roumen Petrov wrote:
>> Hi ,
>>
>> Please find attahced patch 0002-extra-defines-for-static-linking.patch -
>> it resolves build configuration with --enable-static-linking . Tested
>> for x86_64-w64-mingw32 host.
>>
>> For protocol build error is
>>   CCLD     xmlsec1.exe
>> xmlsec.o: In function `xmlSecAppSignFile':
>> .../apps/xmlsec.c:1172: undefined reference to `__imp_xmlSecDSigNs'
>> .../apps/xmlsec.c:1172: undefined reference to `__imp_xmlSecNodeSignature'
>>
>> No idea why only -DXMLSEC_STATIC is enough to resolve issue.
>>
>>
>> Regression tests fail but tests fail even on native linux build :
>>
>> strace shows
>> ...
>> futex(0x7fc64a2ccc88, FUTEX_WAKE_PRIVATE, 2147483647) = 0
>> write(2,
>> "func=xmlSecPtrListAdd:file=list.c:line=287:obj=unknown:subj=xmlSecPtrListIsValid(list):error=100:assertion:
>> \n",
>> 109func=xmlSecPtrListAdd:file=list.c:line=287:obj=unknown:subj=xmlSecPtrListIsValid(list):error=100:assertion:
>>
>> ) = 109
>> write(2,
>> "func=xmlSecKeyDataIdsRegister:file=keysdata.c:line=103:obj=aes:subj=xmlSecPtrListAdd:error=1:xmlsec
>> library function failed: \n",
>> 126func=xmlSecKeyDataIdsRegister:file=keysdata.c:line=103:obj=aes:subj=xmlSecPtrListAdd:error=1:xmlsec
>> library function failed:
>> ) = 126
>> write(2,
>> "func=xmlSecCryptoDLFunctionsRegisterKeyDataAndTransforms:file=dl.c:line=540:obj=aes:subj=xmlSecKeyDataIdsRegister:error=1:xmlsec"...,
>> 155func=xmlSecCryptoDLFunctionsRegisterKeyDataAndTransforms:file=dl.c:line=540:obj=aes:subj=xmlSecKeyDataIdsRegister:error=1:xmlsec
>> library function failed:
>> ) = 155
>> write(2,
>> "func=xmlSecOpenSSLInit:file=crypto.c:line=332:obj=unknown:subj=xmlSecCryptoDLFunctionsRegisterKeyDataAndTransforms:error=1:xmlse"...,
>> 156func=xmlSecOpenSSLInit:file=crypto.c:line=332:obj=unknown:subj=xmlSecCryptoDLFunctionsRegisterKeyDataAndTransforms:error=1:xmlsec
>> library function failed:
>> ) = 156
>> write(2, "Error: xmlSecCryptoInit failed\n", 31Error: xmlSecCryptoInit
>> failed
>> ) = 31
>> write(2, "Error: xmlsec crypto intialization failed.\n", 43Error: xmlsec
>> crypto intialization failed.
>> ) = 43
>> write(2, "Error: initialization failed\n", 29Error: initialization failed
>> ) = 29
>> fstat(1, {st_mode=S_IFREG|0644, st_size=30364, ...}) = 0
>> ...
>>
>>
>> Regards,
>> Roumen
>>
>> P.S. It is more easy to post patch to mail list instead to open github
>> pull request.
>>
>>
>>
>> _______________________________________________
>> xmlsec mailing list
>> xmlsec at aleksey.com
>> http://www.aleksey.com/mailman/listinfo/xmlsec
>>
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
> 


More information about the xmlsec mailing list