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

C++11 driver private/ssl.hpp compilation failure on Windows CI

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      See https://ci.appveyor.com/project/markbenvenuto/mongo-cxx-driver/build/3.0.0.182#L2004

      This is our first real CI run in a while, so I think this is unrelated to the current commit. The error is:

       C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /I"c:\usr\include\libbson-1.0" /I"c:\usr\include\libmongoc-1.0" /IC:\build\src /IC:\Libraries\boost_1_59_0 /nologo /W3 /WX- /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D MONGO_CXX_DRIVER_COMPILING /D "CMAKE_INTDIR=\"Release\"" /D MONGOCXX_EXPORTS /D _WINDLL /D _MBCS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"mongocxx.dir\Release\/client.cpp.obj" /Fd"mongocxx.dir\Release\vc140.pdb" /Gd /TP /errorReport:queue C:\build\src\mongocxx\client.cpp
        client.cpp
      C:\build\src\mongocxx/private/ssl.hpp(35): error C2440: '=': cannot convert from 'const char *' to 'char *' [C:\build\src\mongocxx\mongocxx.vcxproj]
        C:\build\src\mongocxx/private/ssl.hpp(35): note: Conversion loses qualifiers
      C:\build\src\mongocxx/private/ssl.hpp(38): error C2440: '=': cannot convert from 'const char *' to 'char *' [C:\build\src\mongocxx\mongocxx.vcxproj]
        C:\build\src\mongocxx/private/ssl.hpp(38): note: Conversion loses qualifiers
      C:\build\src\mongocxx/private/ssl.hpp(41): error C2440: '=': cannot convert from 'const char *' to 'char *' [C:\build\src\mongocxx\mongocxx.vcxproj]
        C:\build\src\mongocxx/private/ssl.hpp(41): note: Conversion loses qualifiers
      C:\build\src\mongocxx/private/ssl.hpp(44): error C2440: '=': cannot convert from 'const char *' to 'char *' [C:\build\src\mongocxx\mongocxx.vcxproj]
        C:\build\src\mongocxx/private/ssl.hpp(44): note: Conversion loses qualifiers
      C:\build\src\mongocxx/private/ssl.hpp(47): error C2440: '=': cannot convert from 'const char *' to 'char *' [C:\build\src\mongocxx\mongocxx.vcxproj]
        C:\build\src\mongocxx/private/ssl.hpp(47): note: Conversion loses qualifiers
      Done Building Project "C:\build\src\mongocxx\mongocxx.vcxproj" (default targets) -- FAILED.
      

            Assignee:
            ian.boros@mongodb.com Ian Boros
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: