swift-crypto
swift-crypto copied to clipboard
CCryptoBoringSSL_ex_data.h:207:8: note: definition has no member 'ctx'
New Issue Checklist
- [X] I'm using the latest version of Swift Crypto (
mainbranch) - [X] I read the Contribution Guidelines
- [X] I searched for existing GitHub issues
Expected behavior
Build to succeed
Actual behavior
Since yesterday evening when I resolve package and build a certain Vapor swift package, this error pops up:
Building for production...
/usr/include/openssl/crypto.h:181:19: error: 'crypto_ex_data_st::ctx' from module 'OpenSSL' is not present in definition of 'struct crypto_ex_data_st' in module 'CCryptoBoringSSL'
OSSL_LIB_CTX *ctx;
^
/home/projects/app/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/include/CCryptoBoringSSL_ex_data.h:207:8: note: definition has no member 'ctx'
struct crypto_ex_data_st {
Seems to be related to 3.5.0 release, because I see no issues when forcing 3.4.0 in Package.swift.
Steps to reproduce
Happens in a private repo but I can provide access upon request.
If possible, minimal yet complete reproducer code (or URL to code)
swift package resolve swift package update swift build -c release
Swift Crypto version/commit hash
3.5.0 / 33f65a3cbc52f8c19295723af9cbecc2195484e1
Environment
Stand in the root of the repo and run ./scripts/environment.sh and paste the output below
Swift version: Swift version 5.10.1 (swift-5.10.1-RELEASE)
Target: x86_64-unknown-linux-gnu\nUnix version: Linux pacotevicio-ash-1 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux\n