From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2 i686; Nav) kernel make modules fails Reproducible: Always Steps to Reproduce: 1.make modules 2. 3. Actual Results: make modules make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h" MAKING_MODULES=1 modules make[1]: Entering directory `/usr/src/linux-2.4.2/kernel' make[1]: Nothing to be done for `modules'. make[1]: Leaving directory `/usr/src/linux-2.4.2/kernel' make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h" MAKING_MODULES=1 modules make[1]: Entering directory `/usr/src/linux-2.4.2/drivers' make -C atm modules make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/atm' gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -g -c -o eni.o eni.c In file included from eni.c:6: /usr/src/linux/include/linux/module.h:173: nondigits in number and not hexadecimal /usr/src/linux/include/linux/module.h:173: nondigits in number and not hexadecimal /usr/src/linux/include/linux/module.h:173: nondigits in number and not hexadecimal /usr/src/linux/include/linux/module.h:173: nondigits in number and not hexadecimal /usr/src/linux/include/linux/module.h:173: parse error before `62dada05' /usr/src/linux/include/linux/module.h:173: `inter_module_register_R_ver_str' declared as function returning a function /usr/src/linux/include/linux/module.h:173: warning: function declaration isn't a prototype /usr/src/linux/include/linux/..... Here is preprocessed output: # 173 "/usr/src/linux/include/linux/module.h" extern void inter_module_register_R_ver_str(62dada05)(const char *, struct module *, const void *); extern void inter_module_unregister_R_ver_str(7a9e845e)(const char *); extern const void *inter_module_get_R_ver_str(f6a0ce24)(const char *); extern const void *inter_module_get_request_R_ver_str(b69f826b)(const char *, const char *); extern void inter_module_put_R_ver_str(6b99f7d8)(const char *);
What .config file did you use? And did you do a "make mrproper" before starting to build ? eg the sequence should be: make mrproper cp configs/kernel-2.4.2-XXXX.config .config make oldconfig make dep make bzImage make modules
I have the very same problem. It is happening when I have created new .config file with `make menuconfig' and also when I was using a copy of folowing file: kernel-2.4.2-i686.config from kernel-2.4.2-2.src.rpm Przemek
Did you do a make mrproper before starting?
OH by the way, if you want an athlon kernel, doing rpm --rebuild --target=athlon kernel-2.4.2-2.src.rpm will generate a kernel rpm optimised for athlons.
It is OK now, I'm not sure if make mrproper fixed it. BTW, I have avoided --target=athlon previously with RH7.0 because it wasn't handled correctly. I haven't tried it with the kernel, but if you did this to an arbitrary application it would just cause confusion when rpm thought it shouldn't install the package because it was the wrong target.
That is supposed to be fixed. And for the kernel, we even made a special athlon .config file.
Thank you, make mrproper have fixed it. Przemek