libradeng 发表于 2004-8-18 21:31:10

迷惑:网卡驱动make出错,无法上网——求救!

我的系统是fc2,网卡是DFE-530TX,系统可以检测到我的网卡,IP,网关,DNS等配置均没有错误,可是在ping DNS的时候,就通不过了,重新安装驱动,出现了如下错误(最后一行):

/lib/modules/2.6.5-1.358smp/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/lib/modules/2.6.5-1.358smp/build/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a function)
rhine_main.c: In function `rhine_found1':
rhine_main.c:596: warning: implicit declaration of function `init_etherdev'
rhine_main.c:596: warning: assignment makes pointer from integer without a cast
rhine_main.c:651: warning: `check_region' is deprecated (declared at /lib/modules/2.6.5-1.358smp/build/include/linux/ioport.h:121)
rhine_main.c: In function `rhine_open':
rhine_main.c:1567: warning: passing arg 2 of `request_irq' from incompatible pointer type
rhine_main.c:1579: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.5-1.358smp/build/include/linux/module.h:501)
rhine_main.c: In function `rhine_close':
rhine_main.c:1601: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.5-1.358smp/build/include/linux/module.h:513)
rhine_main.c: In function `rhine_xmit':
rhine_main.c:1738: warning: comparison of distinct pointer types lacks a cast
rhine_main.c: In function `rhine_intr':
rhine_main.c:1781: warning: comparison of distinct pointer types lacks a cast
rhine_main.c: In function `rhine_set_multi':
rhine_main.c:1940: warning: comparison of distinct pointer types lacks a cast
rhine_main.c: In function `rhine_ethtool_ioctl':
rhine_main.c:2591: warning: comparison of distinct pointer types lacks a cast
rhine_main.c:2647: warning: comparison of distinct pointer types lacks a cast
rhine_main.c: In function `rhine_mii_ioctl':
rhine_main.c:2792: warning: comparison of distinct pointer types lacks a cast
rhine_main.c:2801: warning: comparison of distinct pointer types lacks a cast
rhine_main.c: In function `rhine_notify_reboot':
rhine_main.c:2821: warning: implicit declaration of function `pci_for_each_dev'
rhine_main.c:2821: error: syntax error before '{' token
rhine_main.c: At top level:
rhine_main.c:2827: error: syntax error before '}' token
make: *** 错误 1



希望高人指点一下啊,谢谢了。

libradeng 发表于 2004-8-18 22:01:42

现在网关,DNS等都ping不通了,但是ping自己是可以的,证明协议安装是没有问题的,那么问题在那里呢?

bigcat00 发表于 2004-8-18 22:06:49

不可能啊,D-Link的530TX用的是Via的芯片,我在自己家的RH9上编译2.6.7版内核后就可以直接支持的,哪怕是RH9自带的2.4.20-8也可以直接支持啊,干吗要自己编译驱动?

hew 发表于 2004-8-18 22:12:03

make 不行,应该看之前./configure 时的提示。

hew 发表于 2004-8-18 22:18:20

btw: 你是从哪里下到for 2.6的驱动的? 我都找不到啊。

libradeng 发表于 2004-8-18 22:25:44

btw: 你是从哪里下到for 2.6的驱动的? 我都找不到啊。

网卡的光盘里面的

libradeng 发表于 2004-8-18 22:27:43

不可能啊,D-Link的530TX用的是Via的芯片,我在自己家的RH9上编译2.6.7版内核后就可以直接支持的,哪怕是RH9自带的2.4.20-8也可以直接支持啊,干吗要自己编译驱动?

可是那为什么不能上网呢,ping自己可以,网关都ping不通:(
所以我估计是驱动安装的不好,所以才打算重新安装一下,就遇到了上面的问题了

libradeng 发表于 2004-8-18 22:29:47

make 不行,应该看之前./configure 时的提示。

解压之后的包里面,没有configure 文件:(
页: [1]
查看完整版本: 迷惑:网卡驱动make出错,无法上网——求救!