Skip to content

Build failed on Android via Termux #733

@JingMatrix

Description

@JingMatrix

Hello, when I try to build / install r2frida via r2pm -ci r2frida, I get the following build error:

Final report:
 - R2_VERSION = radare2 6.0.2 0 @ linux-arm-64
birth: git.6.0.2 2025-08-12__19:25:07
commit: 6.0.2
options: gpl release -O1 cs:5 cl:2 make
rm -f ext/frida
mkdir -p ext/frida-android-17.2.15/_
rm -f frida-sdk.tar.xz
wget -c -q -O frida-sdk.tar.xz -c https://github.com/frida/frida/releases/download/17.2.15/frida-core-devkit-17.2.15-android-arm64.tar.xz
tar xJvf frida-sdk.tar.xz -C ext/frida-android-17.2.15/_
./
./frida-core.h
./frida-core.gir
./libfrida-core.a
./frida-core-example.c
mv ext/frida-android-17.2.15/_/* ext/frida-android-17.2.15
rmdir ext/frida-android-17.2.15/_
#mv ext/frida ext/frida-android-17.2.15
cd ext && ln -fs frida-android-17.2.15 frida
[ "`readlink ext/frida`" = frida-android-17.2.15 ] || \
	(cd ext && rm -f frida ; ln -fs frida-android-17.2.15 frida)
rm -f src/_agent*
make io_frida.so
make[1]: Entering directory '/data/data/com.termux/files/home/.local/share/radare2/r2pm/git/r2frida'
cc -g src/r2frida-pm.c -Iext/frida  \
	ext/frida/libfrida-core.a -DFRIDA_VERSION_STRING=\"17.2.15\" -DFRIDA_VERSION_MAJOR=17 -fPIC -Wall -Werror -g -I/data/data/com.termux/files/usr/include/libr -DWANT_SESSION_DEBUGGER=1 -fPIC -g -L/data/data/com.termux/files/usr/lib -lr_core -lr_config -ldl -lr_debug -ldl -lr_bin -ldl -lr_lang -ldl -lr_anal -ldl -lr_bp -ldl -lr_egg -ldl -lr_asm -ldl -lr_arch -ldl -lr_esil -ldl -lr_flag -ldl -lr_reg -ldl -lr_search -ldl -lr_syscall -ldl -lr_fs -ldl -lr_magic -ldl -lr_io -ldl -lr_socket -ldl -lr_cons -ldl -lr_muta -ldl -lr_util -ldl -landroid -llog -lm -pthread -Iext/frida -o src/r2frida-pm
mkdir -p node_modules
src/r2frida-pm install
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/home/.local/share/radare2/r2pm/git/r2frida/src/r2frida-pm": cannot locate symbol "EVP_MD_CTX_init" referenced by "/system/lib64/libsqlite.so"...
make[1]: *** [Makefile:270: node_modules] Error 1
make[1]: Leaving directory '/data/data/com.termux/files/home/.local/share/radare2/r2pm/git/r2frida'
make: *** [Makefile:178: all] Error 2

It seems to be a library conflict, how could I solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions