Compile error on FreeBSD (missing `l_sysid`) #92

Closed
opened 11 months ago 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,
Owner

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

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

Update: I set up a VM and am working on a patch
epilys added the
bug
label 11 months ago
epilys referenced this issue from a commit 11 months ago
Owner

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

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. :-)
jan0sch closed this issue 11 months ago
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.