Hax4us / java

This package of java (openjdk) is specially for termux users (without rooted phone) But it is unstable or beta version and I will update it soon with stable one
137 stars 123 forks source link

No internet? #4

Open ghost opened 6 years ago

ghost commented 6 years ago

Attempted to build termux from source, however gradle cant be downloaded as services.gradle.org isn't resolving. My device's internet is all good tho :p 20180519_144534 services.gradle.org is a valid domain 20180519_151321

Hax4us commented 6 years ago

strace -o log.txt ./gradlew and give me log.txt

ghost commented 6 years ago

Oops, forgot about strace :p screenshot_20180526-201356 Well this is what its missing, could probably symlink these

ghost commented 6 years ago

Alrighty after making a bunch of symlinks and dirs, theres still one problem

faccessat(AT_FDCWD, "/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)

They don't exist at all because Android...

ghost commented 6 years ago

Ok, these paths are hardcoded into ld-2.19.so, I'll try patching it. Patched it, all relevant libs/directories are ok However it still can't connect to hosts. 20180526_210535

ghost commented 6 years ago

strace -f lol screenshot_20180526-211108 looks like a shitton to patch got this far, not sure how to patch this one 20180526_230636

ok termux glib is outdated... sigh

may aswell copy arch linux arm's /lib into /share/glib

xSrolr4l commented 1 year ago

Can it be a problem with DNS or DNS Libs? because i always have problems with resolving domain names in termux, for example when i installing XenForo and put 'localhost' in Server Database address, php cannot resolve 'localhost' for some reason.