Alex Hunsley <[EMAIL PROTECTED]> writes:
> I'm trying to compile the 3c90x netcard driver from 3com.
> First time I try, I get this:
> 
> 3c90x.h:22: linux/modversions.h: No such file or directory
> In file included from /usr/include/linux/sched.h:13,
>                  from 3c90x.h:36,
>                  from 3c90x.c:1:

The header files in /usr/include/linux aren't intended to be used to
build actual kernel modules; see /usr/share/doc/libc6/README.Debian.gz.

> so I remembered I need to install the kernel source.  I've installed
> it (and made sure it's at /usr/src/linux) and followed the
> instructions at
> 
> http://www.tldp.org/HOWTO/mini/PCTel-MicroModem-Config/trouble.html#AEN468

The kernel source doesn't need to be in /usr/src/linux, but for
building modules, you do need to make sure that your .config file
matches the running kernel (or, more correctly, the kernel the module
will be running with).  You'll also somehow need to point the build
scripts for the module to point at your actual kernel source (in your
case, to /usr/src/linux/include).

(Have you tried the 3c59x driver actually in the kernel source?  It
would appear to work for many 3c90x cards...)

-- 
David Maze         [EMAIL PROTECTED]      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
        -- Abra Mitchell


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to