Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ninja: Entering directory `build'
- [1/169] Compiling C object librz/util/librz_util.so.0.4.0-git.p/calc.c.o
- FAILED: librz/util/librz_util.so.0.4.0-git.p/calc.c.o
- ccache cc -Ilibrz/util/librz_util.so.0.4.0-git.p -I. -I.. -Ilibrz -I../librz -Ilibrz/include -I../librz/include -Isubprojects/sdb -I../subprojects/sdb -Isubprojects/sdb/src -I../subprojects/sdb/src -Isubprojects/zlib-1.2.11 -I../subprojects/zlib-1.2.11 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 --std=gnu99 -D_GNU_SOURCE -Werror=sizeof-pointer-memaccess -fvisibility=hidden -fPIC -pthread -DRZ_PLUGIN_INCORE=1 -MD -MQ librz/util/librz_util.so.0.4.0-git.p/calc.c.o -MF librz/util/librz_util.so.0.4.0-git.p/calc.c.o.d -o librz/util/librz_util.so.0.4.0-git.p/calc.c.o -c ../librz/util/calc.c
- In file included from ../librz/util/calc.c:14:
- ../librz/include/rz_util/rz_num.h:12:2: error: unknown type name ‘ut64’
- 12 | ut64 n;
- | ^~~~
- ../librz/include/rz_util/rz_num.h:54:2: error: unknown type name ‘bool’
- 54 | bool under_calc;
- | ^~~~
- ../librz/include/rz_util/rz_num.h:58:2: error: expected specifier-qualifier-list before ‘ut64’
- 58 | ut64 (*callback)(struct rz_num_t *userptr, const char *str, int *ok);
- | ^~~~
- ../librz/include/rz_util/rz_num.h:68:15: error: expected declaration specifiers or ‘...’ before ‘*’ token
- 68 | typedef ut64 (*RzNumCallback)(struct rz_num_t *self, const char *str, int *ok);
- | ^
- ../librz/include/rz_util/rz_num.h:69:62: error: unknown type name ‘ut64’
- 69 | typedef const char *(*RzNumCallback2)(struct rz_num_t *self, ut64, int *ok);
- | ^~~~
- ../librz/include/rz_util/rz_num.h:71:1: error: unknown type name ‘RZ_API’
- 71 | RZ_API RzNum *rz_num_new(RzNumCallback cb, RzNumCallback2 cb2, void *ptr);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:71:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
- 71 | RZ_API RzNum *rz_num_new(RzNumCallback cb, RzNumCallback2 cb2, void *ptr);
- | ^
- ../librz/include/rz_util/rz_num.h:72:7: error: expected ‘;’ before ‘void’
- 72 | RZ_API void rz_num_free(RzNum *num);
- | ^~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:73:7: error: expected ‘;’ before ‘char’
- 73 | RZ_API char *rz_num_units(char *buf, size_t len, ut64 number);
- | ^~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:73:38: error: unknown type name ‘size_t’
- 73 | RZ_API char *rz_num_units(char *buf, size_t len, ut64 number);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:1:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’?
- +++ |+#include <stddef.h>
- 1 | #ifndef RZ_NUM_H
- ../librz/include/rz_util/rz_num.h:73:50: error: unknown type name ‘ut64’
- 73 | RZ_API char *rz_num_units(char *buf, size_t len, ut64 number);
- | ^~~~
- ../librz/include/rz_util/rz_num.h:74:7: error: expected ‘;’ before ‘int’
- 74 | RZ_API int rz_num_conditional(RzNum *num, const char *str);
- | ^~~~
- | ;
- ../librz/include/rz_util/rz_num.h:75:1: error: unknown type name ‘RZ_API’
- 75 | RZ_API ut64 rz_num_calc(RzNum *num, const char *str, const char **err);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:75:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_num_calc’
- 75 | RZ_API ut64 rz_num_calc(RzNum *num, const char *str, const char **err);
- | ^~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:76:7: error: expected ‘;’ before ‘const’
- 76 | RZ_API const char *rz_num_calc_index(RzNum *num, const char *p);
- | ^~~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:77:1: error: unknown type name ‘RZ_API’
- 77 | RZ_API ut64 rz_num_chs(int cylinder, int head, int sector, int sectorsize);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:77:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_num_chs’
- 77 | RZ_API ut64 rz_num_chs(int cylinder, int head, int sector, int sectorsize);
- | ^~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:78:7: error: expected ‘;’ before ‘int’
- 78 | RZ_API int rz_num_is_valid_input(RzNum *num, const char *input_value);
- | ^~~~
- | ;
- ../librz/include/rz_util/rz_num.h:79:1: error: unknown type name ‘RZ_API’
- 79 | RZ_API ut64 rz_num_get_input_value(RzNum *num, const char *input_value);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:79:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_num_get_input_value’
- 79 | RZ_API ut64 rz_num_get_input_value(RzNum *num, const char *input_value);
- | ^~~~~~~~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:80:7: error: expected ‘;’ before ‘const’
- 80 | RZ_API const char *rz_num_get_name(RzNum *num, ut64 n);
- | ^~~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:80:48: error: unknown type name ‘ut64’
- 80 | RZ_API const char *rz_num_get_name(RzNum *num, ut64 n);
- | ^~~~
- ../librz/include/rz_util/rz_num.h:81:7: error: expected ‘;’ before ‘char’
- 81 | RZ_API char *rz_num_as_string(RzNum *___, ut64 n, bool printable_only);
- | ^~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:81:43: error: unknown type name ‘ut64’
- 81 | RZ_API char *rz_num_as_string(RzNum *___, ut64 n, bool printable_only);
- | ^~~~
- ../librz/include/rz_util/rz_num.h:81:51: error: unknown type name ‘bool’
- 81 | RZ_API char *rz_num_as_string(RzNum *___, ut64 n, bool printable_only);
- | ^~~~
- ../librz/include/rz_util/rz_num.h:82:1: error: unknown type name ‘RZ_API’
- 82 | RZ_API ut64 rz_num_tail(RzNum *num, ut64 addr, const char *hex);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:82:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_num_tail’
- 82 | RZ_API ut64 rz_num_tail(RzNum *num, ut64 addr, const char *hex);
- | ^~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:83:1: error: unknown type name ‘RZ_API’
- 83 | RZ_API ut64 rz_num_tail_base(RzNum *num, ut64 addr, ut64 off);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:83:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_num_tail_base’
- 83 | RZ_API ut64 rz_num_tail_base(RzNum *num, ut64 addr, ut64 off);
- | ^~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:84:7: error: expected ‘;’ before ‘void’
- 84 | RZ_API void rz_num_minmax_swap(ut64 *a, ut64 *b);
- | ^~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:84:32: error: unknown type name ‘ut64’
- 84 | RZ_API void rz_num_minmax_swap(ut64 *a, ut64 *b);
- | ^~~~
- ../librz/include/rz_util/rz_num.h:84:41: error: unknown type name ‘ut64’
- 84 | RZ_API void rz_num_minmax_swap(ut64 *a, ut64 *b);
- | ^~~~
- ../librz/include/rz_util/rz_num.h:85:7: error: expected ‘;’ before ‘void’
- 85 | RZ_API void rz_num_minmax_swap_i(int *a, int *b); // XXX this can be a cpp macro :??
- | ^~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:86:1: error: unknown type name ‘RZ_API’
- 86 | RZ_API ut64 rz_num_math(RzNum *num, const char *str);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:86:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_num_math’
- 86 | RZ_API ut64 rz_num_math(RzNum *num, const char *str);
- | ^~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:87:1: error: unknown type name ‘RZ_API’
- 87 | RZ_API ut64 rz_num_get(RzNum *num, const char *str);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:87:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_num_get’
- 87 | RZ_API ut64 rz_num_get(RzNum *num, const char *str);
- | ^~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:88:7: error: expected ‘;’ before ‘int’
- 88 | RZ_API int rz_num_to_bits(char *out, ut64 num);
- | ^~~~
- | ;
- ../librz/include/rz_util/rz_num.h:88:38: error: unknown type name ‘ut64’
- 88 | RZ_API int rz_num_to_bits(char *out, ut64 num);
- | ^~~~
- ../librz/include/rz_util/rz_num.h:89:7: error: expected ‘;’ before ‘int’
- 89 | RZ_API int rz_num_to_trits(char *out, ut64 num); // Rename this please
- | ^~~~
- | ;
- ../librz/include/rz_util/rz_num.h:89:39: error: unknown type name ‘ut64’
- 89 | RZ_API int rz_num_to_trits(char *out, ut64 num); // Rename this please
- | ^~~~
- ../librz/include/rz_util/rz_num.h:90:7: error: expected ‘;’ before ‘int’
- 90 | RZ_API int rz_num_rand(int max);
- | ^~~~
- | ;
- ../librz/include/rz_util/rz_num.h:91:7: error: expected ‘;’ before ‘void’
- 91 | RZ_API void rz_num_irand(void);
- | ^~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:92:1: error: unknown type name ‘RZ_API’
- 92 | RZ_API ut16 rz_num_ntohs(ut16 foo);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:92:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_num_ntohs’
- 92 | RZ_API ut16 rz_num_ntohs(ut16 foo);
- | ^~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:93:1: error: unknown type name ‘RZ_API’
- 93 | RZ_API ut64 rz_get_input_num_value(RzNum *num, const char *input_value);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:93:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_get_input_num_value’
- 93 | RZ_API ut64 rz_get_input_num_value(RzNum *num, const char *input_value);
- | ^~~~~~~~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:94:1: error: unknown type name ‘RZ_API’
- 94 | RZ_API bool rz_is_valid_input_num_value(RzNum *num, const char *input_value);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:94:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_is_valid_input_num_value’
- 94 | RZ_API bool rz_is_valid_input_num_value(RzNum *num, const char *input_value);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:95:7: error: expected ‘;’ before ‘int’
- 95 | RZ_API int rz_num_between(RzNum *num, const char *input_value);
- | ^~~~
- | ;
- ../librz/include/rz_util/rz_num.h:96:1: error: unknown type name ‘RZ_API’
- 96 | RZ_API bool rz_num_is_op(const char c);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:96:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_num_is_op’
- 96 | RZ_API bool rz_num_is_op(const char c);
- | ^~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:97:7: error: expected ‘;’ before ‘int’
- 97 | RZ_API int rz_num_str_len(const char *str);
- | ^~~~
- | ;
- ../librz/include/rz_util/rz_num.h:98:7: error: expected ‘;’ before ‘int’
- 98 | RZ_API int rz_num_str_split(char *str);
- | ^~~~
- | ;
- ../librz/include/rz_util/rz_num.h:99:1: error: unknown type name ‘RZ_API’
- 99 | RZ_API RzList *rz_num_str_split_list(char *str);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:99:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
- 99 | RZ_API RzList *rz_num_str_split_list(char *str);
- | ^
- ../librz/include/rz_util/rz_num.h:100:7: error: expected ‘;’ before ‘void’
- 100 | RZ_API void *rz_num_dup(ut64 n);
- | ^~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:100:25: error: unknown type name ‘ut64’
- 100 | RZ_API void *rz_num_dup(ut64 n);
- | ^~~~
- ../librz/include/rz_util/rz_num.h:101:1: error: unknown type name ‘RZ_API’
- 101 | RZ_API size_t rz_num_base_of_string(RzNum *num, RZ_NONNULL const char *str);
- | ^~~~~~
- ../librz/include/rz_util/rz_num.h:101:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rz_num_base_of_string’
- 101 | RZ_API size_t rz_num_base_of_string(RzNum *num, RZ_NONNULL const char *str);
- | ^~~~~~~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:102:7: error: expected ‘;’ before ‘double’
- 102 | RZ_API double rz_num_cos(double a);
- | ^~~~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:103:7: error: expected ‘;’ before ‘double’
- 103 | RZ_API double rz_num_sin(double a);
- | ^~~~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:104:7: error: expected ‘;’ before ‘double’
- 104 | RZ_API double rz_num_get_float(RzNum *num, const char *str);
- | ^~~~~~~
- | ;
- ../librz/include/rz_util/rz_num.h:106:15: error: unknown type name ‘st64’
- 106 | static inline st64 rz_num_abs(st64 num) {
- | ^~~~
- ../librz/include/rz_util/rz_num.h:106:31: error: unknown type name ‘st64’
- 106 | static inline st64 rz_num_abs(st64 num) {
- | ^~~~
- ../librz/include/rz_util/rz_num.h:114:15: error: unknown type name ‘ut64’
- 114 | static inline ut64 rz_num_align_delta(ut64 v, ut64 alignment) {
- | ^~~~
- ../librz/include/rz_util/rz_num.h:114:39: error: unknown type name ‘ut64’
- 114 | static inline ut64 rz_num_align_delta(ut64 v, ut64 alignment) {
- | ^~~~
- ../librz/include/rz_util/rz_num.h:114:47: error: unknown type name ‘ut64’
- 114 | static inline ut64 rz_num_align_delta(ut64 v, ut64 alignment) {
- | ^~~~
- ../librz/include/rz_util/rz_num.h:126:16: error: unknown type name ‘st8’
- 126 | static inline st##x convert_to_two_complement_##x(ut##x value) { \
- | ^~
- ../librz/include/rz_util/rz_num.h:135:1: note: in expansion of macro ‘CONVERT_TO_TWO_COMPLEMENT’
- 135 | CONVERT_TO_TWO_COMPLEMENT(8)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:126:52: error: unknown type name ‘ut8’
- 126 | static inline st##x convert_to_two_complement_##x(ut##x value) { \
- | ^~
- ../librz/include/rz_util/rz_num.h:135:1: note: in expansion of macro ‘CONVERT_TO_TWO_COMPLEMENT’
- 135 | CONVERT_TO_TWO_COMPLEMENT(8)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:126:16: error: unknown type name ‘st16’
- 126 | static inline st##x convert_to_two_complement_##x(ut##x value) { \
- | ^~
- ../librz/include/rz_util/rz_num.h:136:1: note: in expansion of macro ‘CONVERT_TO_TWO_COMPLEMENT’
- 136 | CONVERT_TO_TWO_COMPLEMENT(16)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:126:52: error: unknown type name ‘ut16’
- 126 | static inline st##x convert_to_two_complement_##x(ut##x value) { \
- | ^~
- ../librz/include/rz_util/rz_num.h:136:1: note: in expansion of macro ‘CONVERT_TO_TWO_COMPLEMENT’
- 136 | CONVERT_TO_TWO_COMPLEMENT(16)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:126:16: error: unknown type name ‘st32’
- 126 | static inline st##x convert_to_two_complement_##x(ut##x value) { \
- | ^~
- ../librz/include/rz_util/rz_num.h:137:1: note: in expansion of macro ‘CONVERT_TO_TWO_COMPLEMENT’
- 137 | CONVERT_TO_TWO_COMPLEMENT(32)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:126:52: error: unknown type name ‘ut32’
- 126 | static inline st##x convert_to_two_complement_##x(ut##x value) { \
- | ^~
- ../librz/include/rz_util/rz_num.h:137:1: note: in expansion of macro ‘CONVERT_TO_TWO_COMPLEMENT’
- 137 | CONVERT_TO_TWO_COMPLEMENT(32)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:126:16: error: unknown type name ‘st64’
- 126 | static inline st##x convert_to_two_complement_##x(ut##x value) { \
- | ^~
- ../librz/include/rz_util/rz_num.h:138:1: note: in expansion of macro ‘CONVERT_TO_TWO_COMPLEMENT’
- 138 | CONVERT_TO_TWO_COMPLEMENT(64)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ../librz/include/rz_util/rz_num.h:126:52: error: unknown type name ‘ut64’
- 126 | static inline st##x convert_to_two_complement_##x(ut##x value) { \
- | ^~
- ../librz/include/rz_util/rz_num.h:138:1: note: in expansion of macro ‘CONVERT_TO_TWO_COMPLEMENT’
- 138 | CONVERT_TO_TWO_COMPLEMENT(64)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- ../librz/util/calc.c: In function ‘term’:
- ../librz/util/calc.c:186:8: error: ‘RzNum’ {aka ‘struct rz_num_t’} has no member named ‘dbz’
- 186 | num->dbz = 1;
- | ^~
- ../librz/util/calc.c: In function ‘prim’:
- ../librz/util/calc.c:227:12: warning: implicit declaration of function ‘rz_num_get’; did you mean ‘rz_str_get’? [-Wimplicit-function-declaration]
- 227 | v = Nset(rz_num_get(num, nc->string_value));
- | ^~~~~~~~~~
- | rz_str_get
- ../librz/util/calc.c: In function ‘rz_num_calc_index’:
- ../librz/util/calc.c:289:6: error: ‘RzNum’ {aka ‘struct rz_num_t’} has no member named ‘nc’
- 289 | num->nc.calc_buf = p;
- | ^~
- ../librz/util/calc.c:290:6: error: ‘RzNum’ {aka ‘struct rz_num_t’} has no member named ‘nc’
- 290 | num->nc.calc_len = strlen(p);
- | ^~
- ../librz/util/calc.c:291:6: error: ‘RzNum’ {aka ‘struct rz_num_t’} has no member named ‘nc’
- 291 | num->nc.calc_i = 0;
- | ^~
- ../librz/util/calc.c:293:12: error: ‘RzNum’ {aka ‘struct rz_num_t’} has no member named ‘nc’
- 293 | return num->nc.calc_buf + num->nc.calc_i;
- | ^~
- ../librz/util/calc.c:293:31: error: ‘RzNum’ {aka ‘struct rz_num_t’} has no member named ‘nc’
- 293 | return num->nc.calc_buf + num->nc.calc_i;
- | ^~
- ../librz/util/calc.c: In function ‘rz_num_calc’:
- ../librz/util/calc.c:485:12: error: ‘RzNum’ {aka ‘struct rz_num_t’} has no member named ‘nc’
- 485 | nc = &num->nc;
- | ^~
- ../librz/util/calc.c:486:6: error: ‘RzNum’ {aka ‘struct rz_num_t’} has no member named ‘dbz’
- 486 | num->dbz = 0;
- | ^~
- ../librz/util/calc.c:509:6: error: ‘RzNum’ {aka ‘struct rz_num_t’} has no member named ‘fvalue’
- 509 | num->fvalue = n.d;
- | ^~
- ../librz/util/calc.c: In function ‘rz_num_calc_index’:
- ../librz/util/calc.c:294:1: warning: control reaches end of non-void function [-Wreturn-type]
- 294 | }
- | ^
- ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement