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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.0.3
    • 4.0.4, 4.1.5
    • Build
    • Fully Compatible
    • ALL
    • v4.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: