Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
compiling kernel for amd64 fails
Hi,
TSSIA ;-)
made it compile w/ the following "patch":
cvs diff -u sys/kern/sys_module.c
Index: sys/kern/sys_module.c
===================================================================
RCS file: /cvsroot/src/sys/kern/sys_module.c,v
retrieving revision 1.1
diff -u -r1.1 sys_module.c
--- sys/kern/sys_module.c 16 Jan 2008 12:34:51 -0000 1.1
+++ sys/kern/sys_module.c 16 Jan 2008 17:16:53 -0000
@@ -78,7 +78,7 @@
case MODCTL_UNLOAD:
/* Authorize. */
error = kauth_authorize_system(l->l_cred, KAUTH_SYSTEM_MODULE,
- 0, (void *)SCARG(uap, cmd), NULL, NULL);
+ 0, (void *)(long)SCARG(uap, cmd), NULL, NULL);
if (error != 0) {
return error;
}
Kurt
cc1: warnings being treated as errors
/u/NetBSD/src/sys/kern/sys_module.c: In function 'sys_modctl':
/u/NetBSD/src/sys/kern/sys_module.c:81: warning: cast to pointer from integer
of different size
*** Failed target: sys_module.o
*** Failed command: echo ' ' "compile U40M2/sys_module.o"; : echo
/u/NetBSD/arch/amd64/TOOLS/bin/x86_64--netbsd-gcc -pipe -mcmodel=kernel
-mno-red-zone -ffreestanding -fno-zero-initialized-in-bss -g -O2
-fno-omit-frame-pointer -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow
-Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes
-fno-strict-aliasing -Damd64 -Dx86_64 -I. -I/u/NetBSD/src/sys/../common/include
-I/u/NetBSD/src/sys/arch -I/u/NetBSD/src/sys -nostdinc -DLKM -DMAXUSERS=64
-D_KERNEL -D_KERNEL_OPT
-I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/quad
-I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/string
-I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string
-I/u/NetBSD/src/sys/dist/ipf -c /u/NetBSD/src/sys/kern/sys_module.c;
/u/NetBSD/arch/amd64/TOOLS/bin/x86_64--netbsd-gcc -pipe -mcmodel=kernel
-mno-red-zone -ffreestanding -fno-zero-initialized-in-bss -g -O2
-fno-omit-frame-pointer -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow
-Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes
-fno-strict-aliasing -Damd64 -Dx86_64 -I. -I/u/NetBSD/src/sys/../common/include
-I/u/NetBSD/src/sys/arch -I/u/NetBSD/src/sys -nostdinc -DLKM -DMAXUSERS=64
-D_KERNEL -D_KERNEL_OPT
-I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/quad
-I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/string
-I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string
-I/u/NetBSD/src/sys/dist/ipf -c /u/NetBSD/src/sys/kern/sys_module.c
*** Error code 1
Stop.
nbmake: stopped in /u/NetBSD/arch/amd64/obj/sys/arch/amd64/compile/U40M2
ERROR: Failed to make all in
/u/NetBSD/arch/amd64/obj/sys/arch/amd64/compile/U40M2
*** BUILD ABORTED ***
Home |
Main Index |
Thread Index |
Old Index