radareorg / radare2-bindings

Bindings of the r2 api for Valabind and friends
GNU Lesser General Public License v3.0
131 stars 92 forks source link

Failed when using r2pm to install r2api-python #165

Closed Zzorz closed 7 years ago

Zzorz commented 7 years ago

g++ -fPIC -shared r_core_wrap.cxx -DG_BEGIN_DECLS -DG_END_DECLS -DG_GNUC_CONST -DSWIG_PYTHON_SILENT_MEMLEAK -I/root/.config/radare2/prefix/include -I/usr/include/python2.7 -I/usr/include/python2.7 -march=x86-64 -mtune=generic -O2 -pipe -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -I/usr/include/libr -o _r_core.so -lr_crypto -lr_magic -lr_fs -lr_socket -lr_syscall -lr_search -lr_reg -lr_egg -lr_bp -lr_parse -lr_anal -lr_io -lr_lang -lr_bin -lr_hash -lr_debug -lr_asm -lr_flag -lr_util -lr_io -lr_cons -lr_config -lr_core -L/root/.config/radare2/prefix/lib -L/usr/local/lib -L/usr/pkg/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic r_core_wrap.cxx: In function ‘const char RParse_c_file(char)’: r_core_wrap.cxx:9021:29: error: cannot convert ‘char’ to ‘RAnal {aka r_anal_t}’ for argument ‘1’ to ‘char r_parse_c_file(RAnal, const char)’ return r_parse_c_file(path); ^ r_core_wrap.cxx: In function ‘const char RParse_c_string(char)’: r_core_wrap.cxx:9024:30: error: cannot convert ‘char’ to ‘RAnal {aka r_anal_t}’ for argument ‘1’ to ‘char r_parse_c_string(RAnal, const char)’ return r_parse_c_string(str); ^ make: [../rules.mk:34:r_core.so] 错误 1 cd .. ; make install-python make[1]: Entering directory '/root/.config/radare2/r2pm/git/radare2-bindings' test -f python/_r_core.so make[1]: [Makefile:165: install-python] Error 1 make[1]: Leaving directory '/root/.config/radare2/r2pm/git/radare2-bindings' make: *** [../rules.mk:57:install] 错误 2