Red Hat Bugzilla – Bug 121849
kbuild external modules requires writable kernel source
Last modified: 2015-01-04 17:05:26 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;)
Description of problem:
The kernel sources provided in /lib/modules/*/build work well to
build external modules, however, they try to write ./.__modpost.cmd
into the top level kernel directory while building, which fails when
building modules as a non-root user.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. obtain an external module source
2. be not root
3. make -C /lib/modules/VER/build SUBDIRS=/path/to/mod modules
Actual Results: module build fails
Expected Results: module build succeeds
you need to be root to load them anyway so for sure not a super big deal.
Please include this patch:
to fix external module building for 2.6. This is needed in both FC2
and RHEL4. Upping the severity as this is a Dell concern for DKMS to
function on these kernels.
dropping the severity because I really don't care much. You need to be
root to insmod a kernel module after all, being root somewhat sooner
isn't a big deal.
aha, I misread the bug. In general, the external module building is
broken in FC2-T3. Specifically, the FC2T3 kernel itself works okay
to build modules externally. But, if you recompile the kernel,
the /lib/modules/$kernelver/build directory changes back to the old
symlink style to /usr/src and thereafter, external module building is
broken. Would you prefer that I open a separate bugzilla?
recompiling is unsupported in that if things break you get to hold two
fixed in 2.6.9 based update ?
I removed my workaround from my module rpm's spec file and it successfully built
under a non-root user, so it does seem to be fixed using kernel-2.6.9-1.6_FC2.