nowsecure / r2frida

Radare2 and Frida better together.
MIT License
1.18k stars 121 forks source link

Error occured while installing #503

Closed DERE-ad2001 closed 1 year ago

DERE-ad2001 commented 1 year ago

ubuntu@ubuntu2004:~/Desktop/FRIDA/r2frida$ r2pm -ci r2frida Cleaning r2frida... Already up to date. clean Done For r2frida /home/ubuntu/.local/share/radare2/r2pm/db/r2frida TGZ= Cleaning up /home/ubuntu/.local/share/radare2/r2pm/git//r2frida... Cloning into 'r2frida'... remote: Enumerating objects: 126, done. remote: Counting objects: 100% (126/126), done. remote: Compressing objects: 100% (119/119), done. remote: Total 126 (delta 0), reused 76 (delta 0), pack-reused 0 Receiving objects: 100% (126/126), 180.48 KiB | 2.82 MiB/s, done. Install Done For r2frida checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for working directories... current using prefix '/usr/local' checking for pkg-config... /usr/bin/pkg-config checking for c compiler... gcc checking exec r2 -v... ok Using PKGCONFIG: /usr/bin/pkg-config checking pkg-config flags for r_core... yes checking for curl... /usr/bin/curl checking for wget... /usr/bin/wget checking for git... /usr/bin/git checking for xz... /usr/bin/xz creating ./config.mk creating ./config.h cleaning temporally files... done

Final report:

frida-sdk.tar.xz 100%[===============================================================================================================>] 39.42M 5.96MB/s in 6.0s

2023-07-03 01:00:30 (6.56 MB/s) - ‘frida-sdk.tar.xz’ saved [41335792/41335792]

tar xJvf frida-sdk.tar.xz -C ext/frida-linux-16.1.0/ ./ ./frida-core-example.c ./frida-core.h ./frida-core.gir ./libfrida-core.a mv ext/frida-linux-16.1.0//* ext/frida-linux-16.1.0 rmdir ext/frida-linux-16.1.0/_

mv ext/frida ext/frida-linux-16.1.0

cd ext && ln -fs frida-linux-16.1.0 frida [ "readlink ext/frida" = frida-linux-16.1.0 ] || \ (cd ext && rm -f frida ; ln -fs frida-linux-16.1.0 frida) make src/r2frida-compile make[1]: Entering directory '/home/ubuntu/.local/share/radare2/r2pm/git/r2frida' cc -g src/r2frida-compile.c -Iext/frida \ -I/usr/include/libr -lr_util ext/frida/libfrida-core.a -lresolv \ -DFRIDA_VERSION_STRING=\"16.1.0\" -DFRIDA_VERSION_MAJOR=16 -DR2FRIDA_VERSION_STRING=\"5.8.8\" -fPIC -Wall -Werror -g -I/usr/include/libr -I/usr/include/capstone -I/usr/include/libr -DWANT_SESSION_DEBUGGER=1 -fPIC -g -lr_core -lr_fs -lr_debug -lr_hash -lr_anal -lr_search -lr_egg -lr_crypto -lr_config -lr_bin -lr_magic -lr_asm -lr_parse -lr_syscall -lr_reg -lr_lang -lr_cons -lr_flag -lr_bp -lr_io -lr_socket -lr_util -Wl,--start-group -lm -Wl,--end-group -pthread -Iext/frida -o src/r2frida-compile src/r2frida-compile.c: In function ‘main’: src/r2frida-compile.c:69:2: error: unknown type name ‘RGetopt’ 69 | RGetopt opt; | ^~~ src/r2frida-compile.c:70:2: error: implicit declaration of function ‘r_getopt_init’; did you mean ‘r_vector_init’? [-Werror=implicit-function-declaration] 70 | r_getopt_init (&opt, argc, argv, "r:SH:cho:qv"); | ^~~~~ | r_vector_init src/r2frida-compile.c:72:14: error: implicit declaration of function ‘r_getopt_next’; did you mean ‘r_getopt’? [-Werror=implicit-function-declaration] 72 | while ((c = r_getopt_next (&opt)) != -1) { | ^~~~~ | r_getopt src/r2frida-compile.c:75:15: error: request for member ‘arg’ in something not a structure or union 75 | proot = opt.arg; | ^ src/r2frida-compile.c:78:16: error: request for member ‘arg’ in something not a structure or union 78 | header = opt.arg; | ^ src/r2frida-compile.c:84:17: error: request for member ‘arg’ in something not a structure or union 84 | outfile = opt.arg; | ^ src/r2frida-compile.c:135:16: error: request for member ‘ind’ in something not a structure or union 135 | if (argc - opt.ind > 1) { | ^ src/r2frida-compile.c:139:14: error: request for member ‘ind’ in something not a structure or union 139 | for (i = opt.ind; stdin_mode || i < argc; i = stdin_mode? i: i + 1) { | ^ cc1: all warnings being treated as errors make[1]: [Makefile:358: src/r2frida-compile] Error 1 make[1]: Leaving directory '/home/ubuntu/.local/share/radare2/r2pm/git/r2frida' make: [Makefile:164: all] Error 2 ERROR: Build failed ubuntu@ubuntu2004:~/Desktop/FRIDA/r2frida$ frida usage: frida [options] target frida: error: target must be specified ubuntu@ubuntu2004:~/Desktop/FRIDA/r2frida$ frida --version 16.1.0

trufae commented 1 year ago

Just dont use a 4 year old radare