[asterisk-bugs] [Asterisk 0017751]: [patch] Error in sig_pri.c issues compiler warning and causes chan_dahdi to be unloadable - 1.8.0-beta2

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jul 29 13:23:21 CDT 2010


The following issue is now READY FOR TESTING. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17751 
====================================================================== 
Reported By:                b11d
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17751
Category:                   Channels/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.8.0-beta2 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-07-29 13:04 CDT
Last Modified:              2010-07-29 13:23 CDT
====================================================================== 
Summary:                    [patch] Error in sig_pri.c issues compiler warning
and causes chan_dahdi to be unloadable - 1.8.0-beta2
Description: 

I have been testing Asterisk 1.8.0-beta2 on FreeBSD 8.1-amd64, and
discovered
that chan_dahdi could not be loaded by Asterisk, it would return an error
and state that 'strudpa' was not defined. 

During compilation (with GNU Make 3.81) it would compile sig_pri.c and
give
a warning that 'strdupa' was not defined, but the compile would finish
anyway.

I fixed the issue by modifying line 1749 of channels/sig_pri.c

- msn_list = strdupa(msn_patterns);   
+ msn_list = ast_strdupa(msn_patterns);

(sorry, not a real diff!)



More information about the asterisk-bugs mailing list