Closed blshkv closed 4 months ago
nobody is maintaining this repository right now, you'll find many more errors after fixing this missing include. use the right version or help maintaining it. It's all about updating the vapi files.
On 3 Jun 2020, at 02:31, Anton Bolshakov notifications@github.com wrote:
Hello, I'm trying to compile 4.3.0 (there is no 4.4.0) bindings against 4.4.0 radare2 and facing this problem:
r_core.i:308: Warning 314: 'from' is a python keyword, renaming to '_from' r_core.i:313: Warning 314: 'from' is a python keyword, renaming to '_from' r_core.i:547: Warning 314: 'import' is a python keyword, renaming to '_import' r_core.i:1691: Warning 314: 'del' is a python keyword, renaming to '_del' r_bin_wrap.cxx: In function ‘PyObject _wrap_RBinFile_curplugin_set(PyObject, PyObject)’: r_bin_wrap.cxx:11734:70: error: ‘RBinFile’ {aka ‘struct r_bin_file_t’} has no member named ‘curplugin’ 11734 | arg2 = reinterpret_cast< RBinPlugin >(argp2); if (arg1) (arg1)->curplugin = arg2; resultobj = SWIG_Py_Void(); | ^
~~~~ r_bin_wrap.cxx: In function ‘PyObject _wrap_RBinFile_curplugin_get(PyObject, PyObject)’: r_bin_wrap.cxx:11741:83: error: ‘RBinFile’ {aka ‘struct r_bin_file_t’} has no member named ‘curplugin’ 11741 | arg1 = reinterpret_cast< RBinFile >(argp1); result = (RBinPlugin *) ((arg1)->curplugin); | ^~~~~ make[1]: ** [../rules.mk:34: r_bin.so] Error 1 r_core.i:1529: Warning 453: Can't apply (RAsmOp OUTPUT). No typemaps are defined. r_core.i:1534: Warning 453: Can't apply (RAsmOp *OUTPUT). No typemaps are defined. g++ -fPIC -shared r_core_wrap.cxx -DG_BEGIN_DECLS -DG_END_DECLS -DG_GNUC_CONST -DSWIG_PYTHON_SILENT_MEMLEAK -march=native -O2 -pipe -march=native -O2 -pipe -I/usr/include/python3.7m -I/usr/include/python3.7m -Wno-unused-result -Wsign-compare -march=native -O2 -pipe -DNDEBUG -march=native -O2 -pipe -I/usr/include/libr -I/usr/include/capstone -I/usr/include/libr -march=native -O2 -pipe -frecord-gcc-switches -o _r_core.so -ldl -lr_util -lr_hash -lr_crypto -lr_magic -lr_socket -lr_io -lr_fs -lr_syscall -lr_search -lr_reg -lr_cons -lr_flag -lr_parse -lr_lang -lr_asm -lr_egg -lr_bp -lr_anal -lr_bin -lr_debug -lr_config -lcapstone -lcrypto -lssl -lr_core -L/usr/lib -Wl,-O1 -Wl,--as-needed -Wl,--defsym=gentoo_check_ldflags=0 -L/usr/local/lib -L/usr/pkg/lib -L/usr/lib64 -lpython3.7m -lcrypt -lpthread -ldl -lutil -lm r_core_wrap.cxx:3293:11: fatal error: r_anal_ex.h: No such file or directory 3293 | #include| ^ ~~~~ compilation terminated.— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/radareorg/radare2-bindings/issues/226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG75FUCWOMF3IVY5QAHVTTRUWKWPANCNFSM4NRGHWFQ.
@blshkv what language you want to use? You can check experimental genbind that doesn't use valabind or swig at all: https://github.com/radareorg/radare2-bindings#experimental-radare2-bindgen
@radare there is no "right" version because you have not released it.
@XVilka The initial focus was on python, we are cleaning up Python2 packages in Pentoo, see https://github.com/pentoo/pentoo-overlay/issues/628 Thanks for the link, I'll have a look and decide if we still want to keep unsupported bindings
the "right" version of radare2, aka the one matching the same as r2b
also, valabind can also generate python bindings without swig. Anyway, the whole native bindings thing havent been maintained or tested for a long while. and im fine to do this
On 11 Jun 2020, at 11:52, Anton Bolshakov notifications@github.com wrote:
@radare https://github.com/radare there is no "right" version because you have not released it.
@XVilka https://github.com/XVilka The initial focus was on python, we are cleaning up Python2 packages in Pentoo, see pentoo/pentoo-overlay#628 https://github.com/pentoo/pentoo-overlay/issues/628 Thanks for the link, I'll have a look and decide if we still want to keep unsupported bindings
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/radareorg/radare2-bindings/issues/226#issuecomment-642541043, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG75FQAN7XBMTDIDGGJHE3RWCSM3ANCNFSM4NRGHWFQ.
So this bug is a reminder to release a matching version
shuold be fixed now
Hello, I'm trying to compile 4.3.0 (there is no 4.4.0) bindings against 4.4.0 radare2 and facing this problem:
it may be renamed into r_anal.h (what a weird name)