[CDRIVER-1338] C++11 driver private/ssl.hpp compilation failure on Windows CI Created: 16/Jun/16  Updated: 27/Jun/16  Resolved: 27/Jun/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.0

Type: Bug Priority: Major - P3
Reporter: David Golden Assignee: Ian Boros
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CXX-917 SSL support is examining the wrong de... Closed

 Description   

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.



 Comments   
Comment by Hannes Magnusson [ 27/Jun/16 ]

Fixed in https://github.com/mongodb/mongo-c-driver/commit/dc78442ac79274326f0bc24cb24aad246d377748

Comment by Andrew Morrow (Inactive) [ 17/Jun/16 ]

I believe the issue is actually that the C driver changed the types of its mongoc_ssl_opts type inappropriately. I've pinged the PR where that happened to see what is up.

Comment by David Golden [ 16/Jun/16 ]

Lines with errors all seem to be from the fix for CXX-917

Generated at Wed Feb 07 21:12:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.