Skip to content

Build error on Windows MSVC #5

@mbrubeck

Description

@mbrubeck

Building sig 1.0.0 on x86_64-pc-windows-msvc failed with these errors:

   Compiling sig v1.0.0
     Running `rustc --crate-name sig C:\projects\servo\.cargo\registry\src\github.com-1ecc6299db9ec823\sig-1.0.0\src\lib.rs --crate-type lib --emit=dep-info,link -C codegen-units=4 -C debuginfo=2 -C metadata=3190650705672a48 -C extra-filename=-3190650705672a48 --out-dir C:\projects\servo\target\debug\deps -L dependency=C:\projects\servo\target\debug\deps --extern libc=C:\projects\servo\target\debug\deps\liblibc-462a4e4826bc7826.rlib --cap-lints allow -W unused-extern-crates`
error[E0432]: unresolved import `libc::pid_t`
 --> C:\projects\servo\.cargo\registry\src\github.com-1ecc6299db9ec823\sig-1.0.0\src\ffi.rs:8:16
  |
8 | pub use libc::{pid_t, c_int, getpid, kill};
  |                ^^^^^ no `pid_t` in the root
error[E0432]: unresolved import `libc::kill`
 --> C:\projects\servo\.cargo\registry\src\github.com-1ecc6299db9ec823\sig-1.0.0\src\ffi.rs:8:38
  |
8 | pub use libc::{pid_t, c_int, getpid, kill};
  |                                      ^^^^ no `kill` in the root
error[E0432]: unresolved import `libc::sigaction`
  --> C:\projects\servo\.cargo\registry\src\github.com-1ecc6299db9ec823\sig-1.0.0\src\lib.rs:27:12
   |
27 | use libc::{sigaction, sighandler_t, sigfillset};
   |            ^^^^^^^^^ no `sigaction` in the root
error[E0432]: unresolved import `libc::sighandler_t`
  --> C:\projects\servo\.cargo\registry\src\github.com-1ecc6299db9ec823\sig-1.0.0\src\lib.rs:27:23
   |
27 | use libc::{sigaction, sighandler_t, sigfillset};
   |                       ^^^^^^^^^^^^ no `sighandler_t` in the root
error[E0432]: unresolved import `libc::sigfillset`
  --> C:\projects\servo\.cargo\registry\src\github.com-1ecc6299db9ec823\sig-1.0.0\src\lib.rs:27:37
   |
27 | use libc::{sigaction, sighandler_t, sigfillset};
   |                                     ^^^^^^^^^^ no `sigfillset` in the root
error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions