rizinorg / jsdec

Simple decompiler for Rizin
55 stars 7 forks source link

Port basic blocks from RzList to RzPVector #57

Open XVilka opened 7 months ago

XVilka commented 7 months ago
FAILED: libcore_pdd.so.p/c_jsdec-plugin.c.o 
cc -Ilibcore_pdd.so.p -I. -I.. -I../c -Isubprojects/libquickjs -I../subprojects/libquickjs -I/usr/include/librz -I/usr/include/librz/sdb -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -fPIC -MD -MQ libcore_pdd.so.p/c_jsdec-plugin.c.o -MF libcore_pdd.so.p/c_jsdec-plugin.c.o.d -o libcore_pdd.so.p/c_jsdec-plugin.c.o -c ../c/jsdec-plugin.c
In file included from /usr/include/librz/rz_lib.h:5,
                 from ../c/jsdec-plugin.c:7:
../c/jsdec-plugin.c: In function ‘js_function_bbs’:
/usr/include/librz/rz_list.h:36:31: error: ‘RzPVector’ {aka ‘struct rz_pvector_t’} has no member named ‘head’
   36 |                 for (it = list->head; it && (pos = it->elem, 1); it = it->next)
      |                               ^~
../c/jsdec-plugin.c:106:9: note: in expansion of macro ‘rz_list_foreach’
  106 |         rz_list_foreach (fcn->bbs, iter, bbi) {
      |         ^~~~~~~~~~~~~~~
[17/18] Compiling C object libcore_pdd.so.p/c_jsdec.c.o
wargio commented 7 months ago

use dev. stable (i.e. master) is supposed to be on par with the latest release.