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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.4, 4.1.5
    • Affects Version/s: 4.0.3
    • Component/s: Build
    • Labels:
    • Fully Compatible
    • ALL
    • v4.0
    • Dev Tools 2018-10-22, Security 2018-11-05

      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"
      

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            ryandesign Ryan Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: