This bug was fixed in the package lxc -
1:5.0.0~git2209-g5a7b9ce67-0ubuntu2
---------------
lxc (1:5.0.0~git2209-g5a7b9ce67-0ubuntu2) kinetic; urgency=medium
* d/p/lp1987625/*.patch: cherry-picked to fix FTBFS against glibc 2.36
(LP: #1987625)
* d/p/ppc64el-gcc12-warning.patch: work around a false positive warning in
GCC 12 on ppc64el due to it defaulting to -O3
-- Simon Chopin <[email protected]> Fri, 26 Aug 2022 11:18:18 +0200
** Changed in: lxc (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1987625
Title:
lxc: FTBFS against glibc 2.36.0
Status in lxc package in Ubuntu:
Fix Released
Bug description:
Hi,
lxc currently fails to build against glibc 2.36, which also affects
its autopkgtests. Here's an excerpt of the failed build logs
containing the first error detected:
gcc -DHAVE_CONFIG_H -I. -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -fPIE
-Wvla -std=gnu11 -fms-extensions -fdiagnostics-color -Wimplicit-fallthrough=5
-Wcast-align -Wstrict-prototypes -fno-strict-aliasing -fstack-clash-protection
-fstack-protector-strong --param=ssp-buffer-size=4 -g -fcf-protection
-Werror=implicit-function-declaration -Wlogical-op -Wmissing-include-dirs
-Wold-style-definition -Winit-self -Wunused-but-set-variable -Wfloat-equal
-Wsuggest-attribute=noreturn -Werror=return-type
-Werror=incompatible-pointer-types -Wformat=2 -Wshadow -Wendif-labels
-Werror=overflow -fdiagnostics-show-option -Werror=shift-count-overflow
-Werror=shift-overflow=2 -Wdate-time -Wnested-externs
-fasynchronous-unwind-tables -pipe -fexceptions -Warray-bounds -Wrestrict
-Wreturn-local-addr -Wstringop-overflow
-DLXCROOTFSMOUNT=\"/usr/lib/x86_64-linux-gnu/lxc\" -DLXCPATH=\"/var/lib/lxc\"
-DLXC_GLOBAL_CONF=\"/etc/lxc/lxc.conf\"
-DLXCINITDIR=\"/usr/lib/x86_64-linux-gnu\"
-DLIBEXECDIR=\"/usr/lib/x86_64-linux-gnu\"
-DLXCTEMPLATEDIR=\"/usr/share/lxc/templates\"
-DLXCTEMPLATECONFIG=\"/usr/share/lxc/config\" -DLOGPATH=\"/var/log/lxc\"
-DLXC_DEFAULT_CONFIG=\"/etc/lxc/default.conf\"
-DLXC_USERNIC_DB=\"/run/lxc/nics\" -DLXC_USERNIC_CONF=\"/etc/lxc/lxc-usernet\"
-DDEFAULT_CGROUP_PATTERN=\"\" -DRUNTIME_PATH=\"/run\" -DSBINDIR=\"/usr/sbin\"
-DAPPARMOR_CACHE_DIR=\"/var/cache/lxc/apparmor\" -I ../../src -I
../../src/include -I ../../src/lxc -I ../../src/lxc/storage -I
../../src/lxc/cgroups -DHAVE_APPARMOR -DHAVE_SECCOMP -DHAVE_SELINUX -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -flto=auto
-ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
-Wvla -std=gnu11 -fms-extensions -Werror -c -o conf.o conf.c
conf.c: In function ‘__lxc_idmapped_mounts_child’:
conf.c:2993:37: error: passing argument 4 of ‘mount_setattr’ from
incompatible pointer type [-Werror=incompatible-pointer-types]
2993 | &attr,
| ^~~~~
| |
| struct lxc_mount_attr *
In file included from conf.c:22:
/usr/include/x86_64-linux-gnu/sys/mount.h:317:46: note: expected ‘struct
mount_attr *’ but argument is of type ‘struct lxc_mount_attr *’
317 | struct mount_attr *__uattr, size_t __usize)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~
conf.c:3016:41: error: passing argument 4 of ‘mount_setattr’ from
incompatible pointer type [-Werror=incompatible-pointer-types]
3016 | &attr,
| ^~~~~
| |
| struct lxc_mount_attr *
/usr/include/x86_64-linux-gnu/sys/mount.h:317:46: note: expected ‘struct
mount_attr *’ but argument is of type ‘struct lxc_mount_attr *’
317 | struct mount_attr *__uattr, size_t __usize)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~
conf.c: In function ‘lxc_idmapped_mounts_parent’:
conf.c:4130:37: error: passing argument 4 of ‘mount_setattr’ from
incompatible pointer type [-Werror=incompatible-pointer-types]
4130 | &attr, sizeof(attr));
| ^~~~~
| |
| struct lxc_mount_attr *
/usr/include/x86_64-linux-gnu/sys/mount.h:317:46: note: expected ‘struct
mount_attr *’ but argument is of type ‘struct lxc_mount_attr *’
317 | struct mount_attr *__uattr, size_t __usize)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~
I believe the following upstream PR should fix the issue:
https://github.com/lxc/lxc/pull/4181
I'll be testing a patched version shortly and will post a debdiff if
it pans out.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1987625/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp