The sound distributed version control system

#8 could not build error[E0412]: cannot find type `_IO_FILE` in this scope error: could not compile `zstd-seekable`.

Closed on November 9, 2020
mrchico on November 6, 2020

Hi,

I’m encountering this error after running cargo install anu --version 1.0.0-alpha on macos rustc 1.47.0 (18bf6b4f0 2020-10-07):

e
   --> /~/.cargo/registry/src/github.com-1ecc6299db9ec823/zstd-seekable-0.1.0/src/lib.rs:383:62
    |
383 |             let result = ZSTD_seekable_initFile(p, f as *mut _IO_FILE);
    |                                                              ^^^^^^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0412`.
error: could not compile `zstd-seekable`.

Am I missing some dependencies or what’s going on here? I tried to install zstlib with make lib of https://github.com/facebook/zstd, but it did not change the situation.

M-I on November 6, 2020

You’re not alone. I was able to install without much difficulties on debian, but had the same issue on macos (Mojave 10.14.6). Libraries installed with brew install llvm libsodium zstd xxhash pkg-config

pmeunier on November 9, 2020

Thanks for reporting this. This is fixed by zstd-seekable 0.1.1.

pmeunier closed this discussion on November 9, 2020