Fedora Linux Support Community & Resources Center
Old 9th July 2007, 02:59 AM
hanumant Offline
Registered User
Join Date: Jul 2007
Posts: 2
Kernel configuration is invalid. include/linux/autoconf.h or include/config

i am a newb and this is what i got when i tried to make a simple hello module.
core 2.6.21-1.3228.fc7

this is the full output

[gooner@localhost ~]$ make -C /usr/src/redhat/BUILD/kernel-2.6.21/vanilla M=`pwd` modules
make: Entering directory `/usr/src/redhat/BUILD/kernel-2.6.21/vanilla'

ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

WARNING: Symbol version dump /usr/src/redhat/BUILD/kernel-2.6.21/vanilla/Module.symvers
is missing; modules will have no dependencies and modversions.

scripts/Makefile.build:17: /home/gooner/Makefile: No such file or directory
make[1]: *** No rule to make target `/home/gooner/Makefile'. Stop.
make: *** [_module_/home/gooner] Error 2
make: Leaving directory `/usr/src/redhat/BUILD/kernel-2.6.21/vanilla'

what should i do???
Reply With Quote
Old 9th July 2007, 05:37 PM
SteveGYBE Offline
Registered User
Join Date: Jun 2007
Location: Lytham St Annes, Lancashire, UK
Posts: 682
Have you installed the kernel development package? These include the kernel header files - try "rpm -q kernel-devel" if you are not sure - it should come back with "kernel-devel-2.6.21-1.3228.fc7" if they are installed. If not, "yum install kernel-devel" should fix this.

If they are no longer in the default location (mine are in /usr/src/kernels/2.6.21-1.3228.fc7-i686/include), you may need to tell "make" where they are with the -I <include path> flag (Upper Case i). Worth a try even if they are there.

Last edited by SteveGYBE; 9th July 2007 at 05:40 PM.
Reply With Quote

configuration, include or config, invalid, kernel

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
why does not /usr/include/linux/fs.h include declaration of 'struct file' data type? chenhedui Using Fedora 3 24th April 2006 03:55 PM

Current GMT-time: 03:38 (Tuesday, 22-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat