[openssl-dev] [openssl.org #3630] BUG - Building OpenSSL on Windows with zlib and fips object module fails. Possible fix included.

De Rudder, Stephen L. via RT rt at openssl.org
Thu Dec 11 21:06:20 UTC 2014


Info:
Windows 8.1 64-bit
Visual Studio Premium 2012
Zlib 1.2.8
OpenSSL fips object module 2.0.8
OpenSSL 1.0.1j

Note: zlib and fips object module build fine (FYI: zlib dll built from zlib distro directory contrib\vstudio\vc11 that makes zlibwapi.dll instead of making ZLIB1.DLL).

The following build commands work (with zlib, without fips):
perl Configure no-asm zlib --with-zlib-include=..\..\zlib\include --with-zlib-lib=..\..\zlib\Release\zlibwapi.lib -DZLIB_WINAPI -MP VC-WIN64A
call ms\do_win64a.bat
nmake -f ms\ntdll.mak

The following build commands fail:
perl Configure no-asm zlib --with-zlib-include=..\..\zlib\include --with-zlib-lib=..\..\zlib\Release\zlibwapi.lib -DZLIB_WINAPI -MP fips --with-fipsdir=c:\usr\local\ssl\fips-2.0 VC-WIN64A
call ms\do_win64a.bat
nmake -f ms\ntdll.mak

I have tracked it down to mk1mf.pl line 416 not running:
	$ex_libs .= " $zlib_lib" if $zlib_opt == 1;

My possible fix is to move that line above line 394 so it looks like (maybe fix indentation):
	$ex_libs .= " $zlib_lib" if $zlib_opt == 1;
if ($shlib)

If you need more info please let me know.

Thanks,
SLDR
(Stephen L. De Rudder)
e-mail: rdls22 at tditx.com

PS: The following build works too:
The following build commands work (without zlib, with fips):
perl Configure no-asm -MP fips --with-fipsdir=c:\usr\local\ssl\fips-2.0 VC-WIN64A
call ms\do_win64a.bat
nmake -f ms\ntdll.mak




More information about the openssl-dev mailing list