|
楼主 |
发表于 2005-11-30 14:54:08
|
显示全部楼层
我的Makefile是这样子写的
提示错误如所示的,虽然语法错误不算错,但是我已经两天再改这个东西,好象没有多大进展,望楼顶的兄弟们看看,还有其他的各位也帮我看看!
Makefile写法:
ifneq ($(KERNELRELEASE),)
MODULE_NAME := raid6main
obj-m += $(MODULE_NAME).o
$(MODULE_NAME)-objs := raid6recov.o raid6mmx.o raid6algos.o raid6sse1.o \
raid6sse2.o
MODULE_OBJECT := $(MODULE_NAME).ko
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell PWD)
default :
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
endif
之后运行make -k 之后出现下面提示错误。
make -C /lib/modules/2.6.11-1.12369_FC4/build M=/home/chengxu/raid modules
make[1]: Entering directory '/usr/src/kernels/2.6.11-FC4-i386'
CC [M] /home/chengxu/raid/raid6recov.o
CC [M] /home/chengxu/raid/raid6mmx.o
CC [M] /home/chengxu/raid/raid6algos.o
CC [M] /home/chengxu/raid/raid6sse1.o
CC [M] /home/chengxu/raid/raid6sse2.o
CC [M] /home/chengxu/raid/raid6main.o
Building modules, stage 2.
MODPOST
*** Warnning: "raid6_gfinv" [/home/chengxu/raid/raid6recov.ko] undefined!
*** Warnning: "raid6_gfexp" [/home/chengxu/raid/raid6recov.ko] undefined!
*** Warnning: "raid6_gfmul" [/home/chengxu/raid/raid6recov.ko] undefined!
*** Warnning: "raid6_gfexi" [/home/chengxu/raid/raid6recov.ko] undefined!
*** Warnning: "raid6_call" [/home/chengxu/raid/raid6recov.ko] undefined!
*** Warnning: "raid6_empty_zero_page" [/home/chengxu/raid/raid6recov.ko] undefined!
*** Warnning: "raid6_intx2" [/home/chengxu/raid/raid6main.ko] undefined!
*** Warnning: "raid6_empty_zero_page" [/home/chengxu/raid/raid6main.ko] undefined!
*** Warnning: "raid6_intx4" [/home/chengxu/raid/raid6main.ko] undefined!
*** Warnning: "raid6_intx1" [/home/chengxu/raid/raid6main.ko] undefined!
*** Warnning: "raid6_intx8" [/home/chengxu/raid/raid6main.ko] undefined!
*** Warnning: "raid6_gfexp" [/home/chengxu/raid/raid6main.ko] undefined!
*** Warnning: "raid6_gfinv" [/home/chengxu/raid/raid6main.ko] undefined!
*** Warnning: "raid6_gfmulp" [/home/chengxu/raid/raid6main.ko] undefined!
*** Warnning: "raid6_gfexi" [/home/chengxu/raid/raid6main.ko] undefined!
CC [M] /home/chengxu/raid/raidmain.mod.o
LD [M] /home/chengxu/raid/raid6main.ko
CC [M] /home/chengxu/raid/raid6recov.mod.o
LD [M] /home/chengxu/raid/raid6main.ko
make[1]: Leaving directory '/usr/src/kernels/2.6.11-FC4-i386'
急切盼望各位大侠指点!!!! |
|