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
https://bugs.winehq.org/show_bug.cgi?id=51842
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
https://bugs.winehq.org/show_bug.cgi?id=51842
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- This may have been fixed with 25946b48148784e8275c1685f6498ab88f553ca3. Can you confirm?
https://bugs.winehq.org/show_bug.cgi?id=51842
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |25946b48148784e8275c1685f64 | |98ab88f553ca3 Resolution|--- |FIXED
--- Comment #2 from Austin English austinenglish@gmail.com --- (In reply to Hans Leidekker from comment #1)
This may have been fixed with 25946b48148784e8275c1685f6498ab88f553ca3. Can you confirm?
Yes and no; libldap.o now compiles, but wldap32 fails to build, because ntdll can't be built, because of bug 51841 and bug 51843.
But those are separate issues :).
https://bugs.winehq.org/show_bug.cgi?id=51842
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.13.
https://bugs.winehq.org/show_bug.cgi?id=51842
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |7.0.x
https://bugs.winehq.org/show_bug.cgi?id=51842
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|7.0.x |---
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 7.0.x milestone from bug fixes included in 7.0.2.