[Bug 16927] New: Compile broken in dlls/kernel32/cpu.c on NetBSD
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Jan 14 00:45:54 CST 2009
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 at winehq.org
ReportedBy: austinenglish at 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 at free.fr>
Fri, 9 Jan 2009 08:34:55 +0000 (09:34 +0100)
committer Alexandre Julliard <julliard at 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
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list