via rhine network card on Fedora 3.0
Hi,
I have a via rhine network card and I found its source driver on the site scyld.com...I've installed the kernel source (needed to compile the driver) and then I've typed the following command (written at the bottom of the via-rhine.c file):
make KERNVER=`uname -r` via-rhine.o
this command exit with some errors, here they are:
cc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -I/lib/modules/2.6.9-1.667/build/include/ -pipe -fno-strength-reduce -DMODVERSIONS -c -o via-rhine.o via-rhine.c
In file included from via-rhine.c:114:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from the appropriate kernel package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
In file included from /lib/modules/2.6.9-1.667/build/include/asm/processor.h:18,
from /lib/modules/2.6.9-1.667/build/include/asm/thread_info.h:16,
from /lib/modules/2.6.9-1.667/build/include/linux/thread_info.h:21,
from /lib/modules/2.6.9-1.667/build/include/linux/spinlock.h:12,
from /lib/modules/2.6.9-1.667/build/include/linux/capability.h:45,
from /lib/modules/2.6.9-1.667/build/include/linux/sched.h:7,
from /lib/modules/2.6.9-1.667/build/include/linux/module.h:10,
from via-rhine.c:116:
/lib/modules/2.6.9-1.667/build/include/asm/system.h: In function `__set_64bit_var':
/lib/modules/2.6.9-1.667/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.6.9-1.667/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /lib/modules/2.6.9-1.667/build/include/linux/irq.h:20,
from /lib/modules/2.6.9-1.667/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.9-1.667/build/include/linux/hardirq.h:6,
from /lib/modules/2.6.9-1.667/build/include/linux/interrupt.h:11,
from via-rhine.c:128:
/lib/modules/2.6.9-1.667/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /lib/modules/2.6.9-1.667/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.9-1.667/build/include/linux/hardirq.h:6,
from /lib/modules/2.6.9-1.667/build/include/linux/interrupt.h:11,
from via-rhine.c:128:
/lib/modules/2.6.9-1.667/build/include/linux/irq.h: At top level:
/lib/modules/2.6.9-1.667/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.6.9-1.667/build/include/linux/irq.h:72,
from /lib/modules/2.6.9-1.667/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.9-1.667/build/include/linux/hardirq.h:6,
from /lib/modules/2.6.9-1.667/build/include/linux/interrupt.h:11,
from via-rhine.c:128:
/lib/modules/2.6.9-1.667/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
via-rhine.c: In function `via_probe1':
via-rhine.c:483: warning: implicit declaration of function `init_etherdev'
via-rhine.c:483: warning: assignment makes pointer from integer without a cast
via-rhine.c: In function `netdev_open':
via-rhine.c:668: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
via-rhine.c:668: error: (Each undeclared identifier is reported only once
via-rhine.c:668: error: for each function it appears in.)
via-rhine.c:670: warning: passing arg 2 of `request_irq' from incompatible pointer type
via-rhine.c:671: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
via-rhine.c: In function `set_rx_mode':
via-rhine.c:1226: warning: passing arg 2 of `set_bit' from incompatible pointer type
via-rhine.c: In function `netdev_close':
via-rhine.c:1324: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
via-rhine.c: In function `via_pwr_event':
via-rhine.c:1339: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
via-rhine.c:1376: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
make: *** [via-rhine.o] Error 1
can someone help me to solve the problem???
Thanks a lot
|