I am building under openssl's current stable release: openssl-1.1.0e, and there is a build issue:
apps/cmp.c lines 173-175 should be:
#endif
#if OPENSSL_VERSION_NUMBER >= 0x10101000L
const
#endif
It seems that OPTIONS only becomes 'const' at 1.1.1-dev and beyond.
Here is my version of the patch, if anyone is interested.
Thanks for pointing this out. The correction is going to be included soon.
Fixed in GIT revision c73ae5df0a - now commited to the CMP branch.
Thanks for reporting.