今天我编译新内核成功,但进入新内核系统,由于Nvidia的网卡仍是老样子,重新编译,但出现如下错误,我明天就回家了,望高手指导,谢谢
附错误
[root@localhost nvnet]# make
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing.
"; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/.tmp_versions
rm -f /root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/.tmp_versions/*
make -f scripts/Makefile.build obj=/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet
cc -Wp,-MD,/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/.nvenet.o.d -nostdinc -
isystem /usr/lib/gcc/i386-redflag-linux/3.4.3/include -D__KERNEL__ -Iinclude -i
nclude include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Os -pipe -msoft-float -mpreferred-stack-bound
ary=2 -fno-unit-at-a-time -march=k8 -ffreestanding -maccumulate-outgoing-args -D
CONFIG_AS_CFI=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -Wdeclara
tion-after-statement -DDRIVERVER=\"9999\" -I/root/NFORCE-Linux-x86-1.0-0310-pkg
1/nvnet -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wpar
entheses -Wpointer-arith -Wno-multichar -Werror -O -MD -Wno-cast-qual -Wno-e
rror -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvenet)" -D"
KBUILD_MODNAME=KBUILD_STR(nvnet)" -c -o /root/NFORCE-Linux-x86-1.0-0310-pkg1/nvn
et/.tmp_nvenet.o /root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c
In file included from include/linux/list.h:8,
from include/linux/wait.h:22,
from include/asm/semaphore.h:41,
from include/linux/sched.h:59,
from include/linux/module.h:9,
from /root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.h:20,
from /root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:22:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmeti
c
In file included from /root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:22:
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.h:21:26: linux/config.h: 没有
那个文件或目录
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c: At top level:
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:217: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:217: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:217: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:217: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:220: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:220: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:220: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:220: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:223: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:223: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:223: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:223: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:226: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:226: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:226: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:226: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:229: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:229: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:229: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:229: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:232: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:232: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:232: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:232: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:235: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:235: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:235: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:235: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:238: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:238: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:238: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:238: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:241: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:241: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:241: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:241: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:244: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:244: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:244: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:244: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:247: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:247: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:247: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:247: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:250: error: syntax error bef
ore string constant
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:250: warning: type defaults
to `int' in declaration of `MODULE_PARM'
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:250: warning: function decla
ration isn't a prototype
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:250: warning: data definitio
n has no type or storage class
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:336: warning: initialization from incompatible pointer type
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c: In function `nvenet_open':
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:738: warning: passing arg 2of `request_irq' from incompatible pointer type
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c: In function `nvenet_xmit':
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:1218: error: `CHECKSUM_HW' undeclared (first use in this function)
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:1218: error: (Each undeclared identifier is reported only once
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:1218: error: for each function it appears in.)
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:1224:5: warning: "SKB_GSO_TCPV4" is not defined
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c: In function `proc_fill_hardware_info':
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:3247: warning: long unsigned int format, resource_size_t arg (arg 6)
/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.c:3250: warning: long int format, resource_size_t arg (arg 6)
make[3]: *** [/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet/nvenet.o] 错误 1
make[2]: *** [_module_/root/NFORCE-Linux-x86-1.0-0310-pkg1/nvnet] 错误 2
[root@localhost nvnet]#


lptang_04 于 2007-01-22 15:19:42发表:
随便说一下,我的信箱是lptang_04@126.com