Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
macppc kernel can't build
Hi! all,
macppc kernel can't build with COMPAT_DARWIN.
# compile HIEROPHANT/darwin_machdep.o
/usr/src/cross/powerpc/bin/powerpc--netbsd-gcc -mno-strict-align -msoft-float
-Wa,-maltivec -ffreestanding -fno-zero-initialized-in-bss -O2 -std=gnu99
-fno-strict-aliasing -Wreturn-type -Werror -Wall -Wno-main
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings
-Wno-unreachable-code -Wno-sign-compare -Wno-pointer-sign -Wno-attributes
-Werror -Dmacppc=macppc -I. -I../../../../../common/include -I../../../../arch
-I../../../.. -nostdinc -DFORCE_FUNCTION_KEYS -DMAXUSERS=32 -D_KERNEL
-D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad
-I../../../../lib/libkern/../../../common/lib/libc/string
-I../../../../lib/libkern/../../../common/lib/libc/arch/powerpc/string -c
../../../../arch/powerpc/powerpc/darwin_machdep.c
In file included from ../../../../arch/powerpc/powerpc/darwin_machdep.c:47:
../../../../compat/darwin/darwin_audit.h:44: error: expected
specifier-qualifier-list before 'darwin_dev_t'
../../../../compat/darwin/darwin_audit.h:49: error: expected
specifier-qualifier-list before 'darwin_dev_t'
In file included from ../../../../arch/powerpc/powerpc/darwin_machdep.c:49:
../../../../compat/darwin/darwin_syscallargs.h:61: error: expected
specifier-qualifier-list before 'darwin_dev_t'
../../../../compat/darwin/darwin_syscallargs.h:61: error: 'darwin_dev_t'
undeclared here (not in a function)
../../../../compat/darwin/darwin_syscallargs.h:61: error: expected
specifier-quallifier-list before 'darwin_dev_t'
*** Failed target: darwin_machdep.o
*** Failed command: echo '# ' "compile HIEROPHANT/darwin_machdep.o"; echo
/usr/src/cross/powerpc/bin/powerpc--netbsd-gcc -mno-strict-align -msoft-float
-Wa,-maltivec -ffreestanding -fno-zero-initialized-in-bss -O2 -std=gnu99
-fno-strict-aliasing -Wreturn-type -Werror -Wall -Wno-main
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings
-Wno-unreachable-code -Wno-sign-compare -Wno-pointer-sign -Wno-attributes
-Werror -Dmacppc=macppc -I. -I../../../../../common/include -I../../../../arch
-I../../../.. -nostdinc -DFORCE_FUNCTION_KEYS -DMAXUSERS=32 -D_KERNEL
-D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad
-I../../../../lib/libkern/../../../common/lib/libc/string
-I../../../../lib/libkern/../../../common/lib/libc/arch/powerpc/string -c
../../../../arch/powerpc/powerpc/darwin_machdep.c;
/usr/src/cross/powerpc/bin/powerpc--netbsd-gcc -mno-strict-align -msoft-float
-Wa,-maltivec -ffreestan!
ding -fno-zero-initialized-in-bss -O2 -std=gnu99 -fno-strict-aliasing
-Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
-Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wno-unreachable-code -Wno-sign-compare -Wno-pointer-sign
-Wno-attributes -Werror -Dmacppc=macppc -I. -I../../../../../common/include
-I../../../../arch -I../../../.. -nostdinc -DFORCE_FUNCTION_KEYS -DMAXUSERS=32
-D_KERNEL -D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad
-I../../../../lib/libkern/../../../common/lib/libc/string
-I../../../../lib/libkern/../../../common/lib/libc/arch/powerpc/string -c
../../../../arch/powerpc/powerpc/darwin_machdep.c
*** Error code 1
Stop.
nbmake: stopped in /usr/src/sys/arch/macppc/compile/HIEROPHANT
Needs this change. Please fix.
Index: darwin_machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/powerpc/powerpc/darwin_machdep.c,v
retrieving revision 1.27
diff -u -r1.27 darwin_machdep.c
--- darwin_machdep.c 18 Mar 2009 16:00:14 -0000 1.27
+++ darwin_machdep.c 12 Apr 2009 08:55:08 -0000
@@ -44,6 +44,7 @@
#include <compat/mach/mach_types.h>
#include <compat/mach/mach_vm.h>
+#include <compat/darwin/darwin_types.h>
#include <compat/darwin/darwin_audit.h>
#include <compat/darwin/darwin_signal.h>
#include <compat/darwin/darwin_syscallargs.h>
Thanks,
--
kiyohara
Home |
Main Index |
Thread Index |
Old Index