<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px"><div id="yiv6454403681"><div id="yui_3_16_0_ym19_1_1509393345599_26807"><div style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:13px;" id="yui_3_16_0_ym19_1_1509393345599_26806"><div id="yiv6454403681"><div id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_23218"><div style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:13px;" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_23217"><div id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21716">Hi,</div><div id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21717"><br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21718"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21719">I have am trying to compile OpenSSL 1.0.2l static library using FIPS - 2.0.16 on Windows 2012 R2, Visual Studio 2015,  using reference from <a rel="nofollow" target="_blank" href="https://www.openssl.org/docs/fips/UserGuide-2.0.pdf" style="color:rgb(25, 106, 212);" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21720">https://www.openssl.org/docs/fips/UserGuide-2.0.pdf</a> , page #68.</div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21721"><br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21722"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21723">Step 1:</div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21724"><br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21725"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21726">- cd openssl-fips-2.0.16<br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21727"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21728">- ms\do_fips</div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21729"><br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21730"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21731">Step 2:</div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21732"><br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21733"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21734">- cd openssl-1.0.2l<br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21735"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21736">- set FIPSDIR=C:\usr\local\ssl\fips-2.0<br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21737"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21738">- perl Configure       VC-WIN64A fips --with-fipsdir=%FIPSDIR% no-shared zlib no-idea no-mdc2 no-rc5 no-ssl2 no-ssl3<br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21739"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21740">- nmake -f ms\nt.mak all<br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21741"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21742"><br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21743"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21744">I see that ms\do_fips compile the code with /MD, and somehow step 2 (nmake -f ms\nt.mak all) also ends up compiling with /MD switch. The application now requires the dynamic runt time libraries and compile and run time. OpenSSL static libraries builds fine with /MT switch without FIPS module, so there's something with FIPS module that ends up setting /MD switch.</div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21745"><br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21746"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21747">Has anyone else faced this problem? As per user guide, the FIPS module should build fine with static libraries, but looks like there is some issue with it. Is there any option that can be supplied to do_fips.bat, or a different build script that needs to be run?</div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21748"><br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21749"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21750">Appreciate any help on this.</div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21751"><br id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21752"></div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21753">Thanks,</div><div dir="ltr" id="yiv6454403681yui_3_16_0_ym19_1_1509393345599_21754">NG  </div></div></div></div></div></div></div></div></body></html>