rizinorg / rz-ghidra

Deep ghidra decompiler and sleigh disassembler integration for rizin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Build Error] Use of undeclared identifier 'rz_bin_object_get_string_at'

berkedel opened this issue · comments

Following the README and building from the latest commit and got the following error. Does anyone know the workaround to solve this?

[ 38%] Building CXX object CMakeFiles/core_ghidra.dir/src/RizinScope.cpp.o
/Users/akhmad.syaikhul/Documents/re/repo/rz-ghidra/src/RizinScope.cpp:443:10: error: use of undeclared identifier 'rz_bin_object_get_string_at'
                        str = rz_bin_object_get_string_at(bf->o, flag->offset, true);
                              ^
1 error generated.
make[2]: *** [CMakeFiles/core_ghidra.dir/src/RizinScope.cpp.o] Error 1
make[1]: *** [CMakeFiles/core_ghidra.dir/all] Error 2
make: *** [all] Error 2

This sounds like it is trying to build against a very old rizin version. Which version do you have and where did you install it from?

This is my rizin version

$ rizin -V
0.4.1  rizin
0.4.1  rz_analysis
0.4.1  rz_lib
0.4.1  rz_egg
0.4.1  rz_asm
0.4.1  rz_bin
0.4.1  rz_cons
0.4.1  rz_flag
0.4.1  rz_core
0.4.1  rz_crypto
0.4.1  rz_bp
0.4.1  rz_debug
0.4.1  rz_main
0.4.1  rz_msg_digest
0.4.1  rz_io
0.4.1  rz_parse
0.4.1  rz_reg
0.4.1  rz_sign
0.4.1  rz_search
0.4.1  rz_syscall
0.4.1  rz_util
0.4.1  rz_diff
0.4.1  rz_demangler
$ rizin -v
rizin 0.4.1 @ darwin-arm-64, package: 0.4.1 (Homebrew)

And the installation path

which rizin
/opt/homebrew/bin/rizin

Should I downgrade the rizin version to 0.4.0?

No, but you can either checkout rz-ghidra tag rz-0.4.1 which is compatible with it, or compile rizin dev from source if you want to use rz-ghidra dev.

Thank you. Able to build now after checkout the correct version.