Replies: 2 comments 2 replies
-
the
|
Beta Was this translation helpful? Give feedback.
2 replies
-
The result of the experiment: glibc works on termux without proot, the most important thing is to configure it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all.
I recently decided to do an experiment with glibc (the purpose of the experiment is to run it without
proot
or with minimal use of it). Yes, I know that android does not support glibc and mixing glibc with bionic is a bad idea, but hey, no one forbids compiling it under termux prefix separately from bionic.In short, I compiled this miracle, but there was one problem that I did not expect. When launching any glibc program, it says
Bad system call
. I ran the program understrace
and the error was shown to be due tosyscall set_robust_list
.Using libc.so.6 as an example:
After a little googling, I realized that the linux android kernel does not have this function, then I decided to run glibc programs under
proot
for fun, and lo and behold, they worked.After that, I had a question, what does
proot
do to make non-starting commands run and is it possible to implement this in the command itself?Beta Was this translation helpful? Give feedback.
All reactions