Re: linux/config.h missing - can't build modules
On Tue, Apr 10, 2007 at 08:42:09PM +0100, Hans du Plooy wrote: I'm having trouble building modules, and I'm not too clued up on how the kernel build system works. I get this error: If this will be the only error, then you are quite happy. linux/config.h is now named linux/autoconf.h. So you can edit the module source and change the include lines or you can create a symlink from autoconf.h to config.h. Shade and sweet water! Stephan -- | Stephan SeitzE-Mail: [EMAIL PROTECTED] | | PGP Public Keys: http://fsing.rootsland.net/~stse/pgp.html | signature.asc Description: Digital signature
Re: linux/config.h missing - can't build modules
On Wed, April 11, 2007 10:15, Stephan Seitz wrote: On Tue, Apr 10, 2007 at 08:42:09PM +0100, Hans du Plooy wrote: I'm having trouble building modules, and I'm not too clued up on how the kernel build system works. I get this error: If this will be the only error, then you are quite happy. linux/config.h is now named linux/autoconf.h. So you can edit the module source and change the include lines or you can create a symlink from autoconf.h to config.h. Great! Thanks! It's not the only error, but the rest of the errors appears to be the result (missing references, undefined this or that). I'll try this tonight - left my notebook at home. I guess I can just make a symlink? Thank! Hans -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: linux/config.h missing - can't build modules
On Wed, Apr 11, 2007 at 11:59:23AM +0100, Hans du Plooy wrote: Great! Thanks! It's not the only error, but the rest of the errors appears to be the result (missing references, undefined this or that). Don’t worry, the next errors may come after *this* problem is solved. ;-) Espcially if the module needs network variables. I'll try this tonight - left my notebook at home. I guess I can just make a symlink? Yes, this is probably the easiest solution. Shade and sweet water! Stephan -- | Stephan SeitzE-Mail: [EMAIL PROTECTED] | | PGP Public Keys: http://fsing.rootsland.net/~stse/pgp.html | signature.asc Description: Digital signature
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, [EMAIL PROTECTED] 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 signature.asc Description: This is a digitally signed message part
Re: linux/config.h missing - can't build modules
On Tue, 2007-04-10 at 15:56 -0400, Greg Folkert wrote: 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, thanks. I should have mentioned that *all* modules I try to compile fail this way. If it was one or two I would have put it down to incompatibility with the new kernel, but in earlier rc versions of 2.6.21 (I think rc2) everything compiled quite fine. Thanks anyways - guess I'll have to be patient. Hans -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]