Skip to contentSkip to conversation

libcap-ng: undefined reference to `pthread_atfork'

PATCH Superseded Trevor Woerner 2 participants 3 messages Oct 25, 2019 – Oct 28, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libcap-ng: undefined reference to `pthread_atfork'

Some hosts need -lpthread in order to link properly (e.g. openSUSE 15.1).

---
 meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb +1 -0
index 6e6de45494..01ea9a1490 100644
@@ -3,6 +3,7 @@ require libcap-ng.inc
 inherit lib_package autotools
 
 EXTRA_OECONF += "--without-python --without-python3"
+LDFLAGS_append_class-native = " -lpthread"
 
 BBCLASSEXTEND = "native nativesdk"
 
Signature · 1 line
2.23.0.37.g745f681289
#1 lore raw
Quoted 13 lines · Trevor Woerner

Some hosts need -lpthread in order to link properly (e.g. openSUSE 15.1).

---
 meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb +0 -0
index 6e6de45494..01ea9a1490 100644

meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb require libcap-ng.inc · line 6

Quoted 4 lines
meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb +1 -0
@@ -3,6 +3,7 @@ require libcap-ng.inc
 inherit lib_package autotools
 
 EXTRA_OECONF += "--without-python --without-python3"
+LDFLAGS_append_class-native = " -lpthread"

Please use -pthread instead of -lpthread

Quoted 11 lines
meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb +0 -1
 BBCLASSEXTEND = "native nativesdk"
 
--

2.23.0.37.g745f681289

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 4 lines · Khem Raj
Quoted 2 lines

EXTRA_OECONF += "--without-python --without-python3"
+LDFLAGS_append_class-native = " -lpthread"

Please use -pthread instead of -lpthread

Okay, v2 sent.