kernel version needed error, and v89i compile problem
Greg J. Siekas
siekas@mailhost.tcs.tulane.edu
Thu Aug 6 22:04:30 1998
On Thu, 6 Aug 1998, Robert Burton wrote:
> After getting everything in, I tried to load the tulip.o module (v89H) and I
> get this error: "kernerl_version needed, but can't be found"
> I tried recompiling and that seemd to go fine. I tried looking at the source
> code some but quickly found it to be out of my league. The card is picked up
> by the BIOS and when doing a 'cat /proc/pci' the card information is there.
>
> 2nd problem. Try a newer driver, which there is one. But the 89I version
> wouldn't even compile, using the compile command at the end of the tulip.c
> file, I get:
>
> tulip.c: In function `tulip_probe':
> tulip.c:511: `PCI_VENDOR_ID_LITEON' undeclared (first use this function)
> tulip.c:511: (Each undeclared identifier is reported only once
> tulip.c:511: for each function it appears in.)
Download the driver via FTP. See
http://maximus.bmen.tulane.edu/~siekas/tulip.html for info.
[root@calvin ~]# gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
-Wstrict-prototypes -O6 -c tulip.c `[ -f /usr/include/linux/modversions.h
] && echo -DMODVERSIONS`
[root@calvin ~]#
This is on my redhat 5.1 system.
> I checked the source and found no other instances of PCI_VENDOR_ID_LITEON, so
> maybe I'm missing a header file? Again driver programming is a little beyond
> me.
>
> Any help with either of these problems would be greatly appreciated.
>
> I am using RedHat 4.0, kernel 2.0.18, nothing specially modified with the
> machine at all. There is a 3Com 905b card in the machine and the Netgear card
> is replacing a NE2000 ISA card. I will be moving to RedHat 5.1 soon, so if I
> should do that first please let me know.
Upgrading will probably solve your problems.
Greg