A recent code change on the 1.0.1 branch seems to have introduced a build error on x86-64 with Windows. Here's what we're seeing:
cl /Fotmp32dll\fips_premain_dso.obj -DFINGERPRINT_PREMAIN_DSO_LOAD -Iinc32 -Itmp32dll /MD /Ox -DOPENSSL_THREADS -DDSO_WIN32 -W3 -Gs0 -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -I..\dep/include -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DWHIRLPOOL_ASM -DOPENSSL_USE_APPLINK -I. -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_HW -DOPENSSL_FIPS -DOPENSSL_NO_JPAKE -DOPENSSL_NO_STATIC_ENGINE /Zi /Fdtmp32dll/lib -D_WINDLL -c ..\dep\lib\fips_premain.c fips_premain.c link /nologo /subsystem:console /opt:ref /debug /out:out32dll\fips_premain_dso.exe @C:\Users\TyrelHa\AppData\Local\Temp\nmDD6D.tmp Creating library out32dll\fips_premain_dso.lib and object out32dll\fips_premain_dso.exp eng_rsax.obj : error LNK2019: unresolved external symbol mod_exp_512 referenced in function e_rsax_bn_mod_exp out32dll\fips_premain_dso.exe : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\x86_amd64\link.EXE"' : return code '0x460' We're continuing to try to learn the build system of OpenSSL so that we can solve these sorts of problems ourselves and just send you patches, but in the meantime I hope that one of you can take a look at this. It started happening, I believe, when this file was added: crypto/bn/asm/ modexp512-x86_86.pl Thanks, Tyrel On Mon, Jul 11, 2011 at 4:12 PM, Dr. Stephen Henson <st...@openssl.org>wrote: > On Mon, Jul 11, 2011, Tyrel Haveman wrote: > > > Hello again, > > > > We've noticed now that while we are able to build the FIPS module for > 64-bit > > Windows, we cannot for 32-bit Windows. Following these steps: > > > > set FIPSDIR=..\out > > perl Configure VC-WIN32 > > ms\do_ms > > nmake -f ms\ntdll.mak > > > > We get this error: > > link /nologo /subsystem:console /opt:ref /debug > > /out:out32dll\fips_standalone_sha1.exe > > @C:\Users\TyrelHa\AppData\Local\Temp\nmC2ED.tmp > > sha1dgst.obj : error LNK2019: unresolved external symbol > > _fips_sha1_block_data_order referenced in function _fips_sha1_update > > out32dll\fips_standalone_sha1.exe : fatal error LNK1120: 1 unresolved > > externals > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > Studio > > 10.0\VC\BIN\link.EXE"' : return code '0x460' > > Stop. > > > > I know we should be using do_fips.bat, but it won't let me do a 32-bit > build > > on a 64-bit platform, so we're using these steps instead. > > > > The target platform is determined from the environment. Try this before > calling do_fips: > > set PROCESSOR_ARCHITECTURE=x86 > > Steve. > -- > Dr Stephen N. Henson. OpenSSL project core developer. > Commercial tech support now available see: http://www.openssl.org > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > Development Mailing List openssl-dev@openssl.org > Automated List Manager majord...@openssl.org >