make fails on macOS Mojave

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.13.0
    • Component/s: None
    • None
    • Environment:
      macOS Mojave 10.14.2
      XCode 10.1 (10B61)
      cmake 3.13.2
      make 4.2.1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hello,

      I am trying to build the driver but I get these errors when I run `make`.

      In file included from /Users/demir/Downloads/mongo-c-driver-1.13.0/src/libmongoc/src/mongoc/mongoc-client.c:30:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/resolv.h:81:
      /usr/local/include/nameser.h:22:14: error: redefinition of '__ns_class'
      typedef enum __ns_class {
      ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/arpa/nameser.h:337:14: note: previous definition is here
      typedef enum __ns_class {
      ^
      In file included from /Users/demir/Downloads/mongo-c-driver-1.13.0/src/libmongoc/src/mongoc/mongoc-client.c:30:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/resolv.h:81:
      /usr/local/include/nameser.h:23:5: error: redefinition of enumerator 'ns_c_invalid'
      ns_c_invalid = 0, /* Cookie. */
      ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/arpa/nameser.h:338:2: note: previous definition is here
      ns_c_invalid = 0, /* Cookie. */
      ^

       

      I've added the screenshot of all error logs. It'd be great if someone can help me with this.

      Best,

        1. 3.png
          736 kB
          Demircan Celebi
        2. 4.png
          873 kB
          Demircan Celebi
        3. 5.png
          817 kB
          Demircan Celebi
        4. 6.png
          800 kB
          Demircan Celebi
        5. 7.png
          462 kB
          Demircan Celebi
        6. cmake.png
          525 kB
          Demircan Celebi

            Assignee:
            Kevin Albertson
            Reporter:
            Demircan Celebi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: