Skip to content

problem with running make test #16

@lemon57

Description

@lemon57

I installed adb and sdk\ndk and added path to ndk-build to ./zshrc but whatever I have the problem:

Android NDK: WARNING: APP_STL stlport_shared is deprecated and will be removed in the next release. Please switch to either c++_static or c++_shared. See https://developer.android.com/ndk/guides/cpp-support.html for more information.
make[1]: Entering directory `/Users/plrs/code/arminject'
[armeabi-v7a] Compile++ thumb: hook <= main.cpp
[armeabi-v7a] Compile++ thumb: hook <= hook.cpp

jni/libhook/hook.cpp:101:5: error: no matching function for call to 'mprotect'
mprotect(aligned_pointer, pagesize, PROT_WRITE | PROT_READ);
^~~~~~~~
/Users/plrs/Library/android/sdk/ndk-bundle/sysroot/usr/include/sys/mman.h:77:5: note: candidate function not viable: 1st argument ('const void *') would lose const qualifier

int mprotect(void* __addr, size_t __size, int __prot);
^
jni/libhook/hook.cpp:106:5: error: no matching function for call to 'mprotect'
mprotect(aligned_pointer, pagesize, PROT_READ);
^~~~~~~~
/Users/plrs/Library/android/sdk/ndk-bundle/sysroot/usr/include/sys/mman.h:77:5: note: candidate
function not viable: 1st argument ('const void *') would lose const qualifier

int mprotect(void* __addr, size_t __size, int __prot);
^
2 errors generated.

make[1]: *** [obj/local/armeabi-v7a/objs/hook/hook.o] Error 1
make[1]: Leaving directory `/Users/plrs/code/arminject'
make: *** [all] Error 2

What does it mean? What is the problem?

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