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

Closed
opened 2021-03-22 18:27:57 +02:00 by trombonehero · 2 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. ```
Manos Pitsidianakis added the
bug
label 2021-09-03 14:13:30 +03:00

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).

I was able to compile this on MacOs 21.1.0 both on master and 0.7.x versions.

I was able to compile this on MacOs 21.1.0 both on `master` and `0.7.x` versions.
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#132
There is no content yet.