harababurel / gcsf

a FUSE file system based on Google Drive
MIT License
2.36k stars 88 forks source link

cargo build fails on macOS 10.12 #11

Closed melchor629 closed 6 years ago

melchor629 commented 6 years ago

While installing gcsf using the cargo install gcsf command, it fails with this error:

error[E0432]: unresolved import `libc::EREMOTEIO`
 --> src/gcsf/filesystem.rs:7:29
  |
7 | use libc::{ENOENT, ENOTDIR, EREMOTEIO};
  |                             ^^^^^^^^^ no `EREMOTEIO` in the root. Did you mean to use `EREMOTE`?

I have rustc 1.27.0 and cargo 1.26.0 (installed via brew) and osxfuse 3.8.0.

If it helps, I tried to look for this EREMOTEIO constant in libc's documentation for macOS and it doesn't exist. But on Linux it does.

harababurel commented 6 years ago

I replaced EREMOTEIO with EREMOTE and published a new version (0.1.7). Try installing it again and let me know if you still encounter this problem.

melchor629 commented 6 years ago

Pretty fast. It worked, now compiles. Thanks :)