[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: Text File mongoc_error.txt    
Issue Links:
Related
related to CDRIVER-1952 cyrus header checks don't account for... Closed

 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: CDRIVER-1944 Fix OpenSSL header lookups in non-default paths
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/2cbc5b9f7d818970b588aed60cbf5ff08fb63a76

Comment by Githook User [ 09/Dec/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1944 Fix OpenSSL header lookups in non-default paths
Branch: r1.5
https://github.com/mongodb/mongo-c-driver/commit/d42650dbc1e044dc473bfdfde0a424ed60b6e668

Comment by Hannes Magnusson [ 08/Dec/16 ]

Thanks for the report!
That explains a lot

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.

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