[openssl-dev] [openssl.org #4255] OpenSSL-1.1.0-pre2 failures using MinGW-W64

sav_ix@ukr.net via RT rt at openssl.org
Fri Feb 5 14:52:28 UTC 2016


    Hi, 


Got suggestion from Viktor Szakats (https://github.com/vszakats) concerning OpenSSL build errors using MinGW-W64 with  -std=c11 parameter: 
============================================== 
[snip] 
The error details indicate that some source code is not compliant with the C11 standard and therefore fail to compile in this mode. It doesn't seem to be gcc/mingw/Windows/64-bit specific: In file included from md4_locl.h:87:0,
                 from md4_dgst.c:62:
md4_dgst.c: In function 'md4_block_data_order':
../md32_common.h:167:33: warning: implicit declaration of function 'asm' [-Wimplicit-function-declaration]
                                 asm (                   \
                                 ^
md4_locl.h:105:11: note: in expansion of macro 'ROTATE'
 

 Try with -std=gnu11  instead to leave some optional C extensions enabled, like inline asm support. Current OpenSSL code seems to require it. 
[snip] 

I wouldn't call it an error per se. Fully standard compliant modes 
are rarely used in real-life projects, and I assume this was not a goal 
when creating this piece of code. Speaking of this specific error, IMO 
it's also generally cleaner not to mix languages inside the same source 
file. I can't see the full scope of this in case of OpenSSL, but it 
probably be useful to report this and suggest to move assembly code into
 separate .s files. Such practice is already used in quite a few places,
 so this exception may well be an oversight or heritage waiting to be 
updated. 
============================================== 



Regards, 

Alexander 


    


-------------------------------------------------------------------------
http://rt.openssl.org/Ticket/Display.html?id=4255

Please log in as guest with password guest if prompted



More information about the openssl-dev mailing list