[asterisk-bugs] [Asterisk 0014790]: chan_h323 build fails with gcc 3

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 22 16:15:56 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14790 
====================================================================== 
Reported By:                stuarth
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   14790
Category:                   Core/Portability
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.0-rc3 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-03-30 20:38 CDT
Last Modified:              2009-04-22 16:15 CDT
====================================================================== 
Summary:                    chan_h323 build fails with gcc 3
Description: 
g++ from gcc 3.3.5 (and probably others) doesn't allow a structure member
to have the same name as an included header, in this case "list" in
channel.h:1745. same problem as ticket 6446, this time with
"AST_LIST_ENTRY(ast_group_info) list" in struct ast_group_info.
====================================================================== 

---------------------------------------------------------------------- 
 (0103655) svnbot (reporter) - 2009-04-22 16:15
 http://bugs.digium.com/view.php?id=14790#c103655 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 190057

U   trunk/funcs/func_groupcount.c
U   trunk/include/asterisk/channel.h
U   trunk/main/app.c
U   trunk/main/cli.c

------------------------------------------------------------------------
r190057 | jpeeler | 2009-04-22 16:15:55 -0500 (Wed, 22 Apr 2009) | 9 lines

Fix building of chan_h323 with gcc-3.3

There seems to be a bug with old versions of g++ that doesn't allow a
structure
member to use the name list. Rename list member to group_list in
ast_group_info
and change the few places it is used.

(closes issue http://bugs.digium.com/view.php?id=14790)
Reported by: stuarth

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-22 16:15 svnbot         Checkin                                      
2009-04-22 16:15 svnbot         Note Added: 0103655                          
======================================================================




More information about the asterisk-bugs mailing list