{"action":"reopened","issue":{"url":"https://api.github.com/repos/iqiyi/xHook/issues/1","repository_url":"https://api.github.com/repos/iqiyi/xHook","labels_url":"https://api.github.com/repos/iqiyi/xHook/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/iqiyi/xHook/issues/1/comments","events_url":"https://api.github.com/repos/iqiyi/xHook/issues/1/events","html_url":"https://github.com/iqiyi/xHook/issues/1","id":315724491,"number":1,"title":"几个编译错误","user":{"login":"Fors3cDream","id":12967925,"avatar_url":"https://avatars3.githubusercontent.com/u/12967925?v=4","gravatar_id":"","url":"https://api.github.com/users/Fors3cDream","html_url":"https://github.com/Fors3cDream","followers_url":"https://api.github.com/users/Fors3cDream/followers","following_url":"https://api.github.com/users/Fors3cDream/following{/other_user}","gists_url":"https://api.github.com/users/Fors3cDream/gists{/gist_id}","starred_url":"https://api.github.com/users/Fors3cDream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fors3cDream/subscriptions","organizations_url":"https://api.github.com/users/Fors3cDream/orgs","repos_url":"https://api.github.com/users/Fors3cDream/repos","events_url":"https://api.github.com/users/Fors3cDream/events{/privacy}","received_events_url":"https://api.github.com/users/Fors3cDream/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-19T04:32:41Z","updated_at":"2018-04-27T05:54:56Z","closed_at":null,"author_association":"NONE","body":"1. xh_core.c中未引入stdio.h导致编译时产生如下错误：\r\njni/xh_core.c:140:5: error: use of undeclared identifier 'FILE'\r\n    FILE                    *fp;\r\n\r\n2. xh_elf.h中一些宏重复定义或者没有定义：\r\n\r\njni/xh_elf.c:61:9: error: 'ELF_R_SYM' macro redefined [-Werror,-Wmacro-redefined]\r\n#define ELF_R_SYM(info)  ELF32_R_SYM(info)\r\n        ^\r\n/Users/killer/AndTool/ndk/platforms/android-14/arch-arm/usr/include/sys/exec_elf.h:559:9: note: previous definition is here\r\n#define ELF_R_SYM       ELF32_R_SYM\r\n        ^\r\njni/xh_elf.c:62:9: error: 'ELF_R_TYPE' macro redefined [-Werror,-Wmacro-redefined]\r\n#define ELF_R_TYPE(info) ELF32_R_TYPE(info)\r\n        ^\r\n/Users/killer/AndTool/ndk/platforms/android-14/arch-arm/usr/include/sys/exec_elf.h:560:9: note: previous definition is here\r\n#define ELF_R_TYPE      ELF32_R_TYPE\r\n        ^\r\njni/xh_elf.c:906:14: error: use of undeclared identifier 'DT_ANDROID_REL'\r\n        case DT_ANDROID_REL:\r\n             ^\r\njni/xh_elf.c:907:14: error: use of undeclared identifier 'DT_ANDROID_RELA'\r\n        case DT_ANDROID_RELA:\r\n             ^\r\njni/xh_elf.c:913:14: error: use of undeclared identifier 'DT_ANDROID_RELSZ'\r\n        case DT_ANDROID_RELSZ:\r\n             ^\r\njni/xh_elf.c:914:14: error: use of undeclared identifier 'DT_ANDROID_RELASZ'\r\n        case DT_ANDROID_RELASZ:\r\n             ^\r\njni/xh_elf.c:927:14: error: use of undeclared identifier 'DT_GNU_HASH'\r\n        case DT_GNU_HASH:\r\n             ^\r\njni/xh_elf.c:1026:28: error: use of undeclared identifier 'R_ARM_JUMP_SLOT'\r\n    if(is_plt && r_type != R_GENERIC_JUMP_SLOT) return 0;\r\n                           ^\r\njni/xh_elf.c:48:29: note: expanded from macro 'R_GENERIC_JUMP_SLOT'\r\n#define R_GENERIC_JUMP_SLOT R_ARM_JUMP_SLOT      //.rel.plt\r\n                            ^\r\njni/xh_elf.c:1027:30: error: use of undeclared identifier 'R_ARM_GLOB_DAT'\r\n    if(!is_plt && (r_type != R_GENERIC_GLOB_DAT && r_type != R_GENERIC_ABS)) return 0;\r\n                             ^\r\njni/xh_elf.c:49:29: note: expanded from macro 'R_GENERIC_GLOB_DAT'\r\n#define R_GENERIC_GLOB_DAT  R_ARM_GLOB_DAT       //.rel.dyn\r\n                            ^\r\njni/xh_elf.c:1027:62: error: use of undeclared identifier 'R_ARM_ABS32'\r\n    if(!is_plt && (r_type != R_GENERIC_GLOB_DAT && r_type != R_GENERIC_ABS)) return 0;\r\n                                                             ^\r\njni/xh_elf.c:50:29: note: expanded from macro 'R_GENERIC_ABS'\r\n#define R_GENERIC_ABS       R_ARM_ABS32          //.rel.dyn\r\n                            ^\r\n10 errors generated.\r\n"}}
{"actor":{"display_login":"caikelun"}}