From: Kamalesh Babulal Date: Thu, 2 Jan 2025 12:58:56 +0000 (+0000) Subject: libcgroup.map: include cgroup_get_cgroup_name X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Frelease-3.1;p=thirdparty%2Flibcgroup.git 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) --- 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 {