[Home]

Summary:ASTERISK-12106: [patch] failed to compile trunk - utils/check_expr: ast_bt_get_addresses()
Reporter:Yuri (ys)Labels:
Date Opened:2008-05-29 07:00:26Date Closed:2008-05-29 07:09:50
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Utilities/check_expr
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) check_expr.diff
Description:I failed to compile trunk, but function ast_bt_get_addresses() must be defined only, if HAVE_BKTR is set.

.....

gcc -o check_expr.o -c check_expr.c -D_THREAD_SAFE -pthread -I/usr/home/asterisk/src/asterisk/include  -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include /usr/home/asterisk/src/asterisk/include/asterisk/autoconfig.h -Werror -Wunused -Wundef -Wdeclaration-after-statement -Wmissing-format-attribute -Wformat-security  -I/usr/local/include -march=i386   -MD -MT check_expr.o -MF .check_expr.o.d -MP
check_expr.c:126: warning: "struct ast_bt" declared inside parameter list
check_expr.c:126: warning: its scope is only this definition or declaration, which is probably not what you want
check_expr.c:127: warning: "struct ast_bt" declared inside parameter list
check_expr.c:128: error: conflicting types for 'ast_bt_get_addresses'
check_expr.c:126: error: previous declaration of 'ast_bt_get_addresses' was here
check_expr.c:128: error: conflicting types for 'ast_bt_get_addresses'
check_expr.c:126: error: previous declaration of 'ast_bt_get_addresses' was here
gmake[1]: *** [check_expr.o] Error 1
gmake[1]: Leaving directory `/usr/home/asterisk/src/asterisk/utils'
gmake: *** [utils] Error 2
Comments:By: Digium Subversion (svnbot) 2008-05-29 07:05:50

Repository: asterisk
Revision: 118911

U   trunk/utils/check_expr.c

------------------------------------------------------------------------
r118911 | seanbright | 2008-05-29 07:05:46 -0500 (Thu, 29 May 2008) | 7 lines

Avoid build warning when execinfo.h isn't available.

(closes issue ASTERISK-12106)
Reported by: ys
Patches:
     check_expr.diff uploaded by ys (license 281)

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

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

By: Digium Subversion (svnbot) 2008-05-29 07:09:50

Repository: asterisk
Revision: 118912

_U  branches/1.6.0/

------------------------------------------------------------------------
r118912 | seanbright | 2008-05-29 07:09:49 -0500 (Thu, 29 May 2008) | 14 lines

Blocked revisions 118911 via svnmerge

........
r118911 | seanbright | 2008-05-29 08:12:07 -0400 (Thu, 29 May 2008) | 7 lines

Avoid build warning when execinfo.h isn't available.

(closes issue ASTERISK-12106)
Reported by: ys
Patches:
     check_expr.diff uploaded by ys (license 281)

........

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

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