Hi,

Where did you get this rtl8139 driver from? Is it supposed to compile
with Linux 2.4.18 at all?

Best thing would be using the driver that comes with the kernel; thus,
if you have problems with 2.4.18, just upgrade the whole kernel.

- Oren

On Wed, 2003-10-15 at 01:21, RedBar0n wrote:
> Hi list,
> I'm trying to compile the new driver fir my RealTek 8139 (because of another
> problem), and I'm getting an error msg:
> the command I use: gcc -DMODULE -D__KERNEL__ -O6 -c 8139too.c
> in /usr/src/linux-2.4.18-14/drivers/net
> --------- 
> :
> :
> :
> 8139too.c:2627: unknown field `name' specified in initializer
> 8139too.c:2627: warning: excess elements in struct initializer
> 8139too.c:2627: warning: (near initialization for `rtl8139_pci_driver')
> 8139too.c:2628: unknown field `id_table' specified in initializer
> 8139too.c:2628: warning: excess elements in struct initializer
> 8139too.c:2628: warning: (near initialization for `rtl8139_pci_driver')
> 8139too.c:2629: unknown field `probe' specified in initializer
> 8139too.c:2629: warning: excess elements in struct initializer
> 8139too.c:2629: warning: (near initialization for `rtl8139_pci_driver')
> 8139too.c:2630: unknown field `remove' specified in initializer
> 8139too.c:2630: warning: excess elements in struct initializer
> 8139too.c:2630: warning: (near initialization for `rtl8139_pci_driver')
> 8139too.c: In function `rtl8139_init_module':
> 8139too.c:2644: `KERN_INFO' undeclared (first use in this function)
> 8139too.c:2644: parse error before string constant
> 8139too.c: At top level:
> 8139too.c:586: storage size of `thr_exited' isn't known
> 8139too.c:590: storage size of `mii' isn't known
> 8139too.c:2626: storage size of `rtl8139_pci_driver' isn't known
> ----------- 
> but if I take the Makefile from the driver + all *.c files TAR into the
> /usr/src/...../drivers/net and the hit the comman "make" I'll get this:
> --------- 
> gcc -O2 -fomit-frame-pointer -D__KERNEL__ -I/usr/src/linux-2.4/include/ -DCP
> U=586 -march=i586 -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-st
> rict-aliasing -pipe -DMODULE -c 8139too.c
> 8139too.c: In function `netdev_ethtool_ioctl':
> 8139too.c:2407: `ETHTOOL_GSTATS' undeclared (first use in this function)
> 8139too.c:2407: (Each undeclared identifier is reported only once
> 8139too.c:2407: for each function it appears in.)
> 8139too.c:2408: variable `estats' has initializer but incomplete type
> 8139too.c:2408: warning: excess elements in struct initializer
> 8139too.c:2408: warning: (near initialization for `estats')
> 8139too.c:2408: storage size of `estats' isn't known
> 8139too.c:2408: warning: unused variable `estats'
> make: *** [8139too.o] Error 1
> -------- 
> I don't knew if this is the best way to do this, but all the in all the
> googling time is spend I found those advices...
> I'm using RH 8.0 GCC version 3.2...
> TIA...
> 
> P.S. I have a strange filling that the cause of all this is the gcc 3.X, but
> this is just a hinch
> 
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 
> 


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to