From Bugzilla Helper: User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2 i686) I thought maybe I had removed a needed component so I did a complete reinstall and tried it and got the same thing. Wiith or wthout making any kernel config changes the kernel refuses to build the modules, failing on the first module the config falls for. Changing the kernel config to add or remove drivers as modules will cause the system to fail on whatever the new first module to be built is. Help! Reproducible: Always Steps to Reproduce: 1.Do an install based on the downloadable RHL 7.1 CD ISO images, installing the normal set of packages that would be required to rebuild the kernel 2.cd into the kernal source tree 3.run "make menuconfig" and when it comes up just exit without making any changes 4.Now run "make dep;make". This should run and complete normally with a fresh vmlinux 5.Now do "make modules" Actual Results: It should fail on the first module it has to build, which for me with the default config is "net/dummy.o". If you edit the config and add some more drivers to be built as modules then do the "make dep;make" part again it will fail on whatever the new first module is with the same errors in the same file: make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/net' gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4/include/linux/modversions.h -c -o dummy.o dummy.c In file included from /usr/src/linux-2.4/include/linux/spinlock.h:35, from /usr/src/linux-2.4/include/linux/module.h:11, from dummy.c:34: /usr/src/linux-2.4/include/asm/spinlock.h:8: nondigits in number and not hexadecimal /usr/src/linux-2.4/include/asm/spinlock.h:8: nondigits in number and not hexadecimal /usr/src/linux-2.4/include/asm/spinlock.h:8: parse error before `1b7d4074' /usr/src/linux-2.4/include/asm/spinlock.h:9: `printk_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/asm/spinlock.h:9: warning: function declaration isn't a prototype Expected Results: Should have built up the dynamicly loadable modules
You MUST load the config file of the kernel you are running first (see the config directory) and if you change a lot, you also must run make mrproper. *** This bug has been marked as a duplicate of 38133 ***