Hi,
while trying to get modified red hat kernels to build for a project of mine, I came across something I did not completely understand. So I backstepped and tried to build a general Red Hat kernel with no other modifications than the red hat patches.
Attempt 1 consisted of downloading the kernel-source RPM, going into the /usr/src/linux-(version) tree, copying the BOOT config from configs to .config, then running make dep modules.
The build fails for the first time while building megarac.o After removing this from .config, I run into the next module problem, and then the next, and the next, and so on, I quickly gave up because I had to take out modules I needed.
I tried this both on the original RH9 kernel-source rpm and the most recent one.
Attempt 2 consisted of downloading the kernel src.rpm, installing that, then just building from the installed spec file. That seems to work a lot better.
Now, my question. I was under the impression that the source tree installed by the kernel-source rpm was the same source tree as the stock kernel tree, with all the redhat patches applied. Is this not (or no longer) the case ?
Why would there be a difference ? Is it reasonable for me to expect kernel-source to build out of the box ?
Thanks Thomas
Dave/Dina : future TV today ! - http://davedina.apestaart.org/ <-*- thomas (dot) apestaart (dot) org -*-> My shite shits on your shite <-*- thomas (at) apestaart (dot) org -*-> URGent, best radio on the net - 24/7 ! - http://urgent.rug.ac.be/
while trying to get modified red hat kernels to build for a project of mine, I came across something I did not completely understand. So I backstepped and tried to build a general Red Hat kernel with no other modifications than the red hat patches.
Did you remember to start out with a "make mrproper"? If you don't do that, the kernel will *NOT* compile.
Attempt 2 consisted of downloading the kernel src.rpm, installing that, then just building from the installed spec file. That seems to work a lot better.
That's a bit ambiguous to me. Did you install the src.rpm and then do a
rpmbuild -ba kernel-x.x-x.x
Otherwise, I'm not sure just from what you wrote how you used the spec file to build a new kernel.
Now, my question. I was under the impression that the source tree installed by the kernel-source rpm was the same source tree as the stock kernel tree, with all the redhat patches applied. Is this not (or no longer) the case ?
Nope. The only place you have the pristine kernel source is in the .src.rpm. In the build process (as detailed in the spec file) a *TON* of patches are applied.
Why would there be a difference ? Is it reasonable for me to expect kernel-source to build out of the box ?
Yes. I'd guess you forgot the "make mrproper" part.
-Chuck
On Fri, Aug 15, 2003 at 07:06:01PM +0200, Thomas Vander Stichele wrote:
Attempt 1 consisted of downloading the kernel-source RPM, going into the /usr/src/linux-(version) tree, copying the BOOT config from configs to .config, then running make dep modules.
You need "make mrproper" first.
michaelkjohnson
"He that composes himself is wiser than he that composes a book." Linux Application Development -- Ben Franklin http://people.redhat.com/johnsonm/lad/