On 05-08-2010 13:59, Vivek Madani wrote:
Hi,

I am trying to compile openssl-fips-1.2 on VS 2008 (64 bit) and getting a
linker error

LINK : fatal error LNK1181: cannot open input file 'bufferoverflowu.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
9.0\
VC\Bin\amd64\link.EXE"' : return code '0x49d'.

Quick searching through the archives lead me to a thread where similar error
was discussed for 0.9.8l and solution for the same was to replace

$ex.=' bufferoverflowu.lib' if ($FLAVOR =~ */WIN64/*);

with

$ex.=' bufferoverflowu.lib' if ($FLAVOR =~ */WIN64/* and `cl 2>&1` =~
/14\.00\.4[0-9]{4}\./);

in VC-32.pl.

This, however, is not a possibility for the FIPS module as it is supposed to
be used as-is.

Anyone else faced this issue? Any work-around?


Solution: Use the version 14.00.4xxxx amd64 compiler from the April 2005 x64 Platform SDK, or one of its close successors. Those need and include that library.

The April 2005 x64 Platform SDK is still available from MSDN subscriber downloads as en_ws_2003_sp1_sdk_april_2005.iso . Install it and use the "x64 release build" command prompt from the SDK, not the one from Visual Studio 2005 or later.

Note: I have not yet read the FIPS documentation, so I don't know if a
specific compiler version is required to satisfy the FIPS certification,
apart from the practicality of using a compiler compatible with the
FIPS certified build scripts.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to