summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-kernel/lttng/lttng-tools/0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch43
-rw-r--r--meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb1
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch
new file mode 100644
index 0000000000..3a535470da
--- /dev/null
+++ b/meta/recipes-kernel/lttng/lttng-tools/0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch
@@ -0,0 +1,43 @@
1From adafa15a0ea145e1e98f68e2a56512e83f1f6798 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 19 Aug 2025 20:06:21 -0700
4Subject: [PATCH] liblttng-ctl: drop index allocator symbols from version
5 script
6
7The lttng_index_allocator_* functions are implemented in libcommon-gpl,
8not in liblttng-ctl. Since liblttng-ctl does not link against
9libcommon-gpl and does not export these symbols, referencing them in
10liblttng-ctl.sym causes link failures with LLD:
11
12 ld.lld: error: version script assignment of 'global' to symbol
13 'lttng_index_allocator_alloc' failed: symbol not defined
14 ...
15
16Remove these entries from the version script to align the exported ABI
17with the actual symbols provided by liblttng-ctl.
18
19This fixes builds with clang + lld.
20
21Upstream-Status: Submitted [https://review.lttng.org/c/lttng-tools/+/15156]
22Change-Id: I27f40f3d38af7014cf5356230e06aa291c9a3c5f
23Signed-off-by: Khem Raj <raj.khem@gmail.com>
24---
25 src/lib/lttng-ctl/liblttng-ctl.sym | 5 -----
26 1 file changed, 5 deletions(-)
27
28diff --git a/src/lib/lttng-ctl/liblttng-ctl.sym b/src/lib/lttng-ctl/liblttng-ctl.sym
29index 27900ca44..641084750 100644
30--- a/src/lib/lttng-ctl/liblttng-ctl.sym
31+++ b/src/lib/lttng-ctl/liblttng-ctl.sym
32@@ -336,11 +336,6 @@ lttng_health_state
33 lttng_health_thread_name
34 lttng_health_thread_state
35 lttng_ht_seed
36-lttng_index_allocator_alloc
37-lttng_index_allocator_create
38-lttng_index_allocator_destroy
39-lttng_index_allocator_get_index_count
40-lttng_index_allocator_release
41 lttng_kernel_probe_location_address_create
42 lttng_kernel_probe_location_address_get_address
43 lttng_kernel_probe_location_destroy
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb b/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb
index b3383accd9..ed420384bf 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb
@@ -52,6 +52,7 @@ SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \
52 file://0001-gen-ust-events-constructor-change-rpath-to-libdir-li.patch \ 52 file://0001-gen-ust-events-constructor-change-rpath-to-libdir-li.patch \
53 file://0001-eventfd.cpp-Remove-the-scope-resolution-operator.patch \ 53 file://0001-eventfd.cpp-Remove-the-scope-resolution-operator.patch \
54 file://disable-tests2.patch \ 54 file://disable-tests2.patch \
55 file://0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch \
55 " 56 "
56 57
57SRC_URI[sha256sum] = "d8c39c26cec13b7bd82551cd52a22efc358b888e36ebcf9c1b60ef1c3a3c2fd3" 58SRC_URI[sha256sum] = "d8c39c26cec13b7bd82551cd52a22efc358b888e36ebcf9c1b60ef1c3a3c2fd3"