https://bugs.winehq.org/show_bug.cgi?id=51841
Bug ID: 51841 Summary: dlls/ntdll/unix/file.c:6334:27: error: storage size of ‘stfs’ isn’t known Product: Wine Version: 6.18 Hardware: x86 OS: NetBSD Status: NEW Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
Created attachment 70736 --> https://bugs.winehq.org/attachment.cgi?id=70736 patch
Building on i386 NetBSD 9.2 fails:
gcc -c -o dlls/ntdll/unix/file.o dlls/ntdll/unix/file.c -Idlls/ntdll -Iinclude -D__WINESRC__ -D_NTSYSTEM_ -D_ACRTIMP= -DWINBASEAPI= -D_MSVCR_VER=0 -DWINE_UNIX_LIB -D_REENTRANT -fno-PIC -fasynchronous-unwind-tables -Wall -pipe -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -march=i586 -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R7/include -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R7/include -g dlls/ntdll/unix/file.c: In function ‘NtQueryVolumeInformationFile’: dlls/ntdll/unix/file.c:6334:27: error: storage size of ‘stfs’ isn’t known struct statfs stfs; ^~~~ dlls/ntdll/unix/file.c:6336:18: warning: implicit declaration of function ‘fstatfs’; did you mean ‘fstatvfs’? [-Wimplicit-function-declaration] if (!fstatfs( fd, &stfs )) ^~~~~~~ fstatvfs dlls/ntdll/unix/file.c:6334:27: warning: unused variable ‘stfs’ [-Wunused-variable] struct statfs stfs; ^~~~ At top level: dlls/ntdll/unix/file.c:247:24: warning: ‘mnt_mutex’ defined but not used [-Wunused-variable] static pthread_mutex_t mnt_mutex = PTHREAD_MUTEX_INITIALIZER; ^~~~~~~~~ *** Error code 1
I've got a patch that works around it, but not sure if it's correct.
https://bugs.winehq.org/show_bug.cgi?id=51841
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |blocker Keywords| |download, patch, source
https://bugs.winehq.org/show_bug.cgi?id=51841
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- While you're at it, shouldn't you also address the implicitly declared "fstatfs"?
https://bugs.winehq.org/show_bug.cgi?id=51841
--- Comment #2 from Austin English austinenglish@gmail.com --- (In reply to Fabian Maurer from comment #1)
While you're at it, shouldn't you also address the implicitly declared "fstatfs"?
Yes, but given that it was a warning, and I can't test the build until bug 51843 is fixed, I didn't spend more effort.