Skip to content

CMake/Rust openssl detection fix - #1491

Merged
val-ms merged 2 commits into
Cisco-Talos:mainfrom
val-ms:CLAM-2751-openssl-sys_ubuntu-arm64
May 6, 2025
Merged

val-ms merged 2 commits into
Cisco-Talos:mainfrom
val-ms:CLAM-2751-openssl-sys_ubuntu-arm64

Conversation

@val-ms

@val-ms val-ms commented Apr 30, 2025

Copy link
Copy Markdown
Contributor

We observed build failures on Ubuntu 20.04 ARM64 because the Rust code saw extra OpenSSL dependencies in the OPENSSL_LIBS environment variable and was confused.

This change switches from using OPENSSL_LIBRARIES, which may have extra dependencies for libcrypto/libssl, to only use OPENSSL_CRYPTO_LIBRARY and OPENSSL_SSL_LIBRARY.

We observed build failures on Ubuntu 20.04 ARM64 because the Rust code
saw extra OpenSSL dependencies in the OPENSSL_LIBS environment variable
and was confused.

This change switches from using OPENSSL_LIBRARIES, which may have extra
dependencies for libcrypto/libssl, to only use OPENSSL_CRYPTO_LIBRARY
and OPENSSL_SSL_LIBRARY.
@val-ms
val-ms requested a review from rsundriyal April 30, 2025 16:38
The non-Windows ClamD tests use the LocalSocket option.
@val-ms
val-ms force-pushed the CLAM-2751-openssl-sys_ubuntu-arm64 branch from b34cd8c to 4095b0c Compare May 5, 2025 15:53
@val-ms val-ms changed the title CMake: Improvement for CMake/Rust openssl detection CMake/Rust openssl detection fix + Fix ClamD test failure on arm64 Linux May 5, 2025
@val-ms
val-ms force-pushed the CLAM-2751-openssl-sys_ubuntu-arm64 branch from 4095b0c to b34cd8c Compare May 5, 2025 16:04
@val-ms val-ms changed the title CMake/Rust openssl detection fix + Fix ClamD test failure on arm64 Linux CMake/Rust openssl detection fix May 5, 2025

@rsundriyal rsundriyal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Tests worked fine.

@val-ms
val-ms merged commit 4bfaa20 into Cisco-Talos:main May 6, 2025
@val-ms
val-ms deleted the CLAM-2751-openssl-sys_ubuntu-arm64 branch May 6, 2025 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants