[realtek] Trouble compiling hp1207d.c

Donald Becker becker@scyld.com
Sat, 24 Feb 2001 00:11:11 -0500 (EST)


On Fri, 23 Feb 2001, Stephen Shaver wrote:

> I'm a newcomer to Linux; last week I installed Red Hat 7.0 on my HP 
> Pavilion.  Red Hat doesn't autodetect my HP 1207D ethernet card, but Windows 
> autodetects it as a Realtek 8139(a) based card.  But when I've tried using 
> the rtl8139 module under Linux, the module loads but the network card still 
> doesn't work.  After searching quite a bit, I found a driver hp1207d.c on 
> HP's web page.

>From where?

>  The instructions for compiling are at the bottom of the 
> file:
> 
> gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c hp1207d.c `[ -f 
> /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`

Hmmm, this looks like a renamed version of the rtl8139.c driver.
   http://www.scyld.com/network/rtl8139.html

> but when I try doing this, I get the following message:
> In file included from hp1207d.c:61:
> /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 headers from an appropriate 
> kernel-source

Put -I/usr/src/linux/include on the compile line.

See
  http://www.scyld.com/network/updates.html#redhat7.0

Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993