Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.
This repository was archived by the owner on Sep 28, 2025. It is now read-only.

Tests fail on NDK #28

@braaandon

Description

@braaandon

I am targeting the Android platform and when building my library against funchook, it works fine without tests (and I can successfully hook functions) but fails when enabled with the following:

[ 89%] Building C object third_party/funchook/test/CMakeFiles/funchook_test_static.dir/test_main.c.o
third_party/funchook/test/test_main.c:445:52: error: address of overloaded function 'open' is ambiguous
    open_func = (int (*)(const char*, int, mode_t))open;
                                                   ^~~~
/usr/include/bits/fortify/fcntl.h:74:5: note: candidate address cannot be taken because candidate address cannot be taken because parameter 1 has pass_object_size attribute
int open(const char* const __pass_object_size pathname, int flags, mode_t modes)
    ^
/usr/include/bits/fortify/fcntl.h:63:5: note: candidate address cannot be taken because candidate address cannot be taken because parameter 1 has pass_object_size attribute
int open(const char* const __pass_object_size pathname, int flags)```

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