I'm trying to build a custom rpm for my kernel. I have installed right now the kernel-source package and kernel-2.4.22-1.2163.nptl.src.rpm . I edited the kernel-2.4.22-athlon.config to match my needs (no modules, removed some unneeded stuff) and I get the following error when trying to compile the kernel and build the rpm: module.c:72: redefinition of `register_module_notifier' /usr/src/linux-2.4.22-1.2163.nptl/include/linux/module.h:436: `register_module_notifier' previously defined here module.c:82: redefinition of `unregister_module_notifier' /usr/src/linux-2.4.22-1.2163.nptl/include/linux/module.h:442: `unregister_module_notifier' previously defined here make[2]: *** [module.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.22-1.2163.nptl/kernel' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2163.nptl/kernel' make: *** [_dir_kernel] Error 2 This is happening when issuing a rpmbuild -ba kernel-2.4.spec and also when I copy the kernel-2.4.22-athlon.config to /usr/src/linux-2.4.22-1.2163.nptl/.config and try to build the kernel using make oldconfig (twice); make dep ; make bzImage . Any ideas on how to fix this? Pedro Fernandes Macedo