From d6eab65904b08d2400e9b5de6b16fd341be57dff Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Thu, 2 Jan 2025 12:58:56 +0000 Subject: [PATCH] libcgroup.map: include cgroup_get_cgroup_name Using cgroup_get_cgroup_name() API, fails with: gcc -o cgrp_get_cgrp_name cgrp_get_cgrp_name.c -lcgroup /usr/bin/ld: /tmp/ccIyBv5c.o: in function `main': cgrp_get_cgrp_name.c:(.text+0xaa): undefined reference to `cgroup_get_cgroup_name' collect2: error: ld returned 1 exit status The API was introduced by commit ca32d88ef56b1 ("wrappers: Add a cgroup_get_cgroup_name API") but missed adding it to libcgroup.map file, causing the linkage issue. Fix the issue by adding the API at the libcgroup.map under version it was introduced. Fixes: https://github.com/libcgroup/libcgroup/issues/459 Reported-by: Ron Nazarov Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka (cherry picked from commit 861a9369d234739a9a3bcf8419ba6be9c8af40dc) --- src/libcgroup.map | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcgroup.map b/src/libcgroup.map index 2e37d76e..bdfd6068 100644 --- a/src/libcgroup.map +++ b/src/libcgroup.map @@ -124,6 +124,7 @@ CGROUP_0.40 { } CGROUP_0.39; CGROUP_0.41 { + cgroup_get_cgroup_name; } CGROUP_0.40; CGROUP_0.42 { -- 2.47.2