Pin OpenSSL below 4 to fix nightly conan builds - #843
Merged
Conversation
ConanCenter published openssl/4.0.1, and the unbounded openssl/[>=3.2.0] range in conanfile.py resolved to it. civetweb/1.16 does not support the OpenSSL 4 API yet (no OPENSSL_API_4_0 branch), so the nightly linux-build-conan jobs fail compiling civetweb against the new headers. Restrict the range to openssl/[>=3.2.0 <4], matching the upper bound already declared by the civetweb recipe itself. Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #843 +/- ##
==========================================
- Coverage 91.62% 91.53% -0.10%
==========================================
Files 235 235
Lines 28787 28787
==========================================
- Hits 26377 26351 -26
- Misses 2410 2436 +26 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The nightly
linux-build-conanjobs started failing on 2026-08-11 with civetweb/1.16 compile errors against the OpenSSL headers:civetweb.c:1561: #error "Please define OPENSSL_API_#_# or USE_MBEDTLS"X509_get_subject_name/X509_get_issuer_namediscardconst(error under-pedantic-errors)mg_openssl_initializedundeclaredRoot cause
ConanCenter published
openssl/4.0.1between 08-10 and 08-11. The unboundedopenssl/[>=3.2.0]range in conanfile.py resolved to it (theoverride=Truealso drops the<4upper bound that the civetweb recipe itself declares). civetweb/1.16 predates the OpenSSL 4 API, so its API-version detection has no branch for OpenSSL >= 4.0.Fix
Restrict the range to
openssl/[>=3.2.0 <4], matching the upper bound already declared by the civetweb recipe.Verified locally:
conan graph infonow resolvesopenssl/3.6.3.Follow-up
Revisit once civetweb (or another consumer) supports the OpenSSL 4 API, then the bound can be lifted again.
🤖 Generated with Claude Code