Getting compilation errors after upgrade to openssl 1.1.1d, errors pointing to openssl header files
Venkata Ramaraju Vana
venkataramaraju.vana at broadcom.com
Wed Feb 5 07:40:20 UTC 2020
Hi All,
We have recently upgraded openssl from 1.0.1h to 1.1.1d. We have
compiled OpenSSL using "no-asm no-shared no-deprecated" as input to
configure.
When compiling our application (in Visual Studio 2013) by including these
headers and libraries, we are seeing many errors which are pointing to
header files of OpenSSL. Below are few errors:
Error 300 error C3646: 'DEPRECATEDIN_1_1_0' : unknown override specifier
xxxxxx\thirdparty\openssl\include\openssl\bio.h 689 1 xxxxx
Error 301 error C2091: function returns function
xxxxx\thirdparty\openssl\include\openssl\bio.h 689 1 xxxxx
Error 304 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int xxxx\thirdparty\openssl\include\openssl\bio.h 691 1
xxxx
Error 41 error C2370: 'LPCSTR' : redefinition; different storage class
xxxxx\thirdparty\openssl\include\openssl\x509.h 77 1 myCrypto
Error 68 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int xxxx\thirdparty\openssl\include\openssl\x509_vfy.h
77 1 myCrypto
Error 283 error C2270: 'DEPRECATEDIN_1_1_0' : modifiers not allowed on
nonmember functions xxxxx\thirdparty\openssl\include\openssl\asn1.h 555 1
xxxxxx
Error 284 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int xxxx\thirdparty\openssl\include\openssl\asn1.h 555
1 xxxxx
Error 514 error C2370: 'LPCSTR' : redefinition; different storage class
xxxxxx\thirdparty\openssl\include\openssl\x509.h 77 1 xxxxx
Error 516 error C2365: 'sk_' : redefinition; previous definition was
'function' xxxxx\thirdparty\openssl\include\openssl\x509.h 77 1 xxxxxxx
We are getting hundreds of such error pointing to these header files.
Can you please help me get rid of these errors? Please let me know if I
have define any flags in Visual Studio. Compilation of our application is
successful in Linux, with the same process. Build in Windows is the main
issue.
Regards,
Ramaraju
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20200205/606e44b8/attachment.html>
More information about the openssl-users
mailing list