[CXX-863] Failing to compile when MONGOC_HAVE_SSL is defined Created: 14/Mar/16 Updated: 30/Mar/16 Resolved: 18/Mar/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Build, Implementation |
| Affects Version/s: | 3.0.0 |
| Fix Version/s: | 3.0.1 |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | Petr Messner | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
produces
|
| Comments |
| Comment by Githook User [ 18/Mar/16 ] | |||||
|
Author: {u'username': u'messa', u'name': u'Petr Messner', u'email': u'petr.messner@gmail.com'}Message: | |||||
| Comment by Andrew Morrow (Inactive) [ 18/Mar/16 ] | |||||
| Comment by Andrew Morrow (Inactive) [ 14/Mar/16 ] | |||||
|
We actually have a ticket to make the SSL status in the C++ driver more configurable. Ideally, it would default to matching whatever the C driver was configured for, but could also be explicitly chosen as on or off. Selecting it as "on" when the C driver doesn't offer it would result in an error. See https://jira.mongodb.org/browse/CXX-778 | |||||
| Comment by Petr Messner [ 14/Mar/16 ] | |||||
|
OK, cool BTW. what is the correct way to compile mongo-cxx-driver with SSL support? Maybe it could be added to the Quickstart Guide on Github Wiki? I am currently using this when building cxx driver:
Am I supposed to be passing MONGOC_HAVE_SSL to cmake like this (using -DCMAKE_CXX_FLAGS) or is there any cleaner way? Maybe SSL support should be autodetected like it is in C driver... If I don't specify MONGOC_HAVE_SSL then client that tries to use SSL fails with an exception "SSL support not available". | |||||
| Comment by Andrew Morrow (Inactive) [ 14/Mar/16 ] | |||||
|
I've filed | |||||
| Comment by Andrew Morrow (Inactive) [ 14/Mar/16 ] | |||||
|
Thanks for the bug report. It looks like our continuous integration builds for the driver did not have SSL enabled, so we failed to catch this. I have a few logistical notes on the PR, but I'll mention those over there. | |||||
| Comment by Petr Messner [ 14/Mar/16 ] | |||||
|
I've added pull request that fixes this for me: https://github.com/mongodb/mongo-cxx-driver/pull/463 |