[asterisk-bugs] [DAHDI-linux 0013832]: 'Use of uninitialized value $ENV{"XBUS_NAME"}' if stderr from make redirected to a file

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Nov 10 14:42:35 CST 2008


The following issue has been UPDATED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13832 
====================================================================== 
Reported By:                tzafrir
Assigned To:                tzafrir
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   13832
Category:                   Astribank (xpp)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-11-03 16:30 CST
Last Modified:              2008-11-10 14:42 CST
====================================================================== 
Summary:                    'Use of uninitialized value $ENV{"XBUS_NAME"}' if
stderr from make redirected to a file
Description: 
The init scripts of the xpp drivers (drivers/dahdi/xpp/init_card_X_30)
should be run from a context that sets a number of environment variables. 

init_card_2_30 can also be run from the command-line for verification
purpose. The script tests that it is run from the command line using the
following test:

  if (-t STDERR) {

That is: if the standard error is a terminal. This test will fail is
several automated build environments. Or even by a casual run of:  'make
2>log'

Workaround: if the test fails, generate the flag file that shows it was
successful and assume that is was :-(

  touch drivers/dahdi/xpp/init_fxo_modes 
  touch drivers/dahdi/xpp/init_fxo_modes.verified

(Reported by I-MOD on #asterisk-dev)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-10 14:42 tzafrir        Status                   assigned => resolved
2008-11-10 14:42 tzafrir        Resolution               open => fixed       
2008-11-10 14:42 tzafrir        Status                   resolved => closed  
======================================================================




More information about the asterisk-bugs mailing list