Wine-vanilla-9.8 fails to emerge due to 'TCGETS2' being undeclared. I am running on a musl system. Tried with both Clang and GCC. /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c: In function 'get_baud_rate': /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:129:19: error: 'TCGETS2' undeclared (first use in this function); did you mean 'TCGETS'? 129 | if (ioctl(fd, TCGETS2, &port) == -1) | ^~~~~~~ | TCGETS /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:129:19: note: each undeclared identifier is reported only once for each function it appears in /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c: In function 'get_hand_flow': /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:221:19: error: 'TCGETS2' undeclared (first use in this function); did you mean 'TCGETS'? 221 | if (ioctl(fd, TCGETS2, &port) == -1) | ^~~~~~~ | TCGETS /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c: In function 'get_line_control': /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:283:19: error: 'TCGETS2' undeclared (first use in this function); did you mean 'TCGETS'? 283 | if (ioctl(fd, TCGETS2, &port) == -1) | ^~~~~~~ | TCGETS /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c: In function 'get_special_chars': /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:399:19: error: 'TCGETS2' undeclared (first use in this function); did you mean 'TCGETS'? 399 | if (ioctl(fd, TCGETS2, &port) == -1) | ^~~~~~~ | TCGETS /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c: In function 'set_baud_rate': /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:514:19: error: 'TCGETS2' undeclared (first use in this function); did you mean 'TCGETS'? 514 | if (ioctl(fd, TCGETS2, &port) == -1) | ^~~~~~~ | TCGETS /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:528:19: error: 'TCSETS2' undeclared (first use in this function); did you mean 'TCSETS'? 528 | if (ioctl(fd, TCSETS2, &port) == -1) | ^~~~~~~ | TCSETS /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c: In function 'set_handflow': /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:676:19: error: 'TCGETS2' undeclared (first use in this function); did you mean 'TCGETS'? 676 | if (ioctl(fd, TCGETS2, &port) == -1) | ^~~~~~~ | TCGETS /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:728:19: error: 'TCSETS2' undeclared (first use in this function); did you mean 'TCSETS'? 728 | if (ioctl(fd, TCSETS2, &port) == -1) | ^~~~~~~ | TCSETS /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c: In function 'set_line_control': /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:750:19: error: 'TCGETS2' undeclared (first use in this function); did you mean 'TCGETS'? 750 | if (ioctl(fd, TCGETS2, &port) == -1) | ^~~~~~~ | TCGETS /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:859:19: error: 'TCSETS2' undeclared (first use in this function); did you mean 'TCSETS'? 859 | if (ioctl(fd, TCSETS2, &port) == -1) | ^~~~~~~ | TCSETS /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c: In function 'set_special_chars': /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:885:19: error: 'TCGETS2' undeclared (first use in this function); did you mean 'TCGETS'? 885 | if (ioctl(fd, TCGETS2, &port) == -1) | ^~~~~~~ | TCGETS /var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8/dlls/ntdll/unix/serial.c:908:19: error: 'TCSETS2' undeclared (first use in this function); did you mean 'TCSETS'? 908 | if (ioctl(fd, TCSETS2, &port) == -1) | ^~~~~~~ | TCSETS make: *** [Makefile:277564: dlls/ntdll/unix/serial.o] Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory '/var/tmp/portage/app-emulation/wine-vanilla-9.8/work/build64' * ERROR: app-emulation/wine-vanilla-9.8::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-emulation/wine-vanilla-9.8::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-emulation/wine-vanilla-9.8::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-emulation/wine-vanilla-9.8/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/wine-vanilla-9.8/temp/environment'. * Working directory: '/var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8' * S: '/var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8' >>> Failed to emerge app-emulation/wine-vanilla-9.8, Log file: >>> '/var/tmp/portage/app-emulation/wine-vanilla-9.8/temp/build.log' * Messages for package app-emulation/wine-vanilla-9.8: * ERROR: app-emulation/wine-vanilla-9.8::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-emulation/wine-vanilla-9.8::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-emulation/wine-vanilla-9.8::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-emulation/wine-vanilla-9.8/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/wine-vanilla-9.8/temp/environment'. * Working directory: '/var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8' * S: '/var/tmp/portage/app-emulation/wine-vanilla-9.8/work/wine-9.8'
9.8 regression that's already fixed upstream it looks like, will backport after testing
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be7b8b731fca352feb69499b08fa3918bcb71309 commit be7b8b731fca352feb69499b08fa3918bcb71309 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2024-05-07 09:44:31 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2024-05-07 09:45:15 +0000 app-emulation/wine-vanilla: fix build with musl Closes: https://bugs.gentoo.org/931341 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> .../wine-vanilla-9.8-musl-ioctls-header.patch | 30 ++++++++++++++++++++++ app-emulation/wine-vanilla/wine-vanilla-9.8.ebuild | 1 + 2 files changed, 31 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac0d324647ccb3db9b1ee1f9595c913af6ae3d68 commit ac0d324647ccb3db9b1ee1f9595c913af6ae3d68 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2024-05-07 09:44:23 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2024-05-07 09:45:15 +0000 app-emulation/wine-staging: fix build with musl Bug: https://bugs.gentoo.org/931341 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> .../wine-staging-9.8-musl-ioctls-header.patch | 30 ++++++++++++++++++++++ app-emulation/wine-staging/wine-staging-9.8.ebuild | 1 + 2 files changed, 31 insertions(+)