-
Notifications
You must be signed in to change notification settings - Fork 348
Trying to ping anything returns "System error" #418
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Yeah, it's a known glibc bug the developers refuse to fix. The FAQ mentions it here: https://landley.net/toybox/faq.html#:~:text=dlopen It's a widely known issue with glibc: That's why all the prebuilt binaries I ship are linked against musl-libc. Bionic does not have this problem either, nor did uClibc, nor do the C libraries on freebsd or macos... it's a unique failing of glibc due to extremely poor design decisions in the history of glibc development. In theory I have a "dynamic" package in scripts/root that tries to build a dynamically linked mkroot instead of a statically linked one (copying all the toolchain's shared libraries into the target), but it's bit-rotted a bit since I last tried it a couple OS upgrades ago. (For one thing it's not handling symlinks with absolute paths properly.) I'll try to fix it up this afternoon, then you can probably do "scripts/mkroot.sh dynamic" and get a working host build? Or you could grab an alpine VM (or any other musl based system) and it should work out of the box. Or use one of the musl cross compilers on the website. Or the Android NDK might work as a cross compiler with the extra symlink in the FAQ? (There was an issue with booting as PID 1 under QEMU but Elliott fixed that upstream a while back and it shouldn't apply to chroots)... |
Thanks! |
Hi,
I've just compiled toybox and ran
scripts/mkroot.sh
.Trying to ping or wget anything returns a system error:
Trying to ping an IP will work, and when running
host landley.net
will return its IP.Am I missing something?
The text was updated successfully, but these errors were encountered: