Reproducible build issues in/around rlimit and libc.
From nightly CI:
error[E0412]: cannot find type `pid_t` in this scope
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/rlimit-0.10.0/src/unix.rs:70:10
|
70 | pid: pid_t,
| ^^^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use libc::pid_t;
|
1 | use std::os::unix::raw::pid_t;
|
error[E0425]: cannot find function `prlimit` in module `C`
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/rlimit-0.10.0/src/unix.rs:96:27
|
96 | let ret = unsafe { C::prlimit(pid, resource.as_raw() as _, new_rlimit_ptr, old_rlimit_ptr) };
| ^^^^^^^ not found in `C`
|
help: consider importing this function
|
1 | use crate::prlimit;
|
help: if you import `prlimit`, refer to it directly
|
96 - let ret = unsafe { C::prlimit(pid, resource.as_raw() as _, new_rlimit_ptr, old_rlimit_ptr) };
96 + let ret = unsafe { prlimit(pid, resource.as_raw() as _, new_rlimit_ptr, old_rlimit_ptr) };
|
Compiling idna v0.4.0
Compiling idna v0.2.3
Compiling xz2 v0.1.7
Compiling cipher v0.4.4
Compiling rand_core v0.5.1
Compiling digest v0.10.7
error[E0425]: cannot find function `__errno_location` in crate `libc`
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/pwd-grp-0.1.0/src/unsafe_.rs:312:41
|
312 | let errno = unsafe { *libc::__errno_location() };
| ^^^^^^^^^^^^^^^^ not found in `libc`
error[E0425]: cannot find value `getresuid` in crate `libc`
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/pwd-grp-0.1.0/src/lmockable.rs:107:6
|
107 | (getresuid),
| ^^^^^^^^^
|
::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.147/src/unix/mod.rs:897:5
|
897 | pub fn geteuid() -> uid_t;
| ------------------------- similarly named function `geteuid` defined here
|
help: a function with a similar name exists
|
107 | (geteuid),
| ~~~~~~~
help: consider importing this function
|
41 | use crate::getresuid;
|
error[E0425]: cannot find value `getresgid` in crate `libc`
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/pwd-grp-0.1.0/src/lmockable.rs:108:6
|
108 | (getresgid),
| ^^^^^^^^^
|
::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.147/src/unix/mod.rs:896:5
|
896 | pub fn getegid() -> gid_t;
| ------------------------- similarly named function `getegid` defined here
|
help: a function with a similar name exists
|
108 | (getegid),
| ~~~~~~~
help: consider importing this function
|
41 | use crate::getresgid;
|
Possibly related to rlimit
upgrade in !1412 (merged)