Skip to content

Got an error while building to SunOS #36

@KrutNA

Description

@KrutNA

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions