Compilation failure: libc::itimerspec and notify_rust::Notification #102

Open
opened 9 months ago by trombonehero · 1 comments

I'm eager to test out meli, but when compiling on macOS 11.2.2 with (stable) Rust 1.50.0, I see the following errors related to the libc::itimerspec and notify_rust::Notification types:

error[E0432]: unresolved import `libc::itimerspec`
  --> /Users/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/meli-0.6.2/src/unix.rs:43:16
   |
43 |     use libc::{itimerspec, timespec};
   |                ^^^^^^^^^^
   |                |
   |                no `itimerspec` in the root
   |                help: a similar name exists in the module: `timespec`

error[E0599]: no method named `hint` found for struct `notify_rust::Notification` in the current scope
  --> /Users/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/meli-0.6.2/src/components/notifications.rs:78:38
   |
78 |                         notification.hint(notify_rust::Hint::Category("email".to_owned()));
   |                                      ^^^^ method not found in `notify_rust::Notification`

error[E0599]: no method named `hint` found for struct `notify_rust::Notification` in the current scope
  --> /Users/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/meli-0.6.2/src/components/notifications.rs:83:38
   |
83 |                         notification.hint(notify_rust::Hint::Category("email".to_owned()));
   |                                      ^^^^ method not found in `notify_rust::Notification`

error[E0599]: no method named `hint` found for struct `notify_rust::Notification` in the current scope
   --> /Users/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/meli-0.6.2/src/components/notifications.rs:113:38
    |
113 |                         notification.hint(notify_rust::Hint::SoundFile(sound_path.to_owned()));
    |                                      ^^^^ method not found in `notify_rust::Notification`

error[E0599]: no method named `hint` found for struct `notify_rust::Notification` in the current scope
   --> /Users/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/meli-0.6.2/src/components/notifications.rs:116:34
    |
116 |                     notification.hint(notify_rust::Hint::SuppressSound(true));
    |                                  ^^^^ method not found in `notify_rust::Notification`

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
error: failed to compile `meli v0.6.2`, intermediate artifacts can be found at `/var/folders/s1/qvlvgs5513q25ysf1ndt56q40000gn/T/cargo-installtLeaoY`

Caused by:
  could not compile `meli`

To learn more, run the command again with --verbose.
I'm eager to test out meli, but when compiling on macOS 11.2.2 with (stable) Rust 1.50.0, I see the following errors related to the `libc::itimerspec` and `notify_rust::Notification` types: ``` error[E0432]: unresolved import `libc::itimerspec` --> /Users/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/meli-0.6.2/src/unix.rs:43:16 | 43 | use libc::{itimerspec, timespec}; | ^^^^^^^^^^ | | | no `itimerspec` in the root | help: a similar name exists in the module: `timespec` error[E0599]: no method named `hint` found for struct `notify_rust::Notification` in the current scope --> /Users/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/meli-0.6.2/src/components/notifications.rs:78:38 | 78 | notification.hint(notify_rust::Hint::Category("email".to_owned())); | ^^^^ method not found in `notify_rust::Notification` error[E0599]: no method named `hint` found for struct `notify_rust::Notification` in the current scope --> /Users/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/meli-0.6.2/src/components/notifications.rs:83:38 | 83 | notification.hint(notify_rust::Hint::Category("email".to_owned())); | ^^^^ method not found in `notify_rust::Notification` error[E0599]: no method named `hint` found for struct `notify_rust::Notification` in the current scope --> /Users/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/meli-0.6.2/src/components/notifications.rs:113:38 | 113 | notification.hint(notify_rust::Hint::SoundFile(sound_path.to_owned())); | ^^^^ method not found in `notify_rust::Notification` error[E0599]: no method named `hint` found for struct `notify_rust::Notification` in the current scope --> /Users/jon/.cargo/registry/src/github.com-1ecc6299db9ec823/meli-0.6.2/src/components/notifications.rs:116:34 | 116 | notification.hint(notify_rust::Hint::SuppressSound(true)); | ^^^^ method not found in `notify_rust::Notification` error: aborting due to 5 previous errors Some errors have detailed explanations: E0432, E0599. For more information about an error, try `rustc --explain E0432`. error: failed to compile `meli v0.6.2`, intermediate artifacts can be found at `/var/folders/s1/qvlvgs5513q25ysf1ndt56q40000gn/T/cargo-installtLeaoY` Caused by: could not compile `meli` To learn more, run the command again with --verbose. ```
epilys added the
bug
label 3 months ago
Owner

Hello, have you tried the latest commit? I also just released a new version (0.7.0).

Hello, have you tried the latest commit? I also just released a new version (0.7.0).
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.