meli (melib) fails to compile on FreeBSD (possible issue with libc) #129

Closed
opened 2021-01-28 11:54:22 +02:00 by cstrotm · 2 comments

Hi,

I'm trying to compile meli on FreeBSD 12.2, the compile run errors out on "melib":

make: "/home/cas/src/meli-alpha-0.6.2/Makefile" line 37: warning: "git show-ref -s --abbrev HEAD" returned non-zero status
   Compiling melib v0.6.2 (/home/cas/src/meli-alpha-0.6.2/melib)
warning: unused import: `std::os::unix::io::AsRawFd`
   --> melib/src/lib.rs:149:9
    |
149 |     use std::os::unix::io::AsRawFd;
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_imports)]` on by default

error[E0063]: missing field `l_sysid` in initializer of `flock`
  --> melib/src/backends/mbox.rs:61:34
   |
61 |     let mut flock: libc::flock = libc::flock {
   |                                  ^^^^^^^^^^^ missing `l_sysid`

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0063`.
error: could not compile `melib`

To learn more, run the command again with --verbose.
*** Error code 101

Stop.
make: stopped in /home/cas/src/meli-alpha-0.6.2

rustc 1.48.0

Possibly in issue with BSD libc vs. GNU libc?

Greetings

Carsten

Hi, I'm trying to compile meli on FreeBSD 12.2, the compile run errors out on "melib": ``` make: "/home/cas/src/meli-alpha-0.6.2/Makefile" line 37: warning: "git show-ref -s --abbrev HEAD" returned non-zero status Compiling melib v0.6.2 (/home/cas/src/meli-alpha-0.6.2/melib) warning: unused import: `std::os::unix::io::AsRawFd` --> melib/src/lib.rs:149:9 | 149 | use std::os::unix::io::AsRawFd; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default error[E0063]: missing field `l_sysid` in initializer of `flock` --> melib/src/backends/mbox.rs:61:34 | 61 | let mut flock: libc::flock = libc::flock { | ^^^^^^^^^^^ missing `l_sysid` error: aborting due to previous error; 1 warning emitted For more information about this error, try `rustc --explain E0063`. error: could not compile `melib` To learn more, run the command again with --verbose. *** Error code 101 Stop. make: stopped in /home/cas/src/meli-alpha-0.6.2 ``` rustc 1.48.0 Possibly in issue with BSD libc vs. GNU libc? Greetings Carsten

Hi, thank you for the report. a fix was introduced in 1be30968ca

Hi, thank you for the report. a fix was introduced in 1be30968cacfe8632a98419e1a530470e54a14c5

Thank you, I've checked out the current source, and it compiles and works now. Thanks!

Thank you, I've checked out the current source, and it compiles and works now. Thanks!
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#129
There is no content yet.