[Techtalk] Error installing the driver of my 10/100MB Ethernet card

Samer Yhya samer-yhya at yahoo.com
Tue Oct 29 12:10:25 EST 2002


I'm trying to install a driver for my ethernet card on
my Linux PC. I have RedHat8.0 kernel 2.4

I have the driver files provided by the card
manufacturer "www.sweex.com". It's a tar.gz file
containg five files (kern_compat.h , Makefile ,
mtd80x.c , pci-scan.c , pci-scan.h). I followed the
instructions to the letter but when I type in the
"make" command it returns an error message: "make: ***
[pci-scan.o] Error 1" (the full make output is given
at the bottom).

I can see that Linux detected the network card in
controll center (in KDE) ubder: information->PCI
00:0b.0 Ethernet controller: MYSON Technology Inc
SURECOM EP-320x-s 100/10M Ethernet PCI Adapter....

Does that mean that I don't nead to indtall the driver
or is it still nesessary? Can you see from the make
output what the problem is?
It's a shame to have the right driver and still not be
abel to install the card  :(
Please help

PS. On windows 98&2000 it was recognized with no
problems. I'm actually using it now to get on the
internet.

My system:
Celeron 400 MHZ
128+64 MB RAM



make full output:
-----------------

[root at localhost linux-2.4.x]# touch *
[root at localhost linux-2.4.x]# make clean
rm -f *.o
[root at localhost linux-2.4.x]# make
gcc -DMODULE -D__KERNEL__  -I/usr/src/linux/include -O
-Wall -Wstrict-prototypes   -c -o pci-scan.o
pci-scan.c
In file included from /usr/include/linux/fs.h:23,
                 from
/usr/include/linux/capability.h:17,
                 from /usr/include/linux/binfmts.h:5,
                 from /usr/include/linux/sched.h:9,
                 from /usr/include/linux/mm.h:4,
                 from pci-scan.c:62:
/usr/include/linux/string.h:8:2: warning: #warning
Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/mm.h:4,
                 from pci-scan.c:62:
/usr/include/linux/timex.h:173: field `time' has
incomplete type
In file included from /usr/include/linux/bitops.h:69,
                 from /usr/include/asm/system.h:7,
                 from /usr/include/linux/sched.h:16,
                 from /usr/include/linux/mm.h:4,
                 from pci-scan.c:62:
/usr/include/asm/bitops.h:333:2: warning: #warning
This includefile is not available on all
architectures.
/usr/include/asm/bitops.h:334:2: warning: #warning
Using kernel headers in userspace.
In file included from /usr/include/linux/signal.h:4,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/mm.h:4,
                 from pci-scan.c:62:
/usr/include/asm/signal.h:107: parse error before
"sigset_t"
/usr/include/asm/signal.h:110: parse error before '}'
token
In file included from /usr/include/linux/sched.h:81,
                 from /usr/include/linux/mm.h:4,
                 from pci-scan.c:62:
/usr/include/linux/timer.h:45: parse error before
"spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}'
token
/usr/include/linux/timer.h:67: parse error before
"tvec_base_t"
/usr/include/linux/timer.h:101: parse error before
"tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer
to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer
to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer
to incomplete type
/usr/include/linux/timer.h: In function
`timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer
to incomplete type
In file included from pci-scan.c:67:
/usr/include/linux/malloc.h:3:2: warning: #warning The
Use of linux/malloc.h is deprecated, use linux/slab.h
pci-scan.c: In function `pci_drv_register':
pci-scan.c:149: warning: implicit declaration of
function `pci_find_class'
pci-scan.c:149: warning: assignment makes pointer from
integer without a cast
pci-scan.c:157: warning: implicit declaration of
function `pci_read_config_dword'
pci-scan.c:163: warning: implicit declaration of
function `printk'
pci-scan.c:163: `KERN_DEBUG' undeclared (first use in
this function)
pci-scan.c:163: (Each undeclared identifier is
reported only once
pci-scan.c:163: for each function it appears in.)
pci-scan.c:163: parse error before string constant
pci-scan.c:164: warning: left-hand operand of comma
expression has no effect
pci-scan.c:164: warning: left-hand operand of comma
expression has no effect
pci-scan.c:164: parse error before ')' token
pci-scan.c:178: dereferencing pointer to incomplete
type
pci-scan.c:187: `KERN_INFO' undeclared (first use in
this function)
pci-scan.c:187: parse error before string constant
pci-scan.c:188: dereferencing pointer to incomplete
type
pci-scan.c:188: warning: left-hand operand of comma
expression has no effect
pci-scan.c:188: warning: left-hand operand of comma
expression has no effect
pci-scan.c:188: warning: left-hand operand of comma
expression has no effect
pci-scan.c:188: parse error before ')' token
pci-scan.c:191: dereferencing pointer to incomplete
type
pci-scan.c:191: dereferencing pointer to incomplete
type
pci-scan.c:192: dereferencing pointer to incomplete
type
pci-scan.c:193: `KERN_WARNING' undeclared (first use
in this function)
pci-scan.c:193: parse error before string constant
pci-scan.c:208: warning: implicit declaration of
function `ioremap'
pci-scan.c:210: parse error before string constant
pci-scan.c:216: warning: implicit declaration of
function `pci_read_config_word'
pci-scan.c:219: parse error before string constant
pci-scan.c:222: warning: implicit declaration of
function `pci_write_config_word'
pci-scan.c:226: dereferencing pointer to incomplete
type
pci-scan.c:231: warning: implicit declaration of
function `pci_set_master'
pci-scan.c:234: warning: implicit declaration of
function `pci_read_config_byte'
pci-scan.c:236: parse error before string constant
pci-scan.c:239: warning: implicit declaration of
function `pci_write_config_byte'
pci-scan.c:246: warning: implicit declaration of
function `kmalloc'
pci-scan.c:246: `GFP_KERNEL' undeclared (first use in
this function)
pci-scan.c:246: warning: initialization makes pointer
from integer without a cast
pci-scan.c:259: warning: implicit declaration of
function `atomic_inc'
pci-scan.c:259: union has no member named `usecount'
pci-scan.c: In function `pci_drv_unregister':
pci-scan.c:422: warning: implicit declaration of
function `atomic_dec'
pci-scan.c:422: union has no member named `usecount'
pci-scan.c:429: warning: implicit declaration of
function `kfree'
pci-scan.c: In function `acpi_wake':
pci-scan.c:489: warning: implicit declaration of
function `pci_write_config_dword'
pci-scan.c: In function `cleanup_module':
pci-scan.c:522: `KERN_WARNING' undeclared (first use
in this function)
pci-scan.c:522: parse error before string constant
make: *** [pci-scan.o] Error 1
[root at localhost linux-2.4.x]#

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/



More information about the Techtalk mailing list