Bug 121849

Summary: kbuild external modules requires writable kernel source
Product: [Fedora] Fedora Reporter: Gerald Britton <gbritton>
Component: kernelAssignee: Dave Jones <davej>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: low    
Version: 2CC: pfrields, us_linux_engineering
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-07 16:14:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gerald Britton 2004-04-28 17:07:46 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;)
Gecko/20020623 Debian/1.2.5-0.woody.1

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):
kernel-2.6.5-1.327

How reproducible:
Always

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

Additional info:

Comment 1 Arjan van de Ven 2004-04-28 17:09:34 UTC
you need to be root to load them anyway so for sure not a super big deal.

Comment 2 Gary Lerhaupt 2004-05-03 21:36:23 UTC
Please include this patch:

http://linus.bkbits.net:8080/linux-
2.5/cset@408dfac2C9_AR5WZykNWVUG0CPhzfw?nav=index.html|ChangeSet@-7d

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.

Comment 3 Arjan van de Ven 2004-05-03 21:39:17 UTC
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.

Comment 4 Gary Lerhaupt 2004-05-03 22:02:39 UTC
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?

Comment 5 Arjan van de Ven 2004-05-04 07:45:58 UTC
recompiling is unsupported in that if things break you get to hold two
pieces...

Comment 6 Dave Jones 2004-12-07 06:43:51 UTC
fixed in 2.6.9 based update ?

Comment 7 Gerald Britton 2004-12-07 13:54:05 UTC
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.