Can't compile with no `PeerCredentials` in `sys::socket::sockopt`
Detailed description of the issue. Provide as much information as you can, potentially with images showing the issue.
Steps to reproduce:
- Pull codebase at 6670a6e8
- Follow instructions to compile on macOS
-
This bug is reproducible from the latest nightly build
Fractal Version: 6670a6e8
OS Version: 11.2.1
Installation Source: GitLab
Homeserver: N/A
Rust version
Default host: x86_64-apple-darwin
rustup home: /Users/lessless/.rustup
stable-x86_64-apple-darwin (default)
rustc 1.50.0 (cb75ad5db 2021-02-10)
ninja -C _build 13:05:38
ninja: Entering directory `_build'
[0/1] Generating cargo-build with a custom command
RELEASE MODE
Compiling lmdb-sys v0.8.0
Compiling gettext-rs v0.4.2 (https://github.com/danigm/gettext-rs?branch=no-gettext#61938b9f)
Compiling glib-sys v0.10.1
Compiling hyper-tls v0.5.0
Compiling zbus v1.8.0
error[E0432]: unresolved import `nix::sys::socket::sockopt::PeerCredentials`
--> /Users/lessless/Code/fractal/_build/target/cargo-home/registry/src/github.com-1ecc6299db9ec823/zbus-1.8.0/src/connection.rs:163:44
|
163 | use nix::sys::socket::{getsockopt, sockopt::PeerCredentials};
| ^^^^^^^^^^^^^^^^^^^^^^^^ no `PeerCredentials` in `sys::socket::sockopt`
error[E0432]: unresolved import `nix::sys::socket::sockopt::PeerCredentials`
--> /Users/lessless/Code/fractal/_build/target/cargo-home/registry/src/github.com-1ecc6299db9ec823/zbus-1.8.0/src/azync/connection.rs:180:44
|
180 | use nix::sys::socket::{getsockopt, sockopt::PeerCredentials};
| ^^^^^^^^^^^^^^^^^^^^^^^^ no `PeerCredentials` in `sys::socket::sockopt`
Compiling gloo-timers v0.2.1
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0432`.
error: could not compile `zbus`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
FAILED: fractal-gtk/src/fractal
/Users/lessless/Code/fractal/scripts/cargo.sh .. fractal-gtk/src/fractal /Users/lessless/Code/fractal/_build ''
ninja: build stopped: subcommand failed.
-->
Edited by Yevhenii Kurtov