-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Once upon a time Sunday 25 April 2004 9:05 am, Patrice Dumas wrote:
Hi,
As Warren asked, I report a failure to build a module as a non root user
with kernel 2.6.5-1.327, as a follow up on bug
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=117645
It has improved a lot though. Now the compilation seems to be done right,
but stage 2 fails.
As a user, I get:
CC [M] /home/pat/src/eagleusb/driver/eu_eth.o
LD [M] /home/pat/src/eagleusb/driver/eagle-usb.o
Building modules, stage 2.
MODPOST
/bin/sh: line 1: ./.__modpost.cmd: Permission denied
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
My understanding of how modules are built in 2.6
kernels and definetly from
my experience the user building modules needs write access to the kernel
source tree to be able to build modules succesfully. and your errors are
consistent with what i have experienced the only way as a user to build is to
change the owner to yourself of the tree or give all write access to the tree
Dennis
And as root it is:
CC [M] /home/pat/src/eagleusb/driver/eu_eth.o
LD [M] /home/pat/src/eagleusb/driver/eagle-usb.o
Building modules, stage 2.
MODPOST
LD [M] /home/pat/src/eagleusb/driver/eagle-usb.ko
I attached the full make output. make.pat as a user, make.root as root.
Pat
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAiwqOkSxm47BaWfcRApUEAKCpXnN/uHAUNvf7n9CeyKpPvBC8cACaAt6B
jLsQzEPORWUf0gN3/ZK2Dv4=
=fvzE
-----END PGP SIGNATURE-----