LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-30-2005, 03:39 AM   #1
misterwhite
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
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
 
Old 08-30-2005, 04:25 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Why do you need to install third party drivers when Linux already supports your card with its own builtin drivers?
 
Old 08-31-2005, 04:11 AM   #3
misterwhite
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Original Poster
Rep: Reputation: 0
It seems that my network lan is not working by configuring it with the Fedora's utility
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
via-rhine driver for LNE100M Linksys card networking problem... gfreit Linux - Networking 0 04-10-2005 10:02 PM
via-rhine driver for LNE100M Linksys card networking problem... gfreit Linux - Wireless Networking 1 04-08-2005 05:00 PM
Network Wont Start, VIA Rhine fast II ethernet driver Simon7891 Linux - Hardware 3 02-06-2005 04:45 AM
Installing A Via Rhine III as a second network Redempteur Linux - Hardware 1 10-11-2004 08:16 PM
via-rhine ethernet card with 2.4.21 kernel RonNave Linux - Networking 0 08-13-2003 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration