Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile failed with aarch64-linux-android-gcc #379

Closed
fuqiangleon opened this issue Apr 30, 2021 · 4 comments
Closed

Compile failed with aarch64-linux-android-gcc #379

fuqiangleon opened this issue Apr 30, 2021 · 4 comments

Comments

@fuqiangleon
Copy link

Hey Sir

I am trying to compile and run Proxychains on Android, but there are some errors below when run the "make" command.
Is there any method to fix this?

Seems "ld" of NDK toolchains does not support " -lpthread" , when I change it to "-pthread", the "make" command is passed. but I don't know if it is successful, could you give some help, please?

Thx

/Users/Username/android-toolchain/arm64/bin/aarch64-linux-android-gcc -fPIC -Wl,--no-as-needed -ldl -lpthread -Wl,--soname,libproxychains4.so
-shared -o libproxychains4.so src/nameinfo.o src/version.o src/core.o src/common.o src/libproxychains.o src/allocator_thread.o src/rdns.o src/hostsreader.o src/hash.o src/debug.o
/Users/Username/android-toolchain/arm64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lpthread
clang90: error: linker command failed with exit code 1 (use -v to see invocation)

@rofl0r
Copy link
Owner

rofl0r commented Apr 30, 2021

i pushed a commit addressing this, please try with current master and report back.

@fuqiangleon
Copy link
Author

@rofl0r It is passed and successful with the current master, thx.

@fuqiangleon
Copy link
Author

one more question, do you know any commands which support Proxychains on android ? :)

@rofl0r
Copy link
Owner

rofl0r commented May 6, 2021

i'd think everything inside termux environment should work with it.

@rofl0r rofl0r closed this as completed May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants