https://bugs.winehq.org/show_bug.cgi?id=51842
Bug ID: 51842 Summary: include/winnt.h:403:50: error: size of unnamed array is negative Product: Wine Version: 6.18 Hardware: x86 OS: NetBSD Status: NEW Severity: blocker Priority: P2 Component: wldap32 Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
--- dlls/wldap32/libldap.o --- gcc -c -o dlls/wldap32/libldap.o dlls/wldap32/libldap.c -Idlls/wldap32 -Iinclude -D__WINESRC__ -D_UCRT -DWINE_UNIX_LIB -fPIC -fasynchronous-unwind-tables -Wall -pipe -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -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/X11R6/include -g In file included from include/windef.h:290:0, from dlls/wldap32/libldap.c:40: include/winnt.h:403:50: error: size of unnamed array is negative #define C_ASSERT(e) extern void __C_ASSERT__(int [(e)?1:-1]) ^ dlls/wldap32/libldap.c:56:1: note: in expansion of macro ‘C_ASSERT’ C_ASSERT( sizeof(struct timevalU) == sizeof(struct timeval) ); ^~~~~~~~
gcc (nb4 20200810) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
NetBSD localhost 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
Workaround is to run ./configure using --without-ldap