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 rhconfig.h include. Version-Release number of selected component (if applicable): # cat /etc/redhat-release Red Hat Enterprise Linux ES release 3 (Taroon) # rpm -q kernel-source kernel-source-2.4.21-15.0.3.EL kernel-source-2.4.21-27.0.2.EL How reproducible: Always Steps to Reproduce: 1.make oldconfig 2.make dep 3.make bzImage Actual results: Various strange build errors. Expected results: A shiny new kernel... Additional info:
Created attachment 114285 [details] Rules.make patch to fix that.
Hi, 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! Thanks.
Hi, Colin. 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. Cheers. -ernie