Complete.Org: Mailing Lists: Archives: linux-help: August 2000:
[linux-help] How to compile a driver
Home

[linux-help] How to compile a driver

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: linux-help@xxxxxxxxx
Subject: [linux-help] How to compile a driver
From: Bruce Bales <bbales@xxxxxxxxxxx>
Date: Thu, 10 Aug 2000 15:26:33 -0500
Reply-to: linux-help@xxxxxxxxx

Got a new PCI network card - winbond-840 chip.  Found and downloaded the
driver.  It is the source code with .c extension.  Tried "gcc
winbond-840.c" and message said:

    Warning: see last lines of source file
    ERROR: you must compile this driver with -O
    pci-scan.h  no such file or directory
    kern_compat.h  no such file or directory

The last lines of the file contain:
     Local variables:
     *  compile-command: "gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c
winbond-840.c"
     *  simple-compile-command: "gcc -DMODULE -O6 -c winbond-840.c"
     *  c-indent-level: 4
     *  c-basic-offset: 4
     *  tab-width: 4
     * End:

I guess I can type all that in (without having any idea what it all
means), but I am unable to find the files pci-scan.h and kern_compat.h.
Can't find them on the scyld site where I got the driver, a search of
the net didn't work, and they're not on the cd.
Help.
bruce



-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]