Compiling a LAN driver

Andrew Bartlett abartlet at samba.org
Tue Jul 30 22:02:54 EST 2002


> Phil and Marlene Carter wrote:
> 
> G'day all.
> 
> Thanks to everyone who replied to my request for help with Transact.
> 
> Paul, I read about the problems with RH pppoe early in the piece. I
> got a new version of rp-pppoe.
> 
> Chris, the Transact installers tested the connection while they were
> here. It worked OK, but I still can't get connected.
> 
> I thought I'd compile a new LAN driver from the source that I got with
> the card, rather than use the generic driver. Simple 5 minute
> job... Here is the gcc compile command recommended in the doco:

While it's nice they include it, it's just so they can put the badge on
the box - it's just the driver out of the kernel normally, and the on
already on your system would be for your exact kernel version.

> gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c re100tx.c
> `[ -f /usr/include/modversions.h ] && echo -DMODVERSIONS`
> 
> Running this command produces errors such as:
> 
> re100tx.c:692: structure has no member named "tbusy"
> 
> and no executable. I found a web site that indicated I need some other
> files, pci-scan.c, pci-scan.h and kern_compat.h. Got them too.
> 
> Can someone suggest a reason why this compile didn't work?

Your kernel and the one the drivers were last updated for are not the
same.

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net




More information about the linux mailing list