Skip to contentSkip to conversation

python3-posix-ipc: Add LDSHARED to recipe

PATCH In review Trevor Gamblin 2 participants 2 messages Oct 25, 2021 – Oct 29, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-posix-ipc: Add LDSHARED to recipe

Doing "import posix_ipc" on hardknott builds gives the following error:

ImportError: /usr/lib/python3.9/site-packages/posix_ipc.cpython-39-x86_64-linux-gnu.so: undefined symbol: shm_unlink

Set LDSHARED for the recipe with "-lrt" included to fix this.

---
 .../recipes-devtools/python/python3-posix-ipc_1.0.4.bb          | 2 ++
 1 file changed, 2 insertions(+)
meta-openstack/recipes-devtools/python/python3-posix-ipc_1.0.4.bb +2 -0
index 2e8dca06..cded499d 100644
@@ -20,6 +20,8 @@ DEPENDS += " \
         ${PYTHON_PN}-pip \
         "
 
+LDSHARED="${CCLD} -shared -lrt"
+
 # RDEPENDS_default: 
 RDEPENDS_${PN} += " \
         "
Signature · 1 line
2.33.0
#1 lore raw

In message: [meta-virtualization][m-c-s][hardknott][PATCH] python3-posix-ipc: Add LDSHARED to recipe

Quoted 5 lines · on 25/10/2021 Trevor Gamblin wrote:

Doing "import posix_ipc" on hardknott builds gives the following error:

ImportError: /usr/lib/python3.9/site-packages/posix_ipc.cpython-39-x86_64-linux-gnu.so: undefined symbol: shm_unlink

Set LDSHARED for the recipe with "-lrt" included to fix this.

Thanks for the fix, most appreciated.

This is now merged.

Bruce

Quoted 26 lines
---
 .../recipes-devtools/python/python3-posix-ipc_1.0.4.bb          | 2 ++
 1 file changed, 2 insertions(+)
meta-openstack/recipes-devtools/python/python3-posix-ipc_1.0.4.bb +2 -0
index 2e8dca06..cded499d 100644
@@ -20,6 +20,8 @@ DEPENDS += " \
         ${PYTHON_PN}-pip \
         "
 
+LDSHARED="${CCLD} -shared -lrt"
+
 # RDEPENDS_default: 
 RDEPENDS_${PN} += " \
         "
Signature · 1 line
2.33.0