All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pseudo: remove rpath from libpseudo.so
@ 2016-06-17 15:17 Ed Bartosh
  2016-06-17 15:47 ` [PATCH v2] " Ed Bartosh
  0 siblings, 1 reply; 3+ messages in thread
From: Ed Bartosh @ 2016-06-17 15:17 UTC (permalink / raw)
  To: openembedded-core

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]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
 meta/recipes-devtools/pseudo/pseudo.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/pseudo/pseudo.inc b/meta/recipes-devtools/pseudo/pseudo.inc
index 0de7b36..59a44f1 100644
--- a/meta/recipes-devtools/pseudo/pseudo.inc
+++ b/meta/recipes-devtools/pseudo/pseudo.inc
@@ -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
 }
 
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2] pseudo: remove rpath from libpseudo.so
  2016-06-17 15:17 [PATCH] pseudo: remove rpath from libpseudo.so Ed Bartosh
@ 2016-06-17 15:47 ` Ed Bartosh
  2016-06-17 16:55   ` Christopher Larson
  0 siblings, 1 reply; 3+ messages in thread
From: Ed Bartosh @ 2016-06-17 15:47 UTC (permalink / raw)
  To: openembedded-core

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]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
 meta/recipes-devtools/pseudo/pseudo.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/pseudo/pseudo.inc b/meta/recipes-devtools/pseudo/pseudo.inc
index 0de7b36..16c57c9 100644
--- a/meta/recipes-devtools/pseudo/pseudo.inc
+++ b/meta/recipes-devtools/pseudo/pseudo.inc
@@ -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"
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] pseudo: remove rpath from libpseudo.so
  2016-06-17 15:47 ` [PATCH v2] " Ed Bartosh
@ 2016-06-17 16:55   ` Christopher Larson
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Larson @ 2016-06-17 16:55 UTC (permalink / raw)
  To: Ed Bartosh; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 782 bytes --]

On Fri, Jun 17, 2016 at 8:47 AM, Ed Bartosh <ed.bartosh@linux.intel.com>
wrote:

> 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]
>
> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>


Thanks for your work on this, sorry about the hassle (it was my pseudo
ldflags patch that broke it, unanticipated consequences).
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 1283 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-17 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-17 15:17 [PATCH] pseudo: remove rpath from libpseudo.so Ed Bartosh
2016-06-17 15:47 ` [PATCH v2] " Ed Bartosh
2016-06-17 16:55   ` Christopher Larson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.