https://bugs.winehq.org/show_bug.cgi?id=48824
Bug ID: 48824 Summary: build error - xaudio2_7/xact_dll.c:1192:9: error: case label does not reduce to an integer constant Product: Wine-staging Version: 5.4 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: abolte@systemsaviour.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Building on Debian Buster, I ran into the following error with 5.4-staging using my regular build scripts.
ccache gcc -m64 -c -o xact_dll.o /mnt/gaming/applications/wine/git/dlls/xactengine3_6/../xaudio2_7/xact_dll.c -I. \ -I/mnt/gaming/applications/wine/git/dlls/xactengine3_6 \ -I/mnt/gaming/applications/wine/git/dlls/xactengine3_6/../xaudio2_7 -I../../include \ -I/mnt/gaming/applications/wine/git/include -D__WINESRC__ -DXACT3_VER=0x0306 -D_REENTRANT -fPIC \ -Wall -pipe -fcf-protection=none -fno-stack-protector -fno-strict-aliasing \ -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned \ -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla \ -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -g -O0 /mnt/gaming/applications/wine/git/dlls/xactengine3_0/../xaudio2_7/xact_dll.c: In function ‘unwrap_notificationdesc’: /mnt/gaming/applications/wine/git/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:1192:9: error: case label does not reduce to an integer constant case (int)XACTNOTIFICATIONTYPE_GLOBALVARIABLECHANGED: ^~~~ /mnt/gaming/applications/wine/git/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:1193:9: error: case label does not reduce to an integer constant case (int)XACTNOTIFICATIONTYPE_GUICONNECTED: ^~~~ /mnt/gaming/applications/wine/git/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:1194:9: error: case label does not reduce to an integer constant case (int)XACTNOTIFICATIONTYPE_GUIDISCONNECTED: ^~~~ /mnt/gaming/applications/wine/git/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:1198:9: error: case label does not reduce to an integer constant case (int)XACTNOTIFICATIONTYPE_CUEPREPARED: ^~~~ /mnt/gaming/applications/wine/git/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:1199:9: error: case label does not reduce to an integer constant case (int)XACTNOTIFICATIONTYPE_CUEPLAY: ^~~~ ... Build of shared WoW64 failed.
I don't have time to investigate right now, but I was able to build fine if I avoided the xactengine-initial patch set.
$ ./patchinstall.sh DESTDIR=../../git --all -W xactengine-initial