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

Build: could not find iterator in signal_hook and SIGUSR1 not found in scope #709

Open
vostrnad opened this issue Apr 26, 2022 · 4 comments
Labels
bug Something isn't working build windows

Comments

@vostrnad
Copy link

Which command failed?
cargo build --locked --release (with or without --no-default-features)

What was the error message?

Error message
error[E0432]: unresolved import `signal_hook::iterator`
 --> src\signals.rs:4:18
  |
4 | use signal_hook::iterator::Signals;
  |                  ^^^^^^^^ could not find `iterator` in `signal_hook`

error[E0425]: cannot find value `SIGUSR1` in this scope
  --> src\signals.rs:59:13
   |
59 |             SIGUSR1, // allow external triggering (e.g. via bitcoind `blocknotify`)
   |             ^^^^^^^ not found in this scope

error: aborting due to 2 previous errors

System
OS name and version: Windows 10
rustc 1.48.0 (7eac88abb 2020-11-16)
cargo 1.48.0 (65cbdd2dc 2020-10-14)

Compilation
Linking: static
Cross compilation: no
Target architecture: amd64

@vostrnad vostrnad added bug Something isn't working build labels Apr 26, 2022
@romanz
Copy link
Owner

romanz commented May 21, 2023

Thanks for reporting this issue, and sorry for the delayed response!
Does this issue reproduces on latest master?

@vostrnad
Copy link
Author

Yes, the error message appears exactly the same.

@romanz
Copy link
Owner

romanz commented May 21, 2023

I guess it's related to https://docs.rs/signal-hook/latest/signal_hook/iterator/index.html not being supported on Windows.

@romanz
Copy link
Owner

romanz commented May 21, 2023

Maybe we can try to use https://crates.io/crates/ctrlc (which seems to support Windows).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build windows
Projects
None yet
Development

No branches or pull requests

2 participants