[OE-core] [PATCH] coreutils: fix compile error since use wrong libnss_nis.so

changqing.li at windriver.com changqing.li at windriver.com
Mon Jul 9 07:49:52 UTC 2018


From: Changqing Li <changqing.li at windriver.com>

id: relocation error: /lib/x86_64-linux-gnu/libnss_nis.so.2:
symbol _nsl_default_nss version GLIBC_PRIVATE not defined in
file libnsl.so.1 with link time reference

Recent glibc change removed libnss-nis module from glibc and
a new recipe libnss-nis.bb was added. After this change,
we need to include native libnss_nis in coreutils. otherwise,
with "nis" in host /etc/nssswitch.conf, id will use host
libnss_nis.so, which will cause above error

Signed-off-by: Changqing Li <changqing.li at windriver.com>
---
 meta/recipes-core/coreutils/coreutils_8.29.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/coreutils/coreutils_8.29.bb b/meta/recipes-core/coreutils/coreutils_8.29.bb
index 4704f32..eb9686b 100644
--- a/meta/recipes-core/coreutils/coreutils_8.29.bb
+++ b/meta/recipes-core/coreutils/coreutils_8.29.bb
@@ -8,7 +8,7 @@ LICENSE = "GPLv3+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504\
                     file://src/ls.c;beginline=1;endline=15;md5=1c3f9411e1842a062ce5ce9210beee0e"
 DEPENDS = "gmp libcap"
-DEPENDS_class-native = ""
+DEPENDS_class-native = "libnss-nis-native"
 
 inherit autotools gettext texinfo
 
-- 
2.7.4




More information about the Openembedded-core mailing list