LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fixing the kernel configuration (https://www.linuxquestions.org/questions/linux-newbie-8/fixing-the-kernel-configuration-737362/)

MahendraL 07-02-2009 11:03 PM

Fixing the kernel configuration
 
Hi,
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.

[snip]

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,
Mahendra

Simon Bridge 07-03-2009 01:11 AM

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


All times are GMT -5. The time now is 07:04 PM.