radareorg / radare2-bindings

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

Duktape bindings build fail #200

Closed XVilka closed 5 years ago

XVilka commented 5 years ago
gcc -I/usr/include/libr   -DPREFIX=\"/usr\"   -c -o duktape.o duktape.c
In file included from ./duk/duktape.h:174:0,
                 from duk_internal.h:26,
                 from duktape.c:12:
duk_bi_date.c: In function ‘duk__format_parts_iso8601’:
./duk/duk_config.h:2189:26: warning: incompatible implicit declaration of built-in function ‘snprintf’ [enabled by default]
 #define DUK_SNPRINTF     snprintf
                          ^
duk_bi_date.c:967:2: note: in expansion of macro ‘DUK_SNPRINTF’
duk_bi_date_unix.c: In function ‘duk_bi_date_parse_string_strptime’:
./duk/duk_config.h:2189:26: warning: incompatible implicit declaration of built-in function ‘snprintf’ [enabled by default]
 #define DUK_SNPRINTF     snprintf
                          ^
duk_bi_date_unix.c:209:2: note: in expansion of macro ‘DUK_SNPRINTF’
duk_bi_json.c: In function ‘duk__enc_pointer’:
./duk/duk_config.h:2189:26: warning: incompatible implicit declaration of built-in function ‘snprintf’ [enabled by default]
 #define DUK_SNPRINTF     snprintf
                          ^
duk_bi_json.c:1644:2: note: in expansion of macro ‘DUK_SNPRINTF’
duk_error_longjmp.c: In function ‘duk__uncaught_error_aware’:
./duk/duk_config.h:2189:26: warning: incompatible implicit declaration of built-in function ‘snprintf’ [enabled by default]
 #define DUK_SNPRINTF     snprintf
                          ^
duk_error_longjmp.c:33:2: note: in expansion of macro ‘DUK_SNPRINTF’
duktape.c: In function ‘duk_assemble’:
duktape.c:69:11: error: subscripted value is neither array nor pointer nor vector
    op->buf[i] = duk_to_int (ctx, -1);
           ^
duktape.c: In function ‘duk_disasm’:
duktape.c:114:2: error: incompatible type for argument 1 of ‘strncpy’
  strncpy (op->buf_asm, opstr, sizeof (op->buf_asm));
  ^
In file included from duktape.c:5:0:
/usr/include/string.h:132:14: note: expected ‘char * __restrict__’ but argument is of type ‘RStrBuf’
 extern char *strncpy (char *__restrict __dest,
              ^
duktape.c:115:2: error: incompatible type for argument 3 of ‘r_hex_bin2str’
  r_hex_bin2str (buf, op->size, op->buf_hex);
  ^
In file included from /usr/include/libr/r_util.h:43:0,
                 from /usr/include/libr/r_util/r_idpool.h:8,
                 from /usr/include/libr/r_io.h:7,
                 from /usr/include/libr/r_core.h:9,
                 from duktape.c:9:
/usr/include/libr/r_util/r_hex.h:11:11: note: expected ‘char *’ but argument is of type ‘RStrBuf’
 R_API int r_hex_bin2str(const ut8 *in, int len, char *out);
           ^
duktape.c: In function ‘r2plugin’:
duktape.c:121:12: error: ‘R_TRUE’ undeclared (first use in this function)
  int ret = R_TRUE;
            ^
duktape.c:121:12: note: each undeclared identifier is reported only once for each function it appears in
duktape.c:126:10: error: ‘R_FALSE’ undeclared (first use in this function)
   return R_FALSE;
          ^
duktape.c: In function ‘lang_duktape_safe_eval’:
duktape.c:296:8: error: ‘R_FALSE’ undeclared (first use in this function)
   rc = R_FALSE;
        ^
duktape.c:299:8: error: ‘R_TRUE’ undeclared (first use in this function)
   rc = R_TRUE;
        ^
make[1]: *** [duktape.o] Error 1
make[1]: Leaving directory `/home/travis/build/radare/radare2-bindings/libr/lang/p'
make: *** [all] Error 2
travis_time:end:39ba5f4f:start=1541844419947782953,finish=1541844420673367059,duration=725584106
The command "make -j2" failed and exited with 2 during .

Your build has been stopped.