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

mongoc-sspi.c and mongoc-cluster-sspi.c not distributed in release tarball

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.2
    • Affects Version/s: 1.6.0
    • Component/s: Build, libmongoc
    • None
    • Environment:
      Windows 10 64 bits

      After successfully making and installing libbson I tried to do the same for MongoDB C driver. However when executing:

      cmake -G "Visual Studio 14 2015 Win64" "-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver" "-DBSON_ROOT_DIR=C:\mongo-c-driver"
      

      I got the following:

      -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing:  OPENSSL_LIBRARIES) (found version "1.0.2j")
      -- Searching for sasl/sasl.h
      --   Not found (specify -DCMAKE_INCLUDE_PATH=C:/path/to/sasl/include for SASL support)
      -- Searching for libsasl2
      --   Not found (specify -DCMAKE_LIBRARY_PATH=C:/path/to/sasl/lib for SASL support)
      Current version (from VERSION_CURRENT file): 1.6.0
      -- Compiling against Windows SSPI
      -- Configuring done
      CMake Error at CMakeLists.txt:426 (add_library):
        Cannot find source file:
      
          C:/Mongo-driver/mongo-c-driver-1.6.0/src/mongoc/mongoc-cluster-sspi.c
      
        Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
        .hxx .in .txx
      
      CMake Error: CMake can not determine linker language for target: mongoc_shared
      CMake Error: CMake can not determine linker language for target: mongoc_static
      -- Generating done
      -- Build files have been written to: C:/Mongo-driver/mongo-c-driver-1.6.0
      

      And trying to build it in the VS ide, allproject linking failed with the error messages:

      warning : The referenced project 'C:/Mongo-driver/mongo-c-driver-1.6.0/mongoc_shared.vcxproj' does not exist
      LINK : fatal error LNK1104: cannot open file 'Debug\mongoc-1.0.lib'
      LINK : fatal error LNK1104: cannot open file 'Debug\mongoc-static-1.0.lib'
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            Buggynours Olivier Bertrand [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: