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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Sep 21 10:18:19 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
JIRA:                        
====================================================================== 
Date Submitted:             2009-07-14 05:32 CDT
Last Modified:              2009-09-21 10:18 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...
====================================================================== 

---------------------------------------------------------------------- 
 (0111068) lmadsen (administrator) - 2009-09-21 10:18
 https://issues.asterisk.org/view.php?id=15500#c111068 
---------------------------------------------------------------------- 
As qwell mentioned, without the hyphen after the su, then the path is not
set for the "root" user, and thus sbin will not be in the path.

I'm not sure what we're really supposed to do here as this feels like an
administrator problem, and not an application level issue. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-21 10:18 lmadsen        Note Added: 0111068                          
======================================================================




More information about the asterisk-bugs mailing list