-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Linux 3.10.0-693.2.2.el7.x86_64 seems to somehow expose inconsistent sysctl API #1311
Comments
libc has a million APIs, so it would at least be nice to know which API, which target triple, minimum working example (no dependencies) with instructions to reproduce, etc. |
nightly-x86_64-unknown-linux-gnu sysctl(...) call changed mutability of parameters ... reproduce: try to compile sysctl crate which takes libc and uses sysctl(..) calls |
Please read https://github.com/rust-lang/libc/pull/1312/files . |
The last commit that changed |
rust-semverver also reports no breaking changes between 0.2.50 and 0.2.51 on |
thanks, yet somehow it looks like updating to .51 broke sysctl here. I will try to get you an example today to verify it's not something else |
Looked @ it further, it looks like an issues taht has nothing to do with newest libc release but been there since a bit. confusing, it compiles on other plaforms (BSD & MacOS) Affects stable and nightly ... --- here's the info, code taken out directly from sysctl-rs crate extern crate libc; fn main() {
} error[E0308]: mismatched types error: aborting due to 2 previous errors For more information about this error, try To learn more, run the command again with --verbose. |
Is there a version of libc that compiled that example for that target correctly? |
johalun/sysctl-rs#22 seems like crate was never tested on linux albeit I remember ages ago to have it working |
ewnough said, API changed in mutability on first parameter and ptr/size? and that breaks crates like e.g. sysctl ...
The text was updated successfully, but these errors were encountered: