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

Error building nix 0.6.0 on FreeBSD 10.3 (latest Rust nightly) #507

Closed
alexreg opened this issue Feb 9, 2017 · 6 comments
Closed

Error building nix 0.6.0 on FreeBSD 10.3 (latest Rust nightly) #507

alexreg opened this issue Feb 9, 2017 · 6 comments

Comments

@alexreg
Copy link

alexreg commented Feb 9, 2017

error[E0432]: unresolved import `libc::SIGPWR`
  --> /home/alexuk/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.6.0/src/sys/signal.rs:49:5
   |
49 |     SIGPWR,
   |     ^^^^^^ no `SIGPWR` in `libc`

error[E0432]: unresolved import `libc::SIGSTKFLT`
  --> /home/alexuk/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.6.0/src/sys/signal.rs:50:5
   |
50 |     SIGSTKFLT,
   |     ^^^^^^^^^ no `SIGSTKFLT` in `libc`. Did you mean to use `SIGSTKSZ`?

error[E0432]: unresolved import `libc::SIGPOLL`
  --> /home/alexuk/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.6.0/src/sys/signal.rs:52:5
   |
52 |     SIGPOLL, // Alias for SIGIO
   |     ^^^^^^^ no `SIGPOLL` in `libc`. Did you mean to use `SIGILL`?

error[E0432]: unresolved import `libc::SIGUNUSED`
  --> /home/alexuk/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.6.0/src/sys/signal.rs:53:5
   |
53 |     SIGUNUSED, // Alias for 31
   |     ^^^^^^^^^ no `SIGUNUSED` in `libc`

error[E0308]: mismatched types
   --> /home/alexuk/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.6.0/src/unistd.rs:188:47
    |
188 |     let res = unsafe { libc::sethostname(ptr, len) };
    |                                               ^^^ expected i32, found usize

error: aborting due to previous error
@posborne
Copy link
Member

Hi @alexreg, can you verify that this occurs on the latest from git as well. Also, is this failure only with nightly?

@alexreg
Copy link
Author

alexreg commented Feb 10, 2017 via email

@kamalmarhubi
Copy link
Member

@alexreg does this error come up on stable Rust? Trying to narrow down the variables a bit.

Also, this raises an interesting question: how far back do we want to support.

@alexreg
Copy link
Author

alexreg commented Feb 15, 2017 via email

@Susurrus
Copy link
Contributor

Susurrus commented Apr 2, 2017

@alexreg You also opened #567, which makes me think this issue is outdated. If so, please close this.

@alexreg
Copy link
Author

alexreg commented Apr 2, 2017

Well, this one seemed to be solved (I think?), but some new similar errors appeared.

@alexreg alexreg closed this as completed Apr 2, 2017
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

No branches or pull requests

4 participants