Skip to content

fail to load on Android 7.1 and lower #1582

@trinity-1686a

Description

@trinity-1686a

i don't think sysinfo can really solve this problem, so i'm opening this more as a documentation for a problem and its workaround.

Since #1543, sysinfo links to setpwent, getpwent and endpwent. On Android, these functions only exists starting with SDK 26 (Android 8.0). Trying to load a rust dynamic library depending on sysinfo on Android 7.1 fails with a UnsatisfiedLinkError exception.

Calls and extern declarations of the problematic function can be entirely removed by not building with the feature user (which is a default feature, but sounds like its rarely needed on android)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions