Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-02-2009, 11:03 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 24

Rep: Reputation: 0
Question Fixing the kernel configuration

while compiling a kernel module for mips-64 using a cross compiler,
I got following errors.

make -C /usr/local/Cavium_Networks/OCTEON-SDK/linux/kernel_2.6/linux/ M=/proj/mars/mladhe/p4/packet_api/kerneldemo modules
make[1]: Entering directory `/usr/local/Cavium_Networks/OCTEON-SDK/linux/kernel_2.6/linux'

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/local/Cavium_Networks/OCTEON-SDK/linux/kernel_2.6/linux/Module.symvers
is missing; modules will have no dependencies and modversions.


So as instructed by above error messages, I went to kernel source
directory and typed
make oldconfig && make prepare

But that is giving me following errors.

HOSTCC scripts/basic/fixdep
scripts/basic/fixdep: 1:EL: not found
scripts/basic/fixdep: 2: : not found
scripts/basic/fixdep: 3:*: not found
scripts/basic/fixdep: 4: Syntax error: word unexpected (expecting ")")
make[1]: *** [scripts/basic/fixdep] Error 2
make: *** [scripts_basic] Error 2

I googled for these error messages, but didn't find any link.
What are these error messages and how to fix them.

Thank you,
Old 07-03-2009, 01:11 AM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
My first thought is that you do not have all the source code - perhaps you don't have the headers?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Diff between Kernel Compilation and Kernel Configuration ?? vikas027 Linux - Enterprise 8 09-20-2008 01:01 AM
fixing kernel errors entropyguy Linux - Newbie 0 10-13-2004 06:01 PM
New FAQ topic: Should I edit my kernel configuration?/Should I build a custom kernel? chort *BSD 10 09-10-2004 11:15 PM
mandrake 9.1 fixing tweaking kernel JUDOLIZARD Linux - Newbie 4 12-15-2003 03:30 PM
Kernel Configuration Ryan#1 Linux - Newbie 5 09-09-2003 02:45 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration