It's this option in make.conf to not download as root or something, some fetch option...duby2291 wrote:Well, I seem to be stuck again. It seems that inside the chroot some programs are able to resolve domain names properly, but others don't. For example rsync seems to work fine, because emerge --sync works. But wget doesn't work, it shows an error resolving names for the different gentoo mirrors. Ping seems to work fine too.
So anybody know why wget can't resolv DNS but other programs can?

Code: Select all
/dev/block/vold/179:17 /mnt/sdcard/_ExternalSD vfat rw,dirsync,nosuid,nodev,noexec,noatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
Code: Select all
brw------- root root 179, 19 2011-05-03 01:12 mmcblk1p3
brw------- root root 179, 18 2011-05-03 01:12 mmcblk1p2
brw------- root root 179, 17 2011-05-03 01:12 mmcblk1p1
brw------- root root 179, 16 2011-05-03 01:12 mmcblk1
Code: Select all
Disk /dev/block/mmcblk1: 15.9 GB, 15931539456 bytes
255 heads, 63 sectors/track, 1936 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk1p1 1 1432 11496093+ c Win95 FAT32 (LBA)
/dev/block/mmcblk1p2 1432 1930 4000000 83 Linux
/dev/block/mmcblk1p3 1930 1937 62050 82 Linux swap

Code: Select all
Gentoo Linux
emerge dev-util/android-sdk-update-manager
run /opt/android-sdk-update-manager/tools/android
install platform-tools package
ADB will be at /opt/android-sdk-update-manager/platform-tools/adb
Edit your .bashrc file and add this line:
export PATH="/opt/android-sdk-update-manager/platform-tools/:${PATH}" Yeah looking back I did not make it clear how I was connecting to the phone. I was actually using adb, the SSHd I was actually referring to was the one in the gentoo chroot. I have used the app versions of the SSHd also. The one in the chroot env is the one that will crash the phone.warrawarra wrote:If you had issues with sshd then why not just use android adb to connect.
There is sshd and telnet apps or use telnetd in android before chrooting.


Seems like reviving an old thread, but the answer to your problem is that Android has certain programs accessing network functions should be linked against bionic libc & not glibc.duby2291 wrote:Well, I seem to be stuck again. It seems that inside the chroot some programs are able to resolve domain names properly, but others don't. For example rsync seems to work fine, because emerge --sync works. But wget doesn't work, it shows an error resolving names for the different gentoo mirrors. Ping seems to work fine too.
So anybody know why wget can't resolv DNS but other programs can?