[asterisk-bugs] [DAHDI-linux 0015500]: uninstall-modules cannot find modinfo

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 5 18:09:07 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15500 
====================================================================== 
Reported By:                dimas
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   15500
Category:                   General
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2009-07-14 05:32 CDT
Last Modified:              2009-08-05 18:09 CDT
====================================================================== 
Summary:                    uninstall-modules cannot find modinfo
Description: 
make install produces;

....
make[2]: Entering directory `/usr/src/kernels/2.6.18-128.1.10.el5-i686'

  Building modules, stage 2.
  MODPOST
WARNING: could not find
/usr/src/dahdi-linux-complete-tag-2.2.0.1+2.2.0/linux/drivers/dahdi/vpmadt032_loader/.vpmadt032_x86_32.o.cmd
for
/usr/src/dahdi-linux-complete-tag-2.2.0.1+2.2.0/linux/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_32.o
make[2]: Leaving directory `/usr/src/kernels/2.6.18-128.1.10.el5-i686'
build_tools/uninstall-modules dahdi 2.6.18-128.1.10.el5
build_tools/uninstall-modules: line 14: modinfo: command not found
build_tools/uninstall-modules: line 14: modinfo: command not found
build_tools/uninstall-modules: line 14: modinfo: command not found
build_tools/uninstall-modules: line 14: modinfo: command not found
....

This is because modinfo resides in the /sbin which is not in the PATH by
default...
====================================================================== 

---------------------------------------------------------------------- 
 (0108694) dimas (reporter) - 2009-08-05 18:09
 https://issues.asterisk.org/view.php?id=15500#c108694 
---------------------------------------------------------------------- 
Why so? I know lots of people who use "sudo sh", "sudo bash" or "sudo -s"
(the latter is mentioned on the page you gave). This is more convenient
because you do not have to remember root's password at all. I understand
that this way does not modify PATH and that is why I always have to type
/sbin/ifconfig instead of just ifconfig.
However I would really expect that various tools identify location of
binaries they need instead of hoping these binaries are in the PATH.

Having said that, I'm personally Ok if you close this issue. But really
fixing it would be better :) because one day someone else will opens
something like it again. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-05 18:09 dimas          Note Added: 0108694                          
======================================================================




More information about the asterisk-bugs mailing list