[oe] [PATCH][meta-oe] crash: fix do_compile relocation error

Changqing Li changqing.li at windriver.com
Mon Jul 2 02:31:05 UTC 2018


error info:

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 crash. otherwise,
with "nis" in /etc/nssswitch.conf, we will met above error.

Signed-off-by: Changqing Li <changqing.li at windriver.com>
---
 meta-oe/recipes-kernel/crash/crash_7.2.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-kernel/crash/crash_7.2.0.bb b/meta-oe/recipes-kernel/crash/crash_7.2.0.bb
index 440a69d..09fe50d 100644
--- a/meta-oe/recipes-kernel/crash/crash_7.2.0.bb
+++ b/meta-oe/recipes-kernel/crash/crash_7.2.0.bb
@@ -11,6 +11,7 @@ LICENSE = "GPLv3"
 LIC_FILES_CHKSUM = "file://COPYING3;md5=d32239bcb673463ab874e80d47fae504"
 
 DEPENDS = "zlib readline coreutils-native"
+DEPENDS_append_libc-glibc = " libnss-nis-native"
 
 SRC_URI = "https://github.com/crash-utility/${BPN}/archive/${PV}.tar.gz;downloadfilename=${BP}.tar.gz \
            http://ftp.gnu.org/gnu/gdb/gdb-7.6.tar.gz;name=gdb;subdir=${BP} \
-- 
2.7.4




More information about the Openembedded-devel mailing list