Skip to content

Cannot compile on android due to undeclared functions #1478

@lggcs

Description

@lggcs

I am having an issue compiling libsodium on Android 30, due to the following functions which are are not provided by libc: explicit_bzero, memset_s, memset_explicit. This causes multiple "error: call to undeclared function" in util.c

My proposed fix for the embedded libsodium in PyNaCl was to detect android in configure and manually set no to those so the libsodium uses it's native fallback method and the program compiles correctly, however the dev there suggested I upstream the issue as it occurs in the latest libsodium stable tar.gz as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions