Bugzilla – Bug 1221025
GCC 14: uwsgi package fails
Last modified: 2024-03-15 18:58:54 UTC
Building uwsgi with GCC 14 fails here: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/uwsgi/standard/x86_64 Due to (exhaustive list of errors): plugins/glusterfs/glusterfs.c: In function ‘uwsgi_glusterfs_read_async’: plugins/glusterfs/glusterfs.c:72:55: error: passing argument 5 of ‘glfs_read_async’ from incompatible pointer type [-Wincompatible-pointer-types] 72 | if (glfs_read_async(fd, buf, 8192, 0, uwsgi_glusterfs_read_async_cb, &aio)) goto end; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(glfs_fd_t *, ssize_t, void *) {aka void (*)(struct glfs_fd *, long int, void *)} In file included from plugins/glusterfs/glusterfs.c:2: /usr/include/glusterfs/api/glfs.h:711:29: note: expected ‘glfs_io_cbk’ {aka ‘void (*)(struct glfs_fd *, long int, struct glfs_stat *, struct glfs_stat *, void *)’} but argument is of type ‘void (*)(glfs_fd_t *, ssize_t, void *)’ {aka ‘void (*)(struct glfs_fd *, long int, void *)’} 711 | glfs_io_cbk fn, void *data) __THROW | ~~~~~~~~~~~~^~ See the meta bug#1220571 for more info.
FTR, I believe that how Fedora tackles this issue is tracked here: https://gitlab.com/fweimer-rh/fedora-modernc/-/blob/main/pkg/u/uwsgi.md?ref_type=heads
The main issue was with the glusterfs plugin. It was actually broken for some time, but it looks like gcc 14 is rightly marking this as an error now where it was a warning before. This should be fixed in https://build.opensuse.org/package/rdiff/server:http/uwsgi?linkrev=base&rev=126