Build error: implicit declaration of function 'qemu_close_to_socket'
Host environment
- Operating system: Windows 10 22H2
- OS/kernel version: 19045.2788
- Architecture: x86
- QEMU flavor: Any
- QEMU version: 7.2.91 (v7.2.0-2853-ged425905ee-dirty)
- QEMU command line: Any
Emulated/Virtualized environment
- Operating system: Any
- OS/kernel version: Any
- Architecture: ARM
Description of problem
When build the latest master code with MSYS2 on Windows 10, GCC reports: ../ui/spice-core.c: In function 'watch_remove': ../ui/spice-core.c:152:5: error: implicit declaration of function 'qemu_close_to_socket' [-Werror=implicit-function-declaration] 152 | qemu_close_to_socket(watch->fd); | ^~~~~~~~~~~~~~~~~~~~ ../ui/spice-core.c:152:5: error: nested extern declaration of 'qemu_close_to_socket' [-Werror=nested-externs]
Steps to reproduce
- ./configure --enable-sdl --enable-gtk --target-list=arm-softmmu,aarch64-softmmu
- cd build
- make