Build breaks with cmake 3.18.2 (but it worked with 3.11.4)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      I'm trying to build the driver as described in documentation, basically:

      curl -kOL https://github.com/mongodb/mongo-c-driver/releases/download/1.17.6/mongo-c-driver-1.17.6.tar.gz
      {{ tar xfvz mongo-c-driver-1.17.6.tar.gz}}
      {{ cd mongo-c-driver-1.17.6}}
      {{ mkdir cmake-build}}
      {{ cd cmake-build}}
      {{ cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..}}
      {{ make}}

      However I get this error in the cmake step:

      ...mongo-c-driver-1.17.6/src/libbson/src/libbson-1.0.pc.in
      mongo-c-driver-1.17.6/src/libbson/src/CMakeLists.txt
      mongo-c-driver-1.17.6/src/libbson/src/libbson-static-1.0.pc.in
      mongo-c-driver-1.17.6/src/libbson/src/jsonsl/
      mongo-c-driver-1.17.6/src/libbson/src/jsonsl/CMakeLists.txt
      mongo-c-driver-1.17.6/src/libbson/src/jsonsl/jsonsl.h
      mongo-c-driver-1.17.6/src/libbson/src/jsonsl/jsonsl.c
      cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd

      It seems this has started to fail since I changed in my system from cmake 3.11.4 to cmake 3.18.2.

      I have tested with driver versions 1.17.4 and 1.17.6 and the problem is the same.

      Is there any restriction in the cmake version that has to be used to build the driver? Is there any way to solve this problem?

      Thanks!

            Assignee:
            Unassigned
            Reporter:
            Fermín Galán
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: