[asterisk-bugs] [Asterisk 0014038]: [patch] apps/app_festival.c does not compile for PPC target

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jul 22 16:45:38 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14038 
====================================================================== 
Reported By:                ffloimair
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   14038
Category:                   Applications/app_festival
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.0.2 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-12-09 04:49 CST
Last Modified:              2009-07-22 16:45 CDT
====================================================================== 
Summary:                    [patch] apps/app_festival.c does not compile for PPC
target
Description: 
When I try to cross compile Asterisk for a PowerPC based system (MPC
5200B), I get the error below.

Tested with Asterisk 1.6.0.2 and 1.6.0.3-rc1.

I identified the following lines in apps/app_festival.c

118: static int send_waveform_to_fd(char *waveform, int length, int fd)
119: {
120:	int res;
121:	int x;
122: #ifdef __PPC__ 
123: 	char c;
124: 	int x;
125: #endif

It's pretty obvious that 'int x' is declarated twice when __PPC__
evaluates to true.
====================================================================== 

---------------------------------------------------------------------- 
 (0108100) svnbot (reporter) - 2009-07-22 16:45
 https://issues.asterisk.org/view.php?id=14038#c108100 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 208115

_U  branches/1.6.1/
U   branches/1.6.1/apps/app_festival.c

------------------------------------------------------------------------
r208115 | qwell | 2009-07-22 16:45:38 -0500 (Wed, 22 Jul 2009) | 16 lines

Merged revisions 208113 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r208113 | qwell | 2009-07-22 16:43:57 -0500 (Wed, 22 Jul 2009) | 9 lines
  
  Restore an int declaration on PPC platforms.
  
  This x is one crafty little bugger...
  It was used for 2 different things (one of which was only done on PPC)
in 1.4.
  One of the uses were removed in trunk, and with it went the declaration.
  
  (closes issue https://issues.asterisk.org/view.php?id=14038)
  Reported by: ffloimair
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=208115 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-22 16:45 svnbot         Checkin                                      
2009-07-22 16:45 svnbot         Note Added: 0108100                          
======================================================================




More information about the asterisk-bugs mailing list