Bug 1222927 - lxc fails to build on Leap 15.6 [m[Kpassing argument 4 of '[01m[Kmount_setattr[m[K' from incompatible pointer type [[01;31m[K-Werror=incompatible-pointer-types[m[K]
Summary: lxc fails to build on Leap 15.6 [m[Kpassing argument 4 of '[01m[Kmount_setatt...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Virtualization:Other (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Johannes Kastl
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-16 22:12 UTC by Lubos Kocman
Modified: 2024-05-06 08:20 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lubos Kocman 2024-04-16 22:12:37 UTC
Hello 

package lxc fails to build on Leap 15.6

https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP6/lxc/standard/x86_64

protection -g -Wvla -std=gnu11 -fms-extensions -c -o liblxc_la-confile_utils.lo `test -f 'confile_utils.c' || echo './'`confile_utils.c
[   87s] [01m[Kconf.c:[m[K In function '[01m[K__lxc_idmapped_mounts_child[m[K':
[   87s] [01m[Kconf.c:2989:9:[m[K [01;31m[Kerror: [m[Kpassing argument 4 of '[01m[Kmount_setattr[m[K' from incompatible pointer type [[01;31m[K-Werror=incompatible-pointer-types[m[K]
[   87s]          [01;31m[K&[m[Kattr,
[   87s]          [01;31m[K^[m[K
[   87s] In file included from [01m[Kconf.c:22:0[m[K:
[   87s] [01m[K/usr/include/sys/mount.h:316:12:[m[K [01;36m[Knote: [m[Kexpected '[01m[Kstruct mount_attr *[m[K' but argument is of type '[01m[Kstruct lxc_mount_attr *[m[K'
[   87s]  extern int [01;36m[Kmount_setattr[m[K (int __dfd, const char *__path, unsigned int __flags,
[   87s]             [01;36m[K^~~~~~~~~~~~~[m[K
[   87s] [01m[Kconf.c:3012:6:[m[K [01;31m[Kerror: [m[Kpassing argument 4 of '[01m[Kmount_setattr[m[K' from incompatible pointer type [[01;31m[K-Werror=incompatible-pointer-types[m[K]

Could you please look into it?
Comment 1 Johannes Kastl 2024-04-17 10:46:32 UTC
Hi Lubos,

why is this still version 4.0.x? Is it because 5.0.x introduced meson as build tool?

Adding Aleksa in CC.

Kind Regards,
Johannes
Comment 2 Max Lin 2024-05-03 09:09:26 UTC
Give Factory's version 5.0.3 a try, it fails with different reason https://build.opensuse.org/package/live_build_log/home:mlin7442:rebuild_fails_156/lxc/openSUSE_Backports_SLE-15-SP6/x86_64

[  162s] Processing files: pam_cgfs-5.0.3-bp156.1.1.x86_64
[  162s] error: File not found: /home/abuild/rpmbuild/BUILDROOT/lxc-5.0.3-bp156.1.1.x86_64/lib64/security/pam_cgfs.so
Comment 3 Johannes Kastl 2024-05-03 16:44:22 UTC
Hi Max,

try version 6.0.0:
https://build.opensuse.org/package/show/Virtualization:containers/lxc
Already accepted to Factory, see https://build.opensuse.org/request/show/1171111

I fixed the builds for 15.x there, as there is a mismatch in the path to the directory.

Kind Regards,
Johannes
Comment 4 Max Lin 2024-05-06 08:20:24 UTC
Thanks Johannes, I submitted it to Backports https://build.opensuse.org/request/show/1171843 and it was merged. We can closing this one.