Skip to content

Conversation

@huajingyun01
Copy link

@huajingyun01 huajingyun01 commented May 16, 2024

Libc needs to be updated to 0.2.155 because websocat compiles based on musl loongarch64 and reports an error:

error[E0573]: expected type, found function `stat64`
  --> /home/alpine/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.153/src/unix/linux_like/linux/musl/lfs64.rs:95:67
   |
95 | pub unsafe extern "C" fn lstat64(path: *const ::c_char, buf: *mut ::stat64) -> ::c_int {
   |                                                                   ^^^^^^^^ not a type

error[E0412]: cannot find type `c_char` in the crate root
   --> /home/alpine/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.153/src/unix/linux_like/linux/musl/lfs64.rs:219:52
    |
219 | pub unsafe extern "C" fn stat64(pathname: *const ::c_char, statbuf: *mut ::stat64) -> ::c_int {
    |                                                    ^^^^^^
    |
   ::: /home/alpine/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.153/src/unix/mod.rs:6:1

Libc release notes : https://github.com/rust-lang/libc/releases

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant