]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
libcgroup.map: include cgroup_get_cgroup_name
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 2 Jan 2025 12:58:56 +0000 (12:58 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 10 Jan 2025 18:07:05 +0000 (11:07 -0700)
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 <ron@noisytoot.org>
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/libcgroup.map

index 5e504719d5a9d26074942b731bee1a7a49cdcb11..bf1d2ed735d0d2e4f133571b63282f3104c6ef15 100644 (file)
@@ -124,6 +124,7 @@ CGROUP_0.40 {
 } CGROUP_0.39;
 
 CGROUP_0.41 {
+       cgroup_get_cgroup_name;
 } CGROUP_0.40;
 
 CGROUP_0.42 {