Skip to content

Instantly share code, notes, and snippets.

@eknowlton
Created August 23, 2019 01:20
Show Gist options
  • Save eknowlton/215fd2b3ffa39cb9c470ae30b8ce478f to your computer and use it in GitHub Desktop.
Save eknowlton/215fd2b3ffa39cb9c470ae30b8ce478f to your computer and use it in GitHub Desktop.
PS C:\Users\Ethan\Projects\actionmailbox-imap> cargo build
Compiling signal-hook v0.1.10
error[E0433]: failed to resolve: could not find `unix` in `os`
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:55:14
|
55 | use std::os::unix::io::AsRawFd;
| ^^^^ could not find `unix` in `os`
error[E0433]: failed to resolve: could not find `unix` in `os`
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:56:14
|
56 | use std::os::unix::net::UnixStream;
| ^^^^ could not find `unix` in `os`
error[E0433]: failed to resolve: could not find `unix` in `os`
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:78:14
|
78 | use std::os::unix::io::{AsRawFd, RawFd};
| ^^^^ could not find `unix` in `os`
error[E0432]: unresolved imports `libc::SIGALRM`, `libc::SIGBUS`, `libc::SIGCHLD`, `libc::SIGCONT`, `libc::SIGHUP`, `libc::SIGIO`, `libc::SIGKILL`, `libc::SIGPIPE`, `libc::SIGPROF`, `libc::SIGQUIT`, `libc::SIGSTOP`, `libc::SIGSYS`, `libc::SIGTRAP`, `libc::SIGUSR1`, `libc::SIGUSR2`, `libc::SIGWINCH`
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\lib.rs:137:14
|
137 | SIGABRT, SIGALRM, SIGBUS, SIGCHLD, SIGCONT, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIO, SIGKILL,
| ^^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^ ^^^^^^^ no `SIGKILL` in the root
| | | | | | |
| | | | | | no `SIGIO` in the root
| | | | | no `SIGHUP` in the root
| | | | no `SIGCONT` in the root
| | | no `SIGCHLD` in the root
| | no `SIGBUS` in the root
| no `SIGALRM` in the root
138 | SIGPIPE, SIGPROF, SIGQUIT, SIGSEGV, SIGSTOP, SIGSYS, SIGTERM, SIGTRAP, SIGUSR1, SIGUSR2,
| ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^
| | | |
| | | no `SIGQUIT` in the root
| | no `SIGPROF` in the root
| no `SIGPIPE` in the root
139 | SIGWINCH,
| ^^^^^^^^
help: a similar name exists in the module
|
137 | SIGABRT, SIGABRT, SIGBUS, SIGCHLD, SIGCONT, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIO, SIGKILL,
| ^^^^^^^
help: a similar name exists in the module
|
137 | SIGABRT, SIGALRM, SIGBUS, SIGCHLD, SIGINT, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIO, SIGKILL,
| ^^^^^^
help: a similar name exists in the module
|
137 | SIGABRT, SIGALRM, SIGBUS, SIGCHLD, SIGCONT, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIO, SIGILL,
| ^^^^^^
help: a similar name exists in the module
|
138 | SIGFPE, SIGPROF, SIGQUIT, SIGSEGV, SIGSTOP, SIGSYS, SIGTERM, SIGTRAP, SIGUSR1, SIGUSR2,
| ^^^^^^
error[E0433]: failed to resolve: use of undeclared type or module `UnixStream`
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:166:29
|
166 | let (read, write) = UnixStream::pair()?;
| ^^^^^^^^^^ use of undeclared type or module `UnixStream`
error[E0412]: cannot find type `UnixStream` in this scope
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:73:11
|
73 | read: UnixStream,
| ^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `UnixStream` in this scope
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:74:12
|
74 | write: UnixStream,
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `recv` in module `libc`
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:240:19
|
240 | libc::recv(
| ^^^^ not found in `libc`
error[E0425]: cannot find value `MSG_DONTWAIT` in module `libc`
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:244:44
|
244 | if wait { 0 } else { libc::MSG_DONTWAIT },
| ^^^^^^^^^^^^ not found in `libc`
error[E0412]: cannot find type `RawFd` in this scope
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:84:26
|
84 | pub(crate) fn wake(pipe: RawFd) {
| ^^^^^ not found in this scope
error[E0425]: cannot find function `send` in module `libc`
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:96:15
|
96 | libc::send(pipe, b"X" as *const _ as *const _, 1, libc::MSG_DONTWAIT);
| ^^^^ not found in `libc`
error[E0425]: cannot find value `MSG_DONTWAIT` in module `libc`
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:96:65
|
96 | libc::send(pipe, b"X" as *const _ as *const _, 1, libc::MSG_DONTWAIT);
| ^^^^^^^^^^^^ not found in `libc`
error[E0412]: cannot find type `RawFd` in this scope
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:104:42
|
104 | pub fn register_raw(signal: c_int, pipe: RawFd) -> Result<SigId, Error> {
| ^^^^^ not found in this scope
error[E0405]: cannot find trait `AsRawFd` in this scope
--> C:\Users\Ethan\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:116:8
|
116 | P: AsRawFd + Send + Sync + 'static,
| ^^^^^^^ not found in this scope
error: aborting due to 14 previous errors
Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433.
For more information about an error, try `rustc --explain E0405`.
error: Could not compile `signal-hook`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment