Hi.
Can somebody help me build the NVIDIA kernel. I try
rpmbuild --rebuild NVIDIA_kernel-1.0-3123.src.rpm
and get this (complete error msg. (http://www.mip.sdu.dk/~rolft/nvidia_error.txt))
RPM build errors:
user buildmeister does not exist - using root
group buildmeister does not exist - using root
user buildmeister does not exist - using root
group buildmeister does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.43478 (%install)
I mean that I have installed the right packages need (described earlier)
Kind regards
Rolf.
The build process is using header files in /usr/include/linux. This is not right -- that version of the linux/*.h files is specifically there to be a reference as to what you were using when glibc was compiled. They should not and most likely will not match your running kernel.
The header files you want to be using are in /lib/modules/$(uname -r)/build/include
To get the NVIDIA_kernel Makefile to use that version, the build symlink has to exist, and it has to point to the root of an installed and configured kernel source tree. These trees are usually under /usr/src/linux-<version>, but not always.
Anyway, for a solution to the problem, install your kernel-source-<version> package. kernel-headers, while some people say they will work, may very well not work also. I've always used kernel-source, and never had a problem.
First, find out which kernel is running. uname -r will tell you.
Then, if that's the kernel your distro installed by default (i.e. you haven't run up2date on it), plop in your distro's CDs and see if you can install kernel-source-<version>, where <version> is the output of uname -r.
If you have up2date'd your kernel, then see if up2date can install the proper kernel-source package as well. It should be able to.
Once you've done that, go into /usr/src/linux-<version>, and run make mrproper. Then, look around for a config file that matches your architecture (i686 vs. i386 vs. Athlon), SMP-ness, and other kernel configuration info (like -enterprise, if applicable). cp it to /usr/src/linux-<version>/.config, cd back to /usr/src/linux-<version>, and run make oldconfig from there. Then run make dep from there as well.
Then make sure that the proper build symlink exists:
ln -sf /usr/src/linux-<version> /lib/modules/$(uname -r)/build
Then try the rpmbuild again.
thanks alot... You solved my problem.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.