[CDRIVER-2167] CMake Windows & OpenSSL 1.1.0 incorrect lib names Created: 17/May/17  Updated: 28/Oct/23  Resolved: 18/Jul/17

Status: Closed
Project: C Driver
Component/s: Build, libmongoc, tls
Affects Version/s: None
Fix Version/s: 1.8.0

Type: New Feature Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to CDRIVER-2164 Test with 32bit openssl on Windows Closed

 Description   

See also https://github.com/h2o/h2o/pull/227 && https://mta.openssl.org/pipermail/openssl-dev/2016-August/008340.html

OpenSSL renamed the library filenames on Windows in OpenSSL 1.1.0 (to libcrypto and libssl, rather then libeay32.lib & ssleay32.lib).

The CMake FindOpenSSL does not seem to have been updated, so now the search passes, but linking fails, since we are attempting to link non-existing libs.



 Comments   
Comment by Githook User [ 26/Apr/18 ]

Author:

{'email': 'jesse@mongodb.com', 'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis'}

Message: CDRIVER-2167 test on zSeries RHEL 6.7
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/dff591b47ae461556efeb741072846cf12f9fc32

Comment by Hannes Magnusson [ 18/Jul/17 ]

There isn't much we can do other then erroring when we detect older cmake and newer openssl and ask the user to upgrade their cmake install – or configure using secure channel.

Comment by Githook User [ 18/Jul/17 ]

Author:

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

Message: CDRIVER-2167 Mention CMake 3.7 is required for OpenSSL 1.1.0 support on Windows
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/a57b7208a995431c779c4d197695076009796d95

Comment by Githook User [ 18/Jul/17 ]

Author:

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

Message: CDRIVER-2167 OpenSSL 1.1.0 on Windows requires CMake 3.7+
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/50642b4857b9609848667ab679eea2c4d4c18621

Comment by Hannes Magnusson [ 17/Jul/17 ]

jesse What do you think we should do about this?
Wait until CMake fixes it and then vendor in their .cmake file until we bump minimum cmake version?

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