On Monday, July 18, 2016 at 9:16:33 AM UTC-4, Andrew Marlow wrote:
>
> Hello everyone,
>
> I wonder why I am getting this warning when trying to build on linux (RHEL 
> 6.8) using g++ 4.4.7. In config.h I note the following block of code:
>
> // define this to retain (as much as possible) old deprecated function and 
> class names
> // #define CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY
>
> // define this to retain (as much as possible) ABI and binary 
> compatibility with Crypto++ 5.6.2.
> // Also see 
> https://cryptopp.com/wiki/Config.h#Avoid_MAINTAIN_BACKWARDS_COMPATIBILITY
> #if (CRYPTOPP_VERSION <= 600)
> # if !defined(CRYPTOPP_NO_BACKWARDS_COMPATIBILITY_562) && 
> !defined(CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562)
> #  define CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
> # endif
> #endif
>
> So sure enough the macro is defined, but why emit a warning in this case. 
> Can someone explain please?
>


Crypto++ 5.6.3 was released with some not-so-apparent some undefined 
behavior. The undefined behavior was due to use of compiler generated 
non-virtual destructors. The UB can be fixed by avoiding backwards 
compatibility with 5.6.2. Fixing it breaks release level versioning, so we 
let the user (or distro) make the choice.

You can read more at http://cryptopp.com/wiki/config.h and 
http://cryptopp.com/wiki/Release_Versioning . The short of it is, if you 
don't care about backwards compatibility and version compatibility, then:

    $ cp config.recommend config.h

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.

Reply via email to