For some dummy .c file, with a Makefile with "obj-m := foo.o", make -C /lib/modules/`uname -r`/build O=/tmp modules make: Entering directory `/usr/src/kernels/2.6.33.5-rt23.23.el5rt-x86_64' scripts/kconfig/conf -s arch/x86/Kconfig *** *** You have not yet configured your kernel! *** (missing kernel config file ".config") *** *** Please run some configurator (e.g. "make oldconfig" or *** "make menuconfig" or "make xconfig"). *** make[3]: *** [silentoldconfig] Error 1 make[2]: *** [silentoldconfig] Error 2 The present kernel configuration has modules disabled. Type 'make config' and enable loadable module support. Then build a kernel with module support enabled. make[1]: *** [modules] Error 1 make: *** [sub-make] Error 2 make: Leaving directory `/usr/src/kernels/2.6.33.5-rt23.23.el5rt-x86_64' % rpm -q kernel-rt-devel kernel-rt-devel-2.6.24.7-158.el5rt.x86_64 kernel-rt-devel-2.6.33.5-rt23.23.el5rt.x86_64 % rpm -q kernel-rt kernel-rt-2.6.24.7-158.el5rt.x86_64 kernel-rt-2.6.33.5-rt23.23.el5rt.x86_64 Note that CONFIG_MODULES=y in the /boot/config-.... file. Trying a systemtap run on the same kernel includes these errors: test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo; \ echo " ERROR: Kernel configuration is invalid."; \ echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo; \ /bin/false) ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it.
Created attachment 454472 [details] build: add missing files to the kernel-rt-devel package Until we rewrite the spec from scratch, this is the simplest solution.
*** Bug 587388 has been marked as a duplicate of this bug. ***
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: * Cause: kernel-rt specfile was missing crypto, drm, generated, and trace header directories when generating kernel-rt-devel package * Consequence: out-of-tree modules failed to build * Fix: copy the above directories into the rpm * Result: out-of-tree modules able to build
*** Bug 659556 has been marked as a duplicate of this bug. ***
Verified by trying to compile hp-igb-2.2.9 [1]. With kernel-rt-devel-2.6.33.7-rt29.45 it was not possible to do rpmbuild --rebuild hp-igb-2.2.9-2.src.rpm. By updating to kernel-rt-devel-2.6.33.7-rt29.47, the RPMs where build without any issues. [1] http://downloads.linux.hp.com/SDR/psp/suse_linux/11/i586/8.50/hp-igb-2.2.9-2.src.rpm
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2010-0958.html