Skip to content

OpenSSL tries to use GNU specific extensions and fails to build with default -std=c99 #2789

Description

@lem-solutions

The OpenSSL wrap fails to build with the android ndk with error: call to undeclared function 'asm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] for me.

I don't quite understand how this happens since I'd think that preprocessor macros such as # if defined(__GNUC__) && __GNUC__>=2 (openssl-3.0.8/include/crypto/modes.h:42) would guard against this.

Adding c_std=gnu99 to the default options seems to work for me.

If someone wants to investigate this further and needs a minimal reproducible example let me know , I'll set it up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions