Duplicate function definition causes build issues
Description:
Cannot compile qemu anymore on the system due to a duplicate function definition in fuse.h
In file included from ../block/export/fuse.c:33:
/usr/include/fuse3/fuse.h:959:5: error: redundant redeclaration of ‘fuse_main_real_versioned’ [-Werror=redundant-decls]
959 | int fuse_main_real_versioned(int argc, char *argv[],
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/fuse3/fuse.h:885:5: note: previous declaration of ‘fuse_main_real_versioned’ with type ‘int(int, char **, const struct fuse_operations *, size_t, struct libfuse_version *, void *)’ {aka ‘int(int, char **, const struct fuse_operations *, long unsigned int, struct libfuse_version *, void *)’}
885 | int fuse_main_real_versioned(int argc, char *argv[],
| ^~~~~~~~~~~~~~~~~~~~~~~~
The issue is already fixed in current upstream master branch. See PR below.
Additional info:
- package version(s):3.17.1-1
- link to upstream bug report, if any: https://github.com/libfuse/libfuse/pull/1193
Steps to reproduce:
- git clone https://gitlab.com/qemu-project/qemu.git
- cd qemu
- ./configure
- make
-> Failure