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

Re: linux/config.h missing - can't build modules



On Tue, 2007-04-10 at 20:42 +0100, Hans du Plooy wrote:
> Hi guys,
> 
> I'm running the latest 2.6.21-rc kernels (to have my ACPI work - you
> know, switch on the fans when the CPU get too hot).
> 
> I'm having trouble building modules, and I'm not too clued up on how the
> kernel build system works.  I get this error:
> 
> theluggage:/usr/src/modules/spca5xx# make
>    Building SPCA5XX driver for 2.5/2.6 kernel.
>    Remember: you must have read/write access to your kernel source tree.
> make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/spca5xx
> CC=cc modules
> make[1]: Entering directory `/usr/src/linux-2.6.21-rc6'
>   CC [M]  /usr/src/modules/spca5xx/drivers/usb/spca5xx.o
> /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:39:26: error:
> linux/config.h: No such file or directory
> 
> Now I checked, in the kernel source of 2.6.18 as shipped with Etch/Sid,
> config.h is in /usr/src/linux-source-2.6.18/include/linux/config.h
> but in 2.6.21 there is no config.h in include/linux/
> 
> How do I get around this?

It is called being ahead of the game in general. When you are to far
ahead of the game in Debian, you sometimes suffer badly. Many modules
(including ones like the nvidia stuff, but for different reasons) don't
compile well with m-a (or at all) with the current lay of the land in
2.6.2X kernels right now.

VMware had this same config.h problem, until I used v5.5.3.

The only fix right now, is a patch, which I don't think exists yet.
-- 
greg, greg@gregfolkert.net

Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: