[openssl-dev] [openssl.org #4008] Building statically OpenSSL 1.0.1p with MSVC2015 fails

stathis via RT rt at openssl.org
Sat Aug 15 14:56:13 UTC 2015


Hi,

When building OpenSSL 1.0.1p with MSVC 2015 (community) on Win7 64-bit statically, the build fails with:

t1_reneg.c
     cl /Fotmp32\ssl_utst.obj  -Iinc32 -Itmp32 /MT /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 -DOPENSSL_BN_ASM_MONT5 
-DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM 
-DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 
-DOPENSSL_NO_JPAKE -DOPENSSL_NO_DYNAMIC_ENGINE /Zl /Zi /Fdtmp32/lib -c .\ssl\ssl_utst.c
ssl_utst.c
     lib /nologo /out:out32\ssleay32.lib @C:\Users\admin\AppData\Local\Temp\nm1B7F.tmp
     cl /Fotmp32\constant_time_test.obj -Iinc32 -Itmp32 /MT /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 -DOPENSSL_BN_ASM_MONT5 
-DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM 
-DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 
-DOPENSSL_NO_JPAKE -DOPENSSL_NO_DYNAMIC_ENGINE /Zi /Fdtmp32/app -c .\crypto\constant_time_test.c
constant_time_test.c
     link /nologo /subsystem:console /opt:ref /debug /out:out32\constant_time_test.exe 
@C:\Users\admin\AppData\Local\Temp\nm1C3B.tmp
constant_time_test.obj : error LNK2019: unresolved external symbol __iob_func referenced in function 
main
out32\constant_time_test.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'D:\dev\vs2015\VC\BIN\amd64\link.EXE' : return code '0x460'
Stop.


Note that shared builds complete successfully.

I configured with:

perl Configure VC-WIN64A enable-static-engine 
--prefix=D:\dist\openssl-dist-1.0.1p-vs2015\openssl-x64-static-release-vs2015


Same config with 1.0.2d works just fine building with MSVC2015.

Building 1.0.1p with earlier compilers (MSVC2008, 2010, 2013) succeeds.

regards,
stathis








_______________________________________________
openssl-bugs-mod mailing list
openssl-bugs-mod at openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod



More information about the openssl-dev mailing list