Skip to content

Commit c6f0530

Browse files
committed
Updating the build error of openssl-sys to inform the user about potential version mismatches. This was previously hidden and not at all obvious
1 parent 9f29412 commit c6f0530

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

openssl-sys/build/main.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,12 @@ fn validate_headers(include_dirs: &[PathBuf]) -> Version {
190190
Header expansion error:
191191
{:?}
192192
193-
Failed to find OpenSSL development headers.
193+
Failed to find OpenSSL development headers. Note: openssl-sys is compatible
194+
only with OpenSSL versions: 1.0.1, 1.0.2, 1.1.0, 1.1.1, and 3.0.0. Please
195+
ensure that the OpenSSL installation being linked is one of the supported
196+
versions.
194197
195-
You can try fixing this setting the `OPENSSL_DIR` environment variable
198+
You can try fixing this by setting the `OPENSSL_DIR` environment variable
196199
pointing to your OpenSSL installation or installing OpenSSL headers package
197200
specific to your distribution:
198201

0 commit comments

Comments
 (0)