Compile error on FreeBSD (missing l_sysid) #122

Closed
opened 2020-12-28 14:54:38 +02:00 by jan0sch · 4 comments

Hi,

I just ran into the following compile error on FreeBSD:

warning: unused import: `std::os::unix::io::AsRawFd`
   --> melib/src/lib.rs:180:9
    |
180 |     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:59:34
   |
59 |     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`

System environment:

  • FreeBSD 12.2
  • rustc 1.48.0 (7eac88abb 2020-11-16) (via rustup)

Any ideas how to solve this?

Kind regards,

Hi, I just ran into the following compile error on FreeBSD: ```txt warning: unused import: `std::os::unix::io::AsRawFd` --> melib/src/lib.rs:180:9 | 180 | 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:59:34 | 59 | 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` ``` System environment: - FreeBSD 12.2 - rustc 1.48.0 (7eac88abb 2020-11-16) (via rustup) Any ideas how to solve this? Kind regards,

Hello, thank you for taking the time to report this. It seems adding the missing field under a conditional freebsd-only attribute should be enough; I will try spinning up a freebsd vm.

Hello, thank you for taking the time to report this. It seems adding the missing field under a conditional freebsd-only attribute should be enough; I will try spinning up a freebsd vm.

Update: I set up a VM and am working on a patch

Update: I set up a VM and am working on a patch
Manos Pitsidianakis added the
bug
label 2020-12-29 20:59:19 +02:00

Pushed fix. I also had to set SQLITE3_LIB_DIR=/usr/local/lib to get the compilation working.

Pushed fix. I also had to set `SQLITE3_LIB_DIR=/usr/local/lib` to get the compilation working.

Compiled fine on my box even without setting SQLITE3_LIB_DIR. Thank you very much.

Looking forward to evaluation and usage of meli. :-)

Compiled fine on my box even without setting `SQLITE3_LIB_DIR`. Thank you very much. Looking forward to evaluation and usage of meli. :-)
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#122
There is no content yet.