Skip to contentSkip to conversation

pseudo: remove rpath from libpseudo.so

PATCH Superseded Ed Bartosh 2 participants 3 messages Jun 17, 2016

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 pseudo: remove rpath from libpseudo.so

Setting rpath causes clash of host and sdk libc and makes pseudo to crash with relocation error: libpthread.so.0:
symbol __libc_vfork, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

Removing rpath fixes this as it makes pseudo to use only host pthread and libc.

[YOCTO #9761]

---
 meta/recipes-devtools/pseudo/pseudo.inc | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/pseudo/pseudo.inc +3 -0
index 0de7b36..59a44f1 100644
@@ -128,6 +128,9 @@ do_install_append_class-nativesdk () {
 	if $make32; then
 		mkdir -p ${D}${prefix}/lib/pseudo/lib
 		cp lib/pseudo/lib/libpseudo.so ${D}${prefix}/lib/pseudo/lib/.
+		chrpath -d ${D}${prefix}/lib/pseudo/lib/libpseudo.so
+	else
+		chrpath -d ${D}${prefix}/lib/pseudo/lib64/libpseudo.so
 	fi
 }
 
Signature · 1 line
2.1.4
author
#1 lore raw

PATCH v2 1/1 pseudo: remove rpath from libpseudo.so

Setting rpath causes clash of host and sdk libc and makes pseudo to crash with relocation error: libpthread.so.0:
symbol __libc_vfork, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

Removing rpath fixes this as it makes pseudo to use only host pthread and libc.

[YOCTO #9761]

---
 meta/recipes-devtools/pseudo/pseudo.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/pseudo/pseudo.inc +1 -0
index 0de7b36..16c57c9 100644
@@ -129,6 +129,7 @@ do_install_append_class-nativesdk () {
 		mkdir -p ${D}${prefix}/lib/pseudo/lib
 		cp lib/pseudo/lib/libpseudo.so ${D}${prefix}/lib/pseudo/lib/.
 	fi
+	chrpath -d ${D}${prefix}/lib/pseudo/lib*/libpseudo.so
 }
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.1.4
#2 lore raw
Quoted 11 lines · Ed Bartosh

Setting rpath causes clash of host and sdk libc and makes pseudo to crash with relocation error: libpthread.so.0:
symbol __libc_vfork, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

Removing rpath fixes this as it makes pseudo to use only host pthread and libc.

[YOCTO #9761]

Thanks for your work on this, sorry about the hassle (it was my pseudo ldflags patch that broke it, unanticipated consequences).

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics