[xmlsec] Problems with C/C++ compilers

Aleksey Sanin aleksey at aleksey.com
Fri Jul 12 10:11:27 PDT 2019


This is one of several compile-time defines that are used to configure 
xmlsec. You should use pkg-config, etc. to ensure you use correct flags.

Aleksey

On 7/12/19 2:42 AM, Dmitry Belyavsky wrote:
> Dear Alexey,
> 
> Thank you!
> That was the clue.
> 
> BTW, is this definition available in public headers of xmlsec?
> 
> On Fri, Jul 12, 2019 at 12:05 AM Aleksey Sanin <aleksey at aleksey.com 
> <mailto:aleksey at aleksey.com>> wrote:
> 
>     Make sure you have -DXMLSEC_NO_SIZE_T=1 defined (if it is defined
>     during xmlsec library compilation).
> 
>     Aleksey
> 
>     On 7/11/19 11:17 AM, Roumen Petrov wrote:
>      > Dmitry Belyavsky wrote:
>      >> Hello,
>      >>
>      >> We have a rather ancient instance of XMLSec (smth like 1.2.20) and a
>      >> homebrew С++ wrapper around it.
>      >>
>      >> I came across that a call of sizeof() for various structures in
>     C and C++
>      >> give different results causing Bad Things when I try to access
>     various
>      >> fields of these structures.
>      >
>      > No idea.
>      >
>      > If I remember well all public headers are in following format:
>      > ...
>      > <<<include external headers>>>
>      >
>      > #ifdef __cplusplus
>      > extern "C" {
>      > #endif /* __cplusplus */
>      >
>      >   <<< xmlsec related code  >>>
>      >
>      > #ifdef __cplusplus
>      > }
>      > #endif /* __cplusplus */
>      >
>      >
>      >> Is there any cheap way to fix this behavior?
>      > Dunno, as all xmlsec is "C" code.
>      > If is not compiler defect then sample code may help to find reason.
>      >
>      > Roumen
>      > _______________________________________________
>      > xmlsec mailing list
>      > xmlsec at aleksey.com <mailto:xmlsec at aleksey.com>
>      > http://www.aleksey.com/mailman/listinfo/xmlsec
>     _______________________________________________
>     xmlsec mailing list
>     xmlsec at aleksey.com <mailto:xmlsec at aleksey.com>
>     http://www.aleksey.com/mailman/listinfo/xmlsec
> 
> 
> 
> -- 
> SY, Dmitry Belyavsky


More information about the xmlsec mailing list