RE: OpenSSL compilation errors in Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sergio,

 

We are using OpenSSL APIs in our product code. We are not making any changes in OpenSSL. Our product code is a C++ code and it makes use of openSSL APIs for some functionality.

 

This compilation error we are getting in Linux and windows platforms. But in Linux, we have a ‘-fpermissive’ flag which is suppressing those errors as warnings and so compilation is getting successful.

 

The issue here is in Windows , we are not able to find alternative flag for –‘fpermissive’ in Visual studio and due to that compilation is unsuccessful. It would be helpful if anyone suggests some option to get the compilation successful.

 

Thanks and regards,

Nagalakshmi

 

From: Sergio NNX <sfhacker@xxxxxxxxxxx>
Sent: Monday, September 30, 2019 9:06 PM
To: Dr. Matthias St. Pierre <Matthias.St.Pierre@xxxxxxxxx>; Nagalakshmi V J <nagalakshmi.j@xxxxxxxxxx>; Michael Mueller <abaci.mjm@xxxxxxxxx>
Cc: openssl-users@xxxxxxxxxxx; Umamaheswari Nagarajan <umamaheswari.nagarajan@xxxxxxxxxx>
Subject: Re: OpenSSL compilation errors in Windows

 

** This mail has been sent from an external source **

 

Ciao.

 

I haven't had a chance to compile the exact OpenSSL version using g++ compiler as stated by the user/poster.

 

If this user is using a modified or altered version of OpenSSL provided source code, is there support available? Don't get me wrong, I don't mind helping out but .....

 

I'll try to compile OpenSSL source code this evening and I'll post my findings here.

 

Regards.

 

Sergio.

 


From: openssl-users <openssl-users-bounces@xxxxxxxxxxx> on behalf of Dr. Matthias St. Pierre <Matthias.St.Pierre@xxxxxxxxx>
Sent: Tuesday, 1 October 2019 12:28 AM
To: Nagalakshmi V J <nagalakshmi.j@xxxxxxxxxx>; Michael Mueller <abaci.mjm@xxxxxxxxx>
Cc: openssl-users@xxxxxxxxxxx <openssl-users@xxxxxxxxxxx>; Umamaheswari Nagarajan <umamaheswari.nagarajan@xxxxxxxxxx>
Subject: AW: OpenSSL compilation errors in Windows

 

> OpenSSL code is compiling without any issues. When it is used from our product code and while compiling using C++ compiler, the issue is seen.

 

As I wrote previously, the error you posted was caused  by the fact that you are compiling Ansi C (a.k.a ISO/IEC 9899:1990, a.k.a C90) source code

using a C++ compiler. While C permits a cast from ‘void *’ to ‘anytype *’, C++ doesn’t allow it without an explicit cast.

 

Only the *public* OpenSSL headers are guaranteed to be includable by a C++ compiler (they contain the necessary ` extern “C” ` blocks, etc.),

not the internal headers. Including *internal* headers is neither supported nor possible with a C++ compiler. And as Matt Caswell already told you,

there are no compatibility guarantees for those headers.

 

Matthias

 

 

 

=====================================================
Please refer to https://northamerica.altran.com/email-disclaimer
for important disclosures regarding this electronic communication.
=====================================================

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux