Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail on NDK #28

Closed
braaandon opened this issue Sep 2, 2021 · 0 comments · Fixed by #29
Closed

Tests fail on NDK #28

braaandon opened this issue Sep 2, 2021 · 0 comments · Fixed by #29

Comments

@braaandon
Copy link
Contributor

braaandon commented Sep 2, 2021

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)```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant