{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2-bindings/issues/204","repository_url":"https://api.github.com/repos/radare/radare2-bindings","labels_url":"https://api.github.com/repos/radare/radare2-bindings/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2-bindings/issues/204/comments","events_url":"https://api.github.com/repos/radare/radare2-bindings/issues/204/events","html_url":"https://github.com/radare/radare2-bindings/issues/204","id":382256086,"node_id":"MDU6SXNzdWUzODIyNTYwODY=","number":204,"title":"`r_print.h` not found.","user":{"login":"bartoszek","id":1213348,"node_id":"MDQ6VXNlcjEyMTMzNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/1213348?v=4","gravatar_id":"","url":"https://api.github.com/users/bartoszek","html_url":"https://github.com/bartoszek","followers_url":"https://api.github.com/users/bartoszek/followers","following_url":"https://api.github.com/users/bartoszek/following{/other_user}","gists_url":"https://api.github.com/users/bartoszek/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszek/subscriptions","organizations_url":"https://api.github.com/users/bartoszek/orgs","repos_url":"https://api.github.com/users/bartoszek/repos","events_url":"https://api.github.com/users/bartoszek/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-19T15:06:09Z","updated_at":"2018-11-20T13:39:23Z","closed_at":null,"author_association":"NONE","body":"After radare/radare2@4a2bc97a35c7e25962da7ffe54b4092fdeaf38fa `r_print.h` got moved to `include/r_util` witch breaks bindings build.\r\n```\r\ng++ -fPIC -shared r_core_wrap.cxx -DG_BEGIN_DECLS -DG_END_DECLS -DG_GNUC_CONST -DSWIG_PYTHON_SILENT_MEMLEAK -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 -I/usr/include/capstone -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/local/lib -L/usr/pkg/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic\r\nperl: warning: Setting locale failed.\r\nperl: warning: Please check that your locale settings:\r\n        LANGUAGE = \"\",\r\n        LC_ALL = (unset),\r\n        LC_MEASUREMENT = \"pl_PL.UTF-8\",\r\n        LC_PAPER = \"pl_PL.UTF-8\",\r\n        LC_MONETARY = \"pl_PL.UTF-8\",\r\n        LC_NUMERIC = \"pl_PL.UTF-8\",\r\n        LC_TIME = \"pl_PL.UTF-8\",\r\n        LANG = \"python\"\r\n    are supported and installed on your system.\r\nperl: warning: Falling back to the standard locale (\"C\").\r\nr_core_wrap.cxx:3285:11: fatal error: r_print.h: No such file or directory\r\n  #include <r_print.h>\r\n           ^~~~~~~~~~~\r\ncompilation terminated.\r\nmake: *** [../rules.mk:34: r_core.so]\r\n```"},"comment":{"url":"https://api.github.com/repos/radare/radare2-bindings/issues/comments/440276534","html_url":"https://github.com/radare/radare2-bindings/issues/204#issuecomment-440276534","issue_url":"https://api.github.com/repos/radare/radare2-bindings/issues/204","id":440276534,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDI3NjUzNA==","user":{"login":"bartoszek","id":1213348,"node_id":"MDQ6VXNlcjEyMTMzNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/1213348?v=4","gravatar_id":"","url":"https://api.github.com/users/bartoszek","html_url":"https://github.com/bartoszek","followers_url":"https://api.github.com/users/bartoszek/followers","following_url":"https://api.github.com/users/bartoszek/following{/other_user}","gists_url":"https://api.github.com/users/bartoszek/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszek/subscriptions","organizations_url":"https://api.github.com/users/bartoszek/orgs","repos_url":"https://api.github.com/users/bartoszek/repos","events_url":"https://api.github.com/users/bartoszek/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszek/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T13:39:23Z","updated_at":"2018-11-20T13:39:23Z","author_association":"NONE","body":"I've tried to bend `r_print.vapi` a bit.\r\n```\r\ndiff --git a/vapi/r_print.vapi b/vapi/r_print.vapi\r\nindex 345f42b..df36042 100644\r\n--- a/vapi/r_print.vapi\r\n+++ b/vapi/r_print.vapi\r\n@@ -1,7 +1,7 @@\r\n /* radare - LGPL - Copyright 2010-2015 pancake */\r\n\r\n [Compact]\r\n-[CCode (cheader_filename=\"r_print.h\", cprefix=\"r_print_\", cname=\"RPrint\", free_function=\"r_print_free\")]\r\n+[CCode (cheader_filename=\"r_util/r_print.h\", cprefix=\"r_print_\", cname=\"RPrint\", free_function=\"r_print_free\")]\r\n public class Radare.RPrint {\r\n        /* constructor */\r\n        public RPrint();\r\n```\r\nit gets throught\r\n```\r\ng++ -fPIC -shared r_core_wrap.cxx -DG_BEGIN_DECLS -DG_END_DECLS -DG_GNUC_CONST -DSWIG_PYTHON_SILENT_MEMLEAK -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 -I/usr/include/capstone -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/local/lib -L/usr/pkg/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic\r\nperl: warning: Setting locale failed.\r\nperl: warning: Please check that your locale settings:\r\n        LANGUAGE = \"\",\r\n        LC_ALL = (unset),\r\n        LC_MEASUREMENT = \"pl_PL.UTF-8\",\r\n        LC_PAPER = \"pl_PL.UTF-8\",\r\n        LC_MONETARY = \"pl_PL.UTF-8\",\r\n        LC_NUMERIC = \"pl_PL.UTF-8\",\r\n        LC_TIME = \"pl_PL.UTF-8\",\r\n        LANG = \"python\"\r\n    are supported and installed on your system.\r\nperl: warning: Falling back to the standard locale (\"C\").\r\nIn file included from /usr/include/libr/sdb/sdb.h:14,\r\n                 from /usr/include/libr/sdb.h:1,\r\n                 from r_core_wrap.cxx:3282:\r\n/usr/include/libr/sdb/sdbht.h: In function 'char* sdbkv_key(const SdbKv*)'\r\n/usr/include/libr/sdb/sdbht.h:15:18: error: invalid conversion from 'void*' to 'char*' [-fpermissive]\r\n  return kv->base.key;\r\n         ~~~~~~~~~^~~\r\nr_core_wrap.cxx: In function 'void RBin_iobind(RBin*, RIO*)'\r\nr_core_wrap.cxx:8668:3: error: 'r_bin_iobind' was not declared in this scope\r\n   r_bin_iobind(self, io);\r\n   ^~~~~~~~~~~~\r\nr_core_wrap.cxx:8668:3: note: suggested alternative: 'r_bin_bind'\r\n   r_bin_iobind(self, io);\r\n   ^~~~~~~~~~~~\r\n   r_bin_bind\r\nr_core_wrap.cxx: In function 'int RBin_load(RBin*, char*, long long unsigned int, long long unsigned int, int, int, int)'                                                                                                                     \r\nr_core_wrap.cxx:8680:10: error: 'r_bin_load' was not declared in this scope\r\n   return r_bin_load(self, file, baddr, laddr, xtr_idx, fd, rawstr);\r\n          ^~~~~~~~~~\r\nr_core_wrap.cxx:8680:10: note: suggested alternative: 'r_sign_load'\r\n   return r_bin_load(self, file, baddr, laddr, xtr_idx, fd, rawstr);\r\n          ^~~~~~~~~~\r\n          r_sign_load\r\nr_core_wrap.cxx: In function 'int RBin_select_idx(RBin*, char*, int)'\r\nr_core_wrap.cxx:8692:10: error: 'r_bin_select_idx' was not declared in this scope\r\n   return r_bin_select_idx(self, name, idx);\r\n          ^~~~~~~~~~~~~~~~\r\nr_core_wrap.cxx:8692:10: note: suggested alternative: 'RBin_select_idx'\r\n   return r_bin_select_idx(self, name, idx);\r\n          ^~~~~~~~~~~~~~~~\r\n          RBin_select_idx\r\nr_core_wrap.cxx: In function 'int RBin_is_stripped(RBin*)'\r\nr_core_wrap.cxx:8798:10: error: 'r_bin_is_stripped' was not declared in this scope\r\n   return r_bin_is_stripped(self);\r\n          ^~~~~~~~~~~~~~~~~\r\nr_core_wrap.cxx:8798:10: note: suggested alternative: 'RBin_is_stripped'\r\n   return r_bin_is_stripped(self);\r\n          ^~~~~~~~~~~~~~~~~\r\n          RBin_is_stripped\r\nr_core_wrap.cxx: In function 'int RBin_has_dbg_linenums(RBin*)'\r\nr_core_wrap.cxx:8804:10: error: 'r_bin_has_dbg_linenums' was not declared in this scope\r\n   return r_bin_has_dbg_linenums(self);\r\n          ^~~~~~~~~~~~~~~~~~~~~~\r\nr_core_wrap.cxx:8804:10: note: suggested alternative: 'RBin_has_dbg_linenums'\r\n   return r_bin_has_dbg_linenums(self);\r\n          ^~~~~~~~~~~~~~~~~~~~~~\r\n          RBin_has_dbg_linenums\r\nr_core_wrap.cxx: In function 'int RBin_has_dbg_syms(RBin*)'\r\nr_core_wrap.cxx:8807:10: error: 'r_bin_has_dbg_syms' was not declared in this scope\r\n   return r_bin_has_dbg_syms(self);\r\n          ^~~~~~~~~~~~~~~~~~\r\nr_core_wrap.cxx:8807:10: note: suggested alternative: 'RBin_has_dbg_syms'\r\n   return r_bin_has_dbg_syms(self);\r\n          ^~~~~~~~~~~~~~~~~~\r\n          RBin_has_dbg_syms\r\nr_core_wrap.cxx: In function 'int RBin_has_dbg_relocs(RBin*)'\r\nr_core_wrap.cxx:8810:10: error: 'r_bin_has_dbg_relocs' was not declared in this scope\r\n   return r_bin_has_dbg_relocs(self);\r\n          ^~~~~~~~~~~~~~~~~~~~\r\nr_core_wrap.cxx:8810:10: note: suggested alternative: 'RBin_has_dbg_relocs'\r\n   return r_bin_has_dbg_relocs(self);\r\n          ^~~~~~~~~~~~~~~~~~~~\r\n          RBin_has_dbg_relocs\r\nr_core_wrap.cxx: In function 'RBinObject* RBin_get_object(RBin*)'\r\nr_core_wrap.cxx:8819:10: error: 'r_bin_get_object' was not declared in this scope\r\n   return r_bin_get_object(self);\r\n          ^~~~~~~~~~~~~~~~\r\nr_core_wrap.cxx:8819:10: note: suggested alternative: 'RBin_get_object'\r\n   return r_bin_get_object(self);\r\n          ^~~~~~~~~~~~~~~~\r\n          RBin_get_object\r\nr_core_wrap.cxx: In function 'bool RParse_filter(RParse*, RFlag*, char*, char*, int, bool)'\r\nr_core_wrap.cxx:8834:31: error: invalid conversion from 'RFlag*' {aka 'r_flag_t*'} to 'long long unsigned int' [-fpermissive]\r\n   return r_parse_filter(self, flag, data, str, len, bigendian);\r\n                               ^~~~\r\nr_core_wrap.cxx:8834:37: error: cannot convert 'char*' to 'RFlag*' {aka 'r_flag_t*'}\r\n   return r_parse_filter(self, flag, data, str, len, bigendian);\r\n                                     ^~~~\r\nIn file included from /usr/include/libr/r_asm.h:9,\r\n                 from /usr/include/libr/r_egg.h:4,\r\n                 from /usr/include/libr/r_debug.h:10,\r\n                 from r_core_wrap.cxx:3287:\r\n/usr/include/libr/r_parse.h:62:55: note:   initializing argument 3 of 'int r_parse_filter(RParse*, long long unsigned int, RFlag*, char*, char*, int, bool)'\r\n R_API int r_parse_filter(RParse *p, ut64 addr, RFlag *f, char *data, char *str, int len, bool big_endian);\r\n                                                ~~~~~~~^\r\nr_core_wrap.cxx: In function 'PyObject* _wrap_RIODesc_flags_set(PyObject*, PyObject*)'\r\nr_core_wrap.cxx:29313:54: error: 'RIODesc' {aka 'struct r_io_desc_t'} has no member named 'flags'\r\n   arg2 = static_cast< int >(val2); if (arg1) (arg1)->flags = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail:\r\n                                                      ^~~~~\r\nr_core_wrap.cxx: In function 'PyObject* _wrap_RIODesc_flags_get(PyObject*, PyObject*)'\r\nr_core_wrap.cxx:29319:73: error: 'RIODesc' {aka 'struct r_io_desc_t'} has no member named 'flags'\r\n    arg1 = reinterpret_cast< RIODesc * >(argp1); result = (int) ((arg1)->flags);\r\n                                                                         ^~~~~\r\nr_core_wrap.cxx: In function 'PyObject* _wrap_RBinSection_srwx_set(PyObject*, PyObject*)'\r\nr_core_wrap.cxx:32802:71: error: 'RBinSection' {aka 'struct r_bin_section_t'} has no member named 'srwx'\r\n     arg2 = static_cast< unsigned long long >(val2); if (arg1) (arg1)->srwx = arg2; resultobj = SWIG_Py_Void(); return resultobj;\r\n                                                                       ^~~~\r\nr_core_wrap.cxx: In function 'PyObject* _wrap_RBinSection_srwx_get(PyObject*, PyObject*)'\r\nr_core_wrap.cxx:32809:92: error: 'RBinSection' {aka 'struct r_bin_section_t'} has no member named 'srwx'\r\n    arg1 = reinterpret_cast< RBinSection * >(argp1); result = (unsigned long long) ((arg1)->srwx);\r\n                                                                                            ^~~~\r\nmake[1]: *** [../rules.mk:34: r_core.so] Błąd 1\r\nmake[1]: Opuszczenie katalogu '/home/bartus/AUR/radare2-bindings-git/src/radare2-bindings-git/python'\r\n```\r\nPerhaps there is more to be fixed that `r_print.vapi`..."}}
{"actor":{"display_login":"bartoszek"}}