Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31736

Fix Windows build when --dynamic-windows is on but not --ssl

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-11-13

      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
      

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: