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

failed to cross-compile for Android #37

Open
iwinux opened this issue Nov 10, 2012 · 4 comments
Open

failed to cross-compile for Android #37

iwinux opened this issue Nov 10, 2012 · 4 comments

Comments

@iwinux
Copy link

iwinux commented Nov 10, 2012

redudp.c has been using tfind / tsearch functions (defined in <search.h>) since commit 709646d, which causes the failure of cross-compiling for Android, because the Android standalone toolchain doesn't provide <search.h>, neither does it implements tfind related functions.

A quick fix can be done by downloading the missing files from here, put them into the redsocks repo, and update Makefile to add these dependencies. (tested on my machine and it works)

What do you think?

@Periphory
Copy link

Hey, where did you find the definitions for node_t? I tried to copy the files as you say but I cannot find definitions of node_t.

@iwinux
Copy link
Author

iwinux commented Jul 30, 2014

@Periphory well, since this was a nearly two-year old issue, things may change drastically :(

@Periphory
Copy link

Hmm, I cannot find a more up-to-date straight build for Android. None of the files that are in the place you linked have been updated since before then so there must be a definition somewhere.

@darkk
Copy link
Owner

darkk commented Feb 1, 2018

I've added following paragraph to README:

When is redsocks probably a wrong tool?

Tell me, is Android build still relevant for your project? Probably, tun2socks (or alike code) would suit better as it has same capabilities and does not require root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants