[Home]

Summary:ASTERISK-08389: build fails on snmp/agent.c
Reporter:Jon Creasy (johann8384)Labels:
Date Opened:2006-12-19 16:17:33.000-0600Date Closed:2006-12-19 16:55:43.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) snmp.patch
Description:   [CC] snmp/agent.c -> snmp/agent.o
snmp/agent.c: In function `ast_var_channels_table':
snmp/agent.c:481: warning: passing arg 2 of `pbx_builtin_serialize_variables' from incompatible pointer type
snmp/agent.c:481: error: too many arguments to function `pbx_builtin_serialize_variables'
make[1]: *** [snmp/agent.o] Error 1
make: *** [res] Error 2


****** ADDITIONAL INFORMATION ******

Running Centos 4.4

[root@dragon asterisk_trunk]# rpm -qa |grep snmp
net-snmp-perl-5.1.2-11.EL4.7
net-snmp-5.1.2-11.EL4.7
net-snmp-utils-5.1.2-11.EL4.7
net-snmp-libs-5.1.2-11.EL4.7
net-snmp-devel-5.1.2-11.EL4.7
php-snmp-5.0.4-5.centos4

[root@dragon asterisk_trunk]# uname -a
Linux dragon.myogre.com 2.6.9-42.0.3.EL #1 Fri Oct 6 05:59:54 CDT 2006 i686 i686 i386 GNU/Linux

Comments:By: Jon Creasy (johann8384) 2006-12-19 16:34:46.000-0600

The function takes two variables but a third one is being passed in.

Function being called:
pbx_builtin_serialize_variables(struct ast_channel *chan, struct ast_str **buf)

Being called as:
pbx_builtin_serialize_variables(chan, string_ret, sizeof(string_ret))

By: Jon Creasy (johann8384) 2006-12-19 16:36:22.000-0600

It doesn't appear as there is any reason to pass in the third argument. I have attached a patch which removes it.

By: Joshua C. Colp (jcolp) 2006-12-19 16:55:43.000-0600

Fixed in trunk as of revision 48595. Thanks!