cargo install fails on OpenBSD #135

Closed
opened 2021-06-15 16:43:25 +03:00 by IssueBot · 1 comment

Anonymous reports:

Hello team meli,

I'm running OpenBSD 6.9 on an amd64 machine with cargo/rustc version
1.51.0. I tried cargo install meli and got an error.

error[E0432]: unresolved import `nix::sys::socket::sockopt::PeerCredentials`
   -->
/home/user01/.cargo/registry/src/github.com-1ecc6299db9ec823/zbus-1.9.1/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`
   -->
/home/user01/.cargo/registry/src/github.com-1ecc6299db9ec823/zbus-1.9.1/src/azync/connection.rs:180:44
    |
180 |         use nix::sys::socket::{getsockopt, sockopt::PeerCredentials};
    |
^^^^^^^^^^^^^^^^^^^^^^^^ no `PeerCredentials` in `sys::socket::sockopt`

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: failed to compile `meli v0.6.2`, intermediate artifacts can be
found at `/tmp/cargo-installSSszkS`

Caused by:
  build failed

The full log is attached to this email.

Have a nice day!

Anonymous reports: Hello team meli, I'm running OpenBSD 6.9 on an amd64 machine with cargo/rustc version 1.51.0. I tried `cargo install meli` and got an error. ``` error[E0432]: unresolved import `nix::sys::socket::sockopt::PeerCredentials` --> /home/user01/.cargo/registry/src/github.com-1ecc6299db9ec823/zbus-1.9.1/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` --> /home/user01/.cargo/registry/src/github.com-1ecc6299db9ec823/zbus-1.9.1/src/azync/connection.rs:180:44 | 180 | use nix::sys::socket::{getsockopt, sockopt::PeerCredentials}; | ^^^^^^^^^^^^^^^^^^^^^^^^ no `PeerCredentials` in `sys::socket::sockopt` 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: failed to compile `meli v0.6.2`, intermediate artifacts can be found at `/tmp/cargo-installSSszkS` Caused by: build failed ``` The full log is attached to this email. Have a nice day!
Manos Pitsidianakis added the
bug
label 2021-09-03 14:13:20 +03:00

Hallo, this had been fixed on master but was not pushed in a release so I created a new release today and published it. This fixes this problem.

There's a socket2 bug that still prevents succesful installation, though it's a single line to fix. I made a pull request and when this gets merged it will install without problems again.

Hallo, this had been fixed on master but was not pushed in a release so I created a new release today and published it. This fixes this problem. There's a `socket2` bug that still prevents succesful installation, though it's a single line to fix. I [made a pull request](https://github.com/rust-lang/socket2/pull/263) and when this gets merged it will install without problems again.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: meli/meli#135
There is no content yet.