problem with running make test
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- android, cpp
调研方向
使用 make test 重现失败,并检查第 101 行和第 106 行的 jni/libhook/hook.cpp,以及报告中所示的 Android NDK sysroot/usr/include/sys/mman.h 声明。确定 mprotect 调用拒绝 aligned_pointer 的原因,然后验证项目能够为 armeabi-v7a 成功构建。
由索引模型根据 Issue 内容生成。
描述
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?
- 主要语言
- C++
- 星标
- 452
- 派生
- 155
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
evilsocket/arminject 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
evilsocket/arminject#17 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 15/100
evilsocket/arminject#13 ·
-
难度 3/5 1-2 天 新手友好度 22/100
evilsocket/arminject#12 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
evilsocket/arminject#11 ·
-
难度 5/5 一周以上 新手友好度 20/100
evilsocket/arminject#9 · 5 条评论 ·
查看 evilsocket/arminject 的全部 Issue
相似的 Issue
-
enhancement third-party
难度 2/5 1-3 小时 新手友好度 78/100
pocoproject/poco#5656 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
Type: Bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
documentation enhancement
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
QuantStack/git2cpp#203 ·
维护者通常 1 天内回复