Skip to contentSkip to conversation

bcc: add missing build dependency

PATCH New Gyorgy Sarvari 1 participant 1 message Mar 14

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bcc: add missing build dependency

Without xz present, compilation fails with the following error:

| <...>/x86_64-oe-linux-ld: warning: liblzma.so.5, needed by <...>/libbcc.so, not found (try using -rpath or -rpath-link)
| <...>/x86_64-oe-linux-ld: <...>/libbcc.so: undefined reference to `lzma_code@XZ_5.0'
| <...>/x86_64-oe-linux-ld: <...>/libbcc.so: undefined reference to `lzma_end@XZ_5.0'
| <...>/x86_64-oe-linux-ld: <...>/libbcc.so: undefined reference to `lzma_stream_decoder@XZ_5.0'
| collect2: error: ld returned 1 exit status
---
 .../meta-python/recipes-devtools/bcc/bcc_0.35.0.bb               | 1 +
 1 file changed, 1 insertion(+)
meta-oe/dynamic-layers/meta-python/recipes-devtools/bcc/bcc_0.35.0.bb +1 -0
index 4051d7fe11..6e821cca7a 100644
@@ -13,6 +13,7 @@ DEPENDS += "bison-native \
             clang \
             libbpf \
             python3-setuptools-native \
+            xz \
             "
 
 RDEPENDS:${PN} += "bash python3 python3-core python3-setuptools xz"