-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
Description
Steps to reproduce:
Try to build users crate to sparcv9-sun-solaris or x86_64-sun-solaris archs.
I'm trying to cross compile fselect and used cross for cross compiling to other archs
Expected:
Compiled successfully.
Got:
Compiling users v0.9.1
error[E0425]: cannot find function `getgrouplist` in crate `libc`
--> /cargo/registry/src/github.com-1ecc6299db9ec823/users-0.9.1/src/base.rs:707:15
|
707 | libc::getgrouplist(name.as_ptr(), gid, buff.as_mut_ptr(), &mut count)
| ^^^^^^^^^^^^ help: a function with a similar name exists: `getgroups`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0425`.
error: could not compile `users`.
warning: build failed, waiting for other jobs to finish...
error: build failed
As I checked crate libc, I found in documentation: there is no functions getgrouplist for this archs.
libc/platform-specific-documentation