ExportXMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • 4.5.1
    • Affects Version/s: 4.5.0, 4.4.1
    • Component/s: None
    • None
    • None
    • C Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      First a brief summary

      The last driver I built was the CXX Driver 4.0.0. I have not changed this driver in my application for a long time.

      But now since MongoDB 9.0 will come I was starting to update the MongoCXX driver to the most current one.

      What I found out was that the build process changed a bit more I was expecting. The MongoC driver is now in Version 2, the CMake step of creating the configurations of the CXX driver now automatically downloads the MongoC sources and everything is build in one step.

      My Build System

      The system is as followed:

      • Windows 11 Enterprise 25H2 (behind a company firewall & proxy)
      • HTTP_PROXY and HTTPS_PROXY environment variable set to ensure access to the internet
      • CMake 4.4.2
      • Visual Studio 2022 (17.14.39) - is at this moment the most current VS2022 version
      • CMake commands are executed in "Developer Command Prompt for VS 2022"
      • Used CXX Archive "mongo-cxx-driver-r4.5.0.tar.gz" from "https://github.com/mongodb/mongo-cxx-driver/releases"

      The Problem

      I used this documentation (https://www.mongodb.com/docs/languages/cpp/cpp-driver/current/get-started/#configure-the-driver-for-installation) and followed the steps described there to create the CXX driver 4.5.0.

      When the CMake command was executed the configuration failed at a step after the MongoC driver download. The error occured at a "late stage" of the configuration process.

      I could not find out a reason for this problem, first I was thinking there was a problem downloading the external sources.

      I attach a file named "MongoCXX_4_5_0_CMAKE.txt" with all outputs including the errors.

      What I did than

      Since the last driver I built was 4.0.0 I took 4.1.0 to see if this problem also exist with the very first CXX driver. The CMake configuration step was successul, also the build itself (debug & release).

      Than I took the driver sources of 4.2.0, 4.3.0 and 4.4.0. All CMake configurations were running without error also the build was successful (again debug & release).

      I than took the driver 4.4.1, and got exactly the same errors I got with 4.5.0. I attach an additional file named "MongoCXX_4_4_1_CMAKE.txt" with the error outputs.

      For all the configuration steps I used the same command for the CMake step, only the folder names were different.

      Conclusion

      For me I came to the conclusion that with 4.4.1 (and 4.5.0) something changed. My expectation would have be that the difference between 4.4.0 and 4.4.1 is only a bugfixing or something small. The expectation would be that the invocation syntax and behaviour creating the configurations with CMake is the same.

      Like I already wrote with 4.4.0 the configurations with CMake will be created successfully.

       

      I hope all informations are there.

       

       

       

       

       

       

       

       

       

       

        1. MongoCXX_4_4_1_CMAKE.txt
          26 kB
          Thomas M. (EXT)
        2. MongoCXX_4_5_0_CMAKE.txt
          26 kB
          Thomas M. (EXT)

            Assignee:
            Kevin Albertson
            Reporter:
            Thomas M. (EXT)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: