Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake-Rust [Windows]: Fix issue detecting native static libs #992

Conversation

micahsnyder
Copy link
Contributor

Some change in Cargo/Rust version 1.70 or 1.71 appears to have broken the build on Windows because we are incorrectly attempting to check the native static libraries by compiling an empty file (/dev/null) which does not exist on Windows.

A simple fix is to make an empty file of our own and use that instead.

Fixes: #990


We should backport this in 1.1.1 and 1.0.2.

Some change in Cargo/Rust version 1.70 or 1.71 appears to have broken
the build on Windows because we are incorrectly attempting to check the
native static libraries by compiling an empty file (/dev/null) which
does not exist on Windows.

A simple fix is to make an empty file of our own and use that instead.

Fixes: Cisco-Talos#990
@micahsnyder micahsnyder added the 🍒cherry-pick-candidate A PR that should be backported once approved. label Aug 9, 2023
@micahsnyder micahsnyder merged commit c961189 into Cisco-Talos:main Aug 9, 2023
22 of 24 checks passed
@micahsnyder micahsnyder deleted the CLAM-2411-windows-rustc-native-static-libs-issue branch August 9, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒cherry-pick-candidate A PR that should be backported once approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unresolved external symbol(s) when trying to link clamav applications
2 participants