[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

cannot link module as non root



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

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
make  -C /lib/modules/2.6.5-1.327/build/ SUBDIRS=/home/pat/src/eagleusb/driver modules
make[1]: Entering directory `/lib/modules/2.6.5-1.327/build'
  CC [M]  /home/pat/src/eagleusb/driver/eu_main.o
  CC [M]  /home/pat/src/eagleusb/driver/Boot.o
  CC [M]  /home/pat/src/eagleusb/driver/eu_utils.o
  CC [M]  /home/pat/src/eagleusb/driver/Pipes.o
  CC [M]  /home/pat/src/eagleusb/driver/Me.o
  CC [M]  /home/pat/src/eagleusb/driver/Sm.o
  CC [M]  /home/pat/src/eagleusb/driver/eu_msg.o
  CC [M]  /home/pat/src/eagleusb/driver/Dsp.o
  CC [M]  /home/pat/src/eagleusb/driver/Mpoa.o
  CC [M]  /home/pat/src/eagleusb/driver/Uni.o
  CC [M]  /home/pat/src/eagleusb/driver/Sar.o
  CC [M]  /home/pat/src/eagleusb/driver/Oam.o
  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
make[1]: Leaving directory `/lib/modules/2.6.5-1.327/build'
make: *** [eagle-usb.ko] Error 2
make  -C /lib/modules/2.6.5-1.327/build/ SUBDIRS=/home/pat/src/eagleusb/driver modules
make[1]: Entering directory `/lib/modules/2.6.5-1.327/build'
  CC [M]  /home/pat/src/eagleusb/driver/eu_main.o
  CC [M]  /home/pat/src/eagleusb/driver/Boot.o
  CC [M]  /home/pat/src/eagleusb/driver/eu_utils.o
  CC [M]  /home/pat/src/eagleusb/driver/Pipes.o
  CC [M]  /home/pat/src/eagleusb/driver/Me.o
  CC [M]  /home/pat/src/eagleusb/driver/Sm.o
  CC [M]  /home/pat/src/eagleusb/driver/eu_msg.o
  CC [M]  /home/pat/src/eagleusb/driver/Dsp.o
  CC [M]  /home/pat/src/eagleusb/driver/Mpoa.o
  CC [M]  /home/pat/src/eagleusb/driver/Uni.o
  CC [M]  /home/pat/src/eagleusb/driver/Sar.o
  CC [M]  /home/pat/src/eagleusb/driver/Oam.o
  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
make[1]: Leaving directory `/lib/modules/2.6.5-1.327/build'

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]