Operating System - Linux
1829314 Members
2468 Online
109989 Solutions
New Discussion

Re: Problems rebuilding hp-OpenIPMI

 
Jason_Pope
Occasional Advisor

Problems rebuilding hp-OpenIPMI

All,

I cannot get the hp-OpenIPMI drivers to rebuild. I keep getting this :
Building KERNEL VERSION 2.6.16.60-0.33-test-5 LINUX_BUILD_DIR: /lib/modules/2.6.16.60-0.33-test-5/source
make[1]: Entering directory `/usr/src/linux-2.6.16.60-0.33'
Makefile:450: .config: No such file or directory
rm -rf /opt/hp/hp-OpenIPMI/drivers/char/ipmi/.tmp_versions
mkdir -p /opt/hp/hp-OpenIPMI/drivers/char/ipmi/.tmp_versions

WARNING: Symbol version dump /usr/src/linux-2.6.16.60-0.33/Module.symvers
is missing; modules will have no dependencies and modversions.

make -f scripts/Makefile.build obj=/opt/hp/hp-OpenIPMI/drivers/char/ipmi
Building modules, stage 2.
make -rR -f /usr/src/linux-2.6.16.60-0.33/scripts/Makefile.modpost
/usr/src/linux-2.6.16.60-0.33/scripts/Makefile.modpost:38: .config: No such file or directory
make[2]: *** No rule to make target `.config'. Stop.
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.16.60-0.33'
BUILD ERROR: Build for KERNEL VERSION: 2.6.16.60-0.33-test-5 LINUX_BUILD_DIR: /lib/modules/2.6.16.60-0.33-test-5/source FAILED
Failed to Build for the currently running kernel. Exiting...
make: *** [build] Error 1

Has anyone come across this. Really urgent to get this going.

Thanks

4 REPLIES 4

Re: Problems rebuilding hp-OpenIPMI

Hi Jason,

Did you install the correct Kernel Sources (kernel-devel resp. kernel-source) package?


Cheers
- Thomas

Jason_Pope
Occasional Advisor

Re: Problems rebuilding hp-OpenIPMI

Yip... all installed.

I did a recompile of the kernel and I have been able to not get the warnings on the symvers but I am still getting /usr/src/linux-2.6.16.60-0.33/scripts/Makefile.modpost:38: .config: No such file or directory

Jason_Pope
Occasional Advisor

Re: Problems rebuilding hp-OpenIPMI

I have gotten a little further now and the only problem I am getting is :
BUILD ERROR: Build for KERNEL VERSION: 2.6.16.60-0.33 LINUX_BUILD_DIR: /lib/modules/2.6.16.60-0.33/source FAILED
Failed to Build for the currently running kernel. Exiting...

I have stripped out quite a lot from the kernel and recompiled successfully. Is there anything from the kernel that hp-OpenIPMI needs in order to compile ?
Jason_Pope
Occasional Advisor

Re: Problems rebuilding hp-OpenIPMI

Just on that note also, /lib/modules/2.6.16.60-0.33/source does exist as a symlink to the kernel source tree.