[CDRIVER-1944] On macOS, config is unable to detect the installed OpenSSL library Created: 08/Dec/16 Updated: 09/Dec/16 Resolved: 09/Dec/16 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.5.0 |
| Fix Version/s: | 1.5.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jonathan Wang | Assignee: | Hannes Magnusson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
macOS 10.12.1 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
On macOS, configure is unable to detect the installed OpenSSL library. When trying to configure the MongoDB C library with OpenSSL installed at a custom location (/usr/local/custom/openssl) specified in the PKG_CONFIG_LIBDIR (or PKG_CONFIG_PATH) environment variable, configure is unable to detect the installation and exits with an error: configure: error: You must install the OpenSSL development headers to enable OpenSSL support. See the attachment for the commands and flags I used as well as the configure output. I was previously able to use the same build procedure to get the 1.3.6 version of the Mongo C library to correctly configure and build. |
| Comments |
| Comment by Githook User [ 09/Dec/16 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Githook User [ 09/Dec/16 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Hannes Magnusson [ 08/Dec/16 ] |
|
Thanks for the report! |
| Comment by Jonathan Wang [ 08/Dec/16 ] |
|
After doing some more testing, it seems as though providing --enable-ssl=openssl causes the same config error on Linux as well. |
| Comment by Jonathan Wang [ 08/Dec/16 ] |
|
Additionally, I'm guessing that the specifying a custom OpenSSL installation also does not work on Linux either. On Linux, there might just not be a build error because the default value of SSL_LIBS is -lssl -lcrypto, which ends up being able to locate those libraries in default locations. |