[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: modversion.h ?



> I'm using debian testing with kernel 2.2.18pre21 and am
> trying to compile modules for my NVIDIA TNT2 card,

This is off topic for this list.  Please post user issues to
debian-user.  This list is for mentoring new debian maintainers
or other issues involving in creating debian packaging.

> In file included from os-registry.c:67:
> /usr/src/kernel-source-2.2.18pre21/include/linux/module.h:19: linux/modversions.h: No such file or directory

This means that you have the kernel source, but it hasn't been configured.
You must run make config, make menuconfig, make oldconfig, or
make xconfig and set and save your kernel configuration options, and that
will create this file.  You should set the same configuration options as were
used to compile your currently running kernel.

If you're using one of the stock debian kernels, then you can install
the kernel-headers package which have the corresponding headers for
that particular kernel, and that will contain this file.

I also don't recommend sticking anything in your kernel you don't have
source for.  If you're trying to use binary-only non-free modules
released by nvidia, you're voluntarily giving up your freedom.  You're
better off switching to hardware that has open specs and open drivers.
Buy Matrox or ATI or just about anything else.

Eric



Reply to: