Closed blshkv closed 7 years ago
U have an old r2 somewhere in your system
On 19 Feb 2017, at 01:02, Anton Bolshakov notifications@github.com wrote:
Hi I'm getting the following error while compiling the latest 1.2.1. Any idea how to fix it?
g++ -fPIC -shared r_bin_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/python2.7 -I/usr/include/python2.7 -march=native -O2 -pipe -DNDEBUG -march=native -O2 -pipe -I/usr/include/libr -o _r_bin.so -lr_magic -lr_socket -lr_io -lr_util -lr_bin -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -L/usr/local/lib -L/usr/pkg/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic r_core.i:1644: Warning 453: Can't apply (RAsmOp OUTPUT). No typemaps are defined. r_core.i:1649: Warning 453: Can't apply (RAsmOp OUTPUT). No typemaps are defined. ... r_asm.so 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/python2.7 -I/usr/include/python2.7 -march=native -O2 -pipe -DNDEBUG -march=native -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 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -L/usr/local/lib -L/usr/pkg/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic r_core_wrap.cxx: In function ‘int RCore_visual_cmd(RCore, char)’: r_core_wrap.cxx:7380:37: error: invalid conversion from ‘char’ to ‘int’ [-fpermissive] return r_core_visual_cmd(self, arg); ^ In file included from r_core_wrap.cxx:3311:0: /usr/include/libr/r_core.h:240:11: note: initializing argument 2 of ‘int r_core_visual_cmd(RCore, int)’ R_API int r_core_visual_cmd(RCore *core, int ch); ^ ... r_core.so ... r_bin.so make[1]: Leaving directory '/var/tmp/portage/dev-libs/radare2-bindings-1.2.1/work/radare2-bindings-1.2.1/python' — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
that was exactly the case, thank you for the hint. I found an old pyc (byte-compiled) files in python site-packages directory. Thank you for the tip.
Hi I'm getting the following error while compiling the latest 1.2.1. Any idea how to fix it?