[SERVER-31736] Fix Windows build when --dynamic-windows is on but not --ssl Created: 26/Oct/17  Updated: 30/Oct/23  Resolved: 27/Oct/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.0-rc2

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2017-11-13
Participants:

 Description   

When --dynamic-windows on, but not --ssl, mongodb builds with tomcrypt which produces this warning. None of the builders build with this configuration, but developers may.

Compiling build\myvar1\mongo\crypto\sha_block_tom.obj
sha_block_tom.cpp
D:\mongo\src\third_party\tomcrypt-1.18.0-rc2\src\headers\tomcrypt_cfg.h(33): error C2220: warning treated as error - no 'object' file generated
D:\mongo\src\third_party\tomcrypt-1.18.0-rc2\src\headers\tomcrypt_cfg.h(33): warning C4273: 'malloc': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(97): note: see previous definition of 'malloc'
D:\mongo\src\third_party\tomcrypt-1.18.0-rc2\src\headers\tomcrypt_cfg.h(34): warning C4273: 'realloc': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(116): note: see previous definition of 'realloc'
D:\mongo\src\third_party\tomcrypt-1.18.0-rc2\src\headers\tomcrypt_cfg.h(35): warning C4273: 'calloc': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(62): note: see previous definition of 'calloc'
D:\mongo\src\third_party\tomcrypt-1.18.0-rc2\src\headers\tomcrypt_cfg.h(36): warning C4273: 'free': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h(85): note: see previous definition of 'free'
D:\mongo\src\third_party\tomcrypt-1.18.0-rc2\src\headers\tomcrypt_cfg.h(38): warning C4273: 'qsort': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_search.h(53): note: see previous definition of 'qsort'
D:\mongo\src\third_party\tomcrypt-1.18.0-rc2\src\headers\tomcrypt_cfg.h(42): warning C4273: 'clock': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\time.h(137): note: see previous definition of 'clock'
scons: *** [build\myvar1\mongo\crypto\sha_block_tom.obj] Error 2



 Comments   
Comment by Githook User [ 27/Oct/17 ]

Author:

{'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto', 'username': 'markbenvenuto'}

Message: SERVER-31736 Fix Windows build when --dynamic-windows is on but not --ssl
Branch: master
https://github.com/mongodb/mongo/commit/58da3876b02408e5c19927f1b342b8e40835bc86

Generated at Thu Feb 08 04:28:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.