-
Notifications
You must be signed in to change notification settings - Fork 180
Fix build in wasm{32,64}-unknown-unknown
with zlib
feature
#300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
tbu-
commented
Apr 28, 2022
``` error[E0432]: unresolved import `libc::c_int` --> src/mem.rs:316:13 | 316 | use libc::c_int; | ^^^^^^^^^^^ no `c_int` in the root error[E0432]: unresolved imports `libc::c_int`, `libc::c_uint`, `libc::c_void`, `libc::size_t` --> src/ffi/c.rs:10:16 | 10 | pub use libc::{c_int, c_uint, c_void, size_t}; | ^^^^^ ^^^^^^ ^^^^^^ ^^^^^^ no `size_t` in the root | | | | | | | no `c_void` in the root | | no `c_uint` in the root | no `c_int` in the root error[E0432]: unresolved imports `libc::c_char`, `libc::c_int` --> src/ffi/c.rs:381:16 | 381 | use libc::{c_char, c_int}; | ^^^^^^ ^^^^^ no `c_int` in the root | | | no `c_char` in the root ```
Test failure seems unrelated? |
cc @joshtriplett looks like zlib-ng is still segfaulting? Otherwise @tbu- can you add CI for this? |
This PR depends on rust-lang/libz-sys#94, which isn't in a libz release yet. Should I add a git dependency on that for the CI job I'm adding? |
Hm ok. Personally I'm very wary of C support with the |
It seems to me that there assumptions are only made by std or the libc crate, not by this pull request. This pull request only replaces types from the libc crate with those from std. |
@alexcrichton I can't reproduce that segfault; I tried running the full testsuite for x86_64-unknown-windows-gnu (in wine) and it ran without issues. |
@tbu- We don't actually need the This also fixes #291 . |
Thanks! |
I'm trying to compile an application using
Does anyone know how to fix this? |