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

Build failure on case-sensitive macOS file system: CommonHmac.h

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.0.3
    • Fix Version/s: 4.0.4, 4.1.5
    • Component/s: Build
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Sprint:
      Dev Tools 2018-10-22, Security 2018-11-05

      Description

      A user reported to MacPorts that the build fails on case-sensitive filesystems:

      src/mongo/crypto/sha_block_apple.cpp:32:10: fatal error: 'CommonCrypto/CommonHmac.h' file not found
      #include <CommonCrypto/CommonHmac.h>
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      

      This is fixed with a simple change of case:

      --- src/mongo/crypto/sha_block_apple.cpp.orig	2018-09-25 16:56:42.000000000 -0500
      +++ src/mongo/crypto/sha_block_apple.cpp	2018-10-11 19:28:57.000000000 -0500
      @@ -29,7 +29,7 @@
       #include "mongo/platform/basic.h"
       
       #include <CommonCrypto/CommonDigest.h>
      -#include <CommonCrypto/CommonHmac.h>
      +#include <CommonCrypto/CommonHMAC.h>
       
       #include "mongo/crypto/sha1_block.h"
       #include "mongo/crypto/sha256_block.h"
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: