ARM toolchain statically linked binds /bin/sh#162
ARM toolchain statically linked binds /bin/sh#162arkanoid87 wants to merge 1 commit intowangyu-:masterfrom
Conversation
Android, so you have to handle iptables manually as described in https://github.com/wangyu-/udp2raw-tunnel/blob/master/doc/android_guide.md By applying this patch I've been able to compile and run natively in android using termux g++ using dynamic linking, so I have -a flag working on Android
|
Sorry, can you explain further on how the patch works ? The only differences in this patch is changed The
How does this patch make a difference for |
|
It is not really a patch, it is just a notification that the -a options is not working on android not because the popen is broken, but your binaries statically links a libc version of popen that tries to execute (execve syscall) /bin/sh, that is not existing on all android devices. What I have done to fix the problem is compiling "make dynamic" inside a termux environment, so basically compiling using arm g++ for arm architecture and linking agains local libc, and it works flawlessy. Not sure how to fix this using the toolchain you are using to build the binary bundle, but I think a dynamic linked version could be a better choice for android. Thank you for working on this tools |
Got it, thank you for explanation.
I will try to fix this later. Or provide a dynamically linked version for android (not sure if one dynamic binary fits all android versions). |
/bin/sh is not present in Android, so you have to handle iptables manually as described in
https://github.com/wangyu-/udp2raw-tunnel/blob/master/doc/android_guide.md
By applying this patch I've been able to compile and run natively in
android using termux g++ using dynamic linking, so I have -a flag
working on Android