On Monday, July 18, 2016 at 9:36:03 AM UTC-4, Andrew Marlow wrote:
>
> Hello everyone,
>
> I am getting an error when default.h is parsed:
> In file included from default.cpp:13:
>
> default.h:52: error: wrong number of arguments specified for deprecated
> attribute
> default.h:105: error: wrong number of arguments specified for deprecated
> attribute
> default.h:143: error: wrong number of arguments specified for deprecated
> attribute
> default.h:192: error: wrong number of arguments specified for deprecated
> attribute
>
> This is due to constructs such as this in default.h:
>
> #if (CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_CLANG_VERSION >= 20800)
> } __attribute__((deprecated ("DefaultDecryptor will be changing in the
> near future because the algorithms are no longer secure")));
> #elif (CRYPTOPP_GCC_VERSION)
> } __attribute__((deprecated));
> #else
> };
>
> According to https://bugs.launchpad.net/rohc/+bug/897831, gcc less than
> 4.5 does not take deprecated with no arguments.
>
It looks like something is out of sync with the deprecated macro at
http://github.com/weidai11/cryptopp/blob/master/config.h#L745 .
> Therefore I think that cryptopp will have to change for it to be buildable
> with this older version of g++. I am using RHEL 6.8 where this compiler is
> the default.
>
Yeah, that needs to be fixed. Committed at
http://github.com/weidai11/cryptopp/commit/49b18188b459e51da024c8cc1fb97ddb1084bdf3
.
Jeff
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.