http://bugs.winehq.org/show_bug.cgi?id=16927
Summary: Compile broken in dlls/kernel32/cpu.c on NetBSD Product: Wine Version: 1.1.12 Platform: PC OS/Version: NetBSD Status: NEW Keywords: regression, source Severity: blocker Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
Compile is broken at dlls/kernel32/cpu.c on NetBSD:
ccache gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_KERNEL32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include -o cpu.o cpu.c cpu.c: In function 'GetSystemInfo': cpu.c:561: warning: suggest explicit braces to avoid ambiguous 'else' cpu.c:573: error: subscripted value is neither array nor pointer cpu.c:582: error: subscripted value is neither array nor pointer cpu.c:618: warning: format '%d' expects type 'int *', but argument 3 has type 'int' cpu.c:618: warning: format '%x' expects type 'unsigned int *', but argument 4 has type 'int' cpu.c:621: error: subscripted value is neither array nor pointer cpu.c:623: error: subscripted value is neither array nor pointer cpu.c:625: error: subscripted value is neither array nor pointer cpu.c:627: error: subscripted value is neither array nor pointer *** Error code 1
Rerverting Francois's recent commit: author Francois Gouget fgouget@free.fr Fri, 9 Jan 2009 08:34:55 +0000 (09:34 +0100) committer Alexandre Julliard julliard@winehq.org Fri, 9 Jan 2009 13:06:13 +0000 (14:06 +0100) commit b881cfc5414989d61680cdea1765a897bfdb5ebc tree 14cb96166438f2c9a1c666ccecde9f6a753eb349 tree | snapshot parent 5da42336d9c0fd0ce6de5d5ce2042fab59b8db01 commit | diff
kernel32: Fix the sysctl() usage and the CPU detection on NetBSD.
'fixes' it (no error, instead): ccache gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_KERNEL32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include -o cpu.o cpu.c cpu.c: In function 'GetSystemInfo': cpu.c:560: warning: pointer targets in passing argument 4 of 'sysctl' differ in signedness cpu.c:560: warning: suggest explicit braces to avoid ambiguous 'else' cpu.c:567: warning: pointer targets in passing argument 4 of 'sysctl' differ in signedness cpu.c:573: warning: pointer targets in passing argument 4 of 'sysctl' differ in signedness cpu.c:579: warning: pointer targets in passing argument 4 of 'sysctl' differ in signedness cpu.c:584: warning: pointer targets in passing argument 4 of 'sysctl' differ in signedness
http://bugs.winehq.org/show_bug.cgi?id=16927
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget@codeweavers.com
--- Comment #1 from Austin English austinenglish@gmail.com 2009-01-16 14:54:04 --- Breaks OpenBSD as well.
http://bugs.winehq.org/show_bug.cgi?id=16927
--- Comment #2 from Austin English austinenglish@gmail.com 2009-01-21 19:53:19 --- Fixed by 89c63fd32b94a2f762696c9c25a230649e9be3e1.
http://bugs.winehq.org/show_bug.cgi?id=16927
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #3 from Austin English austinenglish@gmail.com 2009-01-21 19:53:29 --- Fixed by 89c63fd32b94a2f762696c9c25a230649e9be3e1.
http://bugs.winehq.org/show_bug.cgi?id=16927
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2009-01-30 11:04:50 --- Closing bugs fixed in 1.1.14.