由 訪客 » 週二 10月 21, 2003 11:01 am
還是有錯誤 > <
In file included from /usr/src/kernel-headers-2.4.20-3/include/asm/semaphore.h:39,
from /usr/src/kernel-headers-2.4.20-3/include/linux/fs.h:200,
from /usr/src/kernel-headers-2.4.20-3/include/linux/capability.h:17,
from /usr/src/kernel-headers-2.4.20-3/include/linux/binfmts.h:5,
from /usr/src/kernel-headers-2.4.20-3/include/linux/sched.h:9,
from /usr/src/kernel-headers-2.4.20-3/include/linux/mm.h:4,
from /usr/src/kernel-headers-2.4.20-3/include/linux/slab.h:14,
from main.c:20:
/usr/src/kernel-headers-2.4.20-3/include/asm/system.h: In function `__set_64bit_var':
/usr/src/kernel-headers-2.4.20-3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/kernel-headers-2.4.20-3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
cc -D__KERNEL__ -DMODULE -mpentium -O2 -fomit-frame-pointer -Wall -pipe -I/usr/src/kernel-headers-2.4.20-3/include/ -c -o adb.o adb.c
`-mpentium' is deprecated. Use `-march=pentium' or `-mcpu=pentium' instead.
In file included from /usr/src/kernel-headers-2.4.20-3/include/asm/semaphore.h:39,
from /usr/src/kernel-headers-2.4.20-3/include/linux/fs.h:200,
from /usr/src/kernel-headers-2.4.20-3/include/linux/capability.h:17,
from /usr/src/kernel-headers-2.4.20-3/include/linux/binfmts.h:5,
from /usr/src/kernel-headers-2.4.20-3/include/linux/sched.h:9,
from /usr/src/kernel-headers-2.4.20-3/include/linux/vmalloc.h:4,
from /usr/src/kernel-headers-2.4.20-3/include/asm/io.h:47,
from vortex2.h:2,
from adb.c:1:
/usr/src/kernel-headers-2.4.20-3/include/asm/system.h: In function `__set_64bit_var':
/usr/src/kernel-headers-2.4.20-3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/kernel-headers-2.4.20-3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
cc -D__KERNEL__ -DMODULE -mpentium -O2 -fomit-frame-pointer -Wall -pipe -I/usr/src/kernel-headers-2.4.20-3/include/ -c -o gameport.o gameport.c
`-mpentium' is deprecated. Use `-march=pentium' or `-mcpu=pentium' instead.
In file included from /usr/src/kernel-headers-2.4.20-3/include/asm/semaphore.h:39,
from /usr/src/kernel-headers-2.4.20-3/include/linux/fs.h:200,
from /usr/src/kernel-headers-2.4.20-3/include/linux/capability.h:17,
from /usr/src/kernel-headers-2.4.20-3/include/linux/binfmts.h:5,
from /usr/src/kernel-headers-2.4.20-3/include/linux/sched.h:9,
from /usr/src/kernel-headers-2.4.20-3/include/linux/vmalloc.h:4,
from /usr/src/kernel-headers-2.4.20-3/include/asm/io.h:47,
from vortex2.h:2,
from gameport.c:41:
/usr/src/kernel-headers-2.4.20-3/include/asm/system.h: In function `__set_64bit_var':
/usr/src/kernel-headers-2.4.20-3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/kernel-headers-2.4.20-3/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
ld -m elf_i386 -r main.o adb.o gameport.o -o vortex2.o
#mv -f /etc/modules.conf /etc/modules.conf.old
#gawk -f mod_conf /etc/modules.conf.old > /etc/modules.conf
#echo "alias sound vortex2" >> /etc/modules.conf
mkdir -p /lib/modules/2.4.20-3-k7/misc
cp -f vortex2.o /lib/modules/2.4.20-3-k7/misc
/sbin/depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.20-3-k7/misc/vortex2.o
/sbin/rmmod vortex2
rmmod: module vortex2 is not loaded
make: [install] Error 1 (ignored)
/sbin/modprobe vortex2
/lib/modules/2.4.20-3-k7/misc/vortex2.o: kernel-module version mismatch
/lib/modules/2.4.20-3-k7/misc/vortex2.o was compiled for kernel version 2.4.20-3
while this kernel is version 2.4.20-3-k7.
/lib/modules/2.4.20-3-k7/misc/vortex2.o: insmod /lib/modules/2.4.20-3-k7/misc/vortex2.o failed
/lib/modules/2.4.20-3-k7/misc/vortex2.o: insmod vortex2 failed
make: [install] Error 255 (ignored)
debian:/anhi/z# insmod vortex2
Using /lib/modules/2.4.20-3-k7/misc/vortex2.o
/lib/modules/2.4.20-3-k7/misc/vortex2.o: kernel-module version mismatch
/lib/modules/2.4.20-3-k7/misc/vortex2.o was compiled for kernel version 2.4.20-3