Red Hat Bugzilla – Bug 157520
make dep breaks build
Last modified: 2007-11-30 17:07:07 EST
Description of problem:
If you issue a `make dep` after make config (or oldconfig), the
include/linux/modversions.h file is incorrectly regenerated. It misses the
Version-Release number of selected component (if applicable):
# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon)
# rpm -q kernel-source
Steps to Reproduce:
Various strange build errors.
A shiny new kernel...
Created attachment 114285 [details]
Rules.make patch to fix that.
nothing new about this?
Not yet. Obviously, "make dep" works fine in our internal build
environment. I just need to track down what's different.
Ok; don't hesitate on bugging me for more information!
The correct build-from-source procedure is as follows:
1) make mrproper
2) cp configs/kernel-2.4.21-i686-smp.config .config [or some other config]
3) make oldconfig
4) make dep
5) make bzImage
6) make modules
The Rules.make patch that you proposed in comment #1 does not work in our
build environment because include/linux/rhconfig.h does not exist. Rather,
it is fabricated by the kernel spec file during kernel-source-* RPM builds.
Once you run "make dep", many things specific to the kernel-source-* RPM
(e.g., the funky include/linux/modules/*.ver files) are overwritten, and
thus you are forced to use the full build (from scratch) procedure above.