/usr/include/linux/rhconfig.h shouldn't be in kernel-headers. The idea is /usr/include/linux and /usr/include/asm are indepedent of the running kernel. Including the Redhat specific stuff in /usr/include/linux defeats its purpose. For the kernel-headers rpm, you should pick a config and do # make oldconfig # make dep # pack include/linux and include/asm