DNS resolv problem with glibc
PATCH 1/1 DNS resolv problem with glibc
Fix problem with dns resolv, by copying the libnss_dns.so to the rootfs.
Using glibc from external toolchain, name resolving does not work, unless libnss_dns.so is available on the target.
--- toolchain/external-toolchain/ext-tool.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
toolchain/external-toolchain/ext-tool.mk +1 -1
@@ -198,7 +198,7 @@ EXTERNAL_LIBS=libc.so libcrypt.so libdl.so libgcc_s.so libm.so libnsl.so libpthr ifeq ($(BR2_TOOLCHAIN_EXTERNAL_UCLIBC),y) EXTERNAL_LIBS+=ld-uClibc.so else -EXTERNAL_LIBS+=ld-linux.so libnss_files.so +EXTERNAL_LIBS+=ld-linux.so libnss_files.so libnss_dns.so endif ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
Signature · 1 line
1.6.3.3
PATCH 1/1 DNS resolv problem with glibc
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Anders" == Anders Darander <[email protected]> writes:
Anders> Fix problem with dns resolv, by copying the libnss_dns.so to the rootfs. Anders> Using glibc from external toolchain, name resolving does not work, Anders> unless libnss_dns.so is available on the target.
Thanks, committed.
Anders> diff --git a/toolchain/external-toolchain/ext-tool.mk b/toolchain/external-toolchain/ext-tool.mk Anders> index 568ac3a..1f5aa19 100644
Anders> --- a/toolchain/external-toolchain/ext-tool.mk
Anders> +++ b/toolchain/external-toolchain/ext-tool.mk
Anders> @@ -198,7 +198,7 @@ EXTERNAL_LIBS=libc.so libcrypt.so libdl.so libgcc_s.so libm.so libnsl.so libpthr
Anders> ifeq ($(BR2_TOOLCHAIN_EXTERNAL_UCLIBC),y) Anders> EXTERNAL_LIBS+=ld-uClibc.so Anders> else
Anders> -EXTERNAL_LIBS+=ld-linux.so libnss_files.so Anders> +EXTERNAL_LIBS+=ld-linux.so libnss_files.so libnss_dns.so Anders> endif
Anders> ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
Your MTA seems to have swallowed the empty line above the LIBSTDCPP line, causing the patch to not apply. Please check your settings.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 DNS resolv problem with glibc
Quoted 9 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Anders" == Anders Darander <[email protected]> writes:
?Anders> -EXTERNAL_LIBS+=ld-linux.so libnss_files.so ?Anders> +EXTERNAL_LIBS+=ld-linux.so libnss_files.so libnss_dns.so ?Anders> ?endif
?Anders> ?ifeq ($(BR2_INSTALL_LIBSTDCPP),y)Your MTA seems to have swallowed the empty line above the LIBSTDCPP line, causing the patch to not apply. Please check your settings.
Hm, yep, that seems strange.
I'll have look into that...
Thanks for applying the patch anyway!
Regards,
Anders
Signature · 1 line
Anders Darander