pkolaczk / fclones

Efficient Duplicate File Finder
MIT License
1.91k stars 71 forks source link

Can't compile on FreeBSD #85

Closed timothywinters closed 2 years ago

timothywinters commented 2 years ago

Tried to compile from source on a FreeBSD jail, got these errors, tried again with the verbose flag to get more information.

Compiling fclones v0.17.0

error[E0063]: missing field l_sysid in initializer of flock --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/fclones-0.17.0/src/lock.rs:31:17 | 31 | let f = libc::flock { | ^^^^^^^^^^^ missing l_sysid

error[E0063]: missing field l_sysid in initializer of flock --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/fclones-0.17.0/src/lock.rs:47:17 | 47 | let f = libc::flock { | ^^^^^^^^^^^ missing l_sysid

error: aborting due to 2 previous errors

For more information about this error, try rustc --explain E0063. error: failed to compile fclones v0.17.0, intermediate artifacts can be foundat /tmp/cargo-installPdO1Nf

Caused by: could not compile fclones

See attached file for full message. FreeBSD fclones Errors.docx

pkolaczk commented 2 years ago

Thank you for the report, I'll take a look.

pkolaczk commented 2 years ago

Should be fine now, but I have no way to test (no freebsd setup anywhere). Can you check if it works for you and if so, I'll cut the next release?

timothywinters commented 2 years ago

Tried compiling that branch, got the same errors. You could try running a version of freeBSD in a virtual machine or container of some variety to test it directly.

pkolaczk commented 2 years ago

"got the same errors." How is that possible, when those lines, where you got compilation errors, have been removed? Can you paste the error message?