Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2157

Linking to libmongoc with MinGW-64 fails to find crypt32.lib

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: 1.7.0
    • Component/s: Build, libmongoc, mingw
    • None
    • Environment:
      Environment x86_64
      MSYS2 - 2.7.0
      GCC - 6.3.0
      CMake - 3.7.2
      Boost - 1.63.0
      libbson - git master(09/05)
      libmongoc - git master(09/05)

      When mongo-c-driver is built against openssl+cyrus, the pkg-config files get broken.
      Compiling any code using pkg-config gets the message "gcc.exe: error: crypt32.lib: No such file or directory".
      Compiling a program without pkg-config works.
      Compiling a program with pkg-config and with mongo-c-driver built without any SSL+SASL works too.

      Appears pkg-config file is trying to find files from WINDOWS + SSPI build info.

      Using the following command to build from inside 'build' folder:
      cmake -DENABLE_SSL=OPENSSL -DENABLE_SASL=CYRUS -DCMAKE_INSTALL_PREFIX=/mingw64 -G "CodeBlocks - MinGW Makefiles" ..

        1. libmongoc-static-1.0-config-version.cmake
          1.0 kB
        2. libmongoc-static-1.0-config.cmake
          3 kB
        3. libmongoc-static-1.0.pc
          0.4 kB
        4. libmongoc-ssl-1.0.pc
          0.2 kB
        5. libmongoc-1.0-config-version.cmake
          1.0 kB
        6. libmongoc-1.0-config.cmake
          2 kB
        7. libmongoc-1.0.pc
          0.4 kB
        8. gcc log.txt
          2 kB

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            gbschenkel Gustavo Brondani Schenkel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: