[Asterisk-video] [asterisk-video]Error while compiling app_h324m.c

oluwole bejide oluwolebejide at yahoo.com
Sun Feb 24 11:15:26 CST 2013


Hi All,
While compiling app_h324.c on my asterisk 1.8.15 server, i got the following errors shown below. What can i do? Please your reply would be appreciated. 

Thank you.


   [CC] app_h324m.c -> app_h324m.o
app_h324m.c:153:39: error: macro "ast_config_load" requires 2 arguments, but only 1 given
app_h324m.c: In function load_config:
app_h324m.c:153: error: ˜ast_config_load" undeclared (first use in this function)
app_h324m.c:153: error: (Each undeclared identifier is reported only once
app_h324m.c:153: error: for each function it appears in.)
app_h324m.c: In function ˜h324m_do_debug":
app_h324m.c:259: warning: passing argument 2 of ˜ast_cli_complete" from incompatible pointer type
/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/cli.h:210: note: expected ‘const char * const*’ but argument is of type ‘char **’
app_h324m.c:265: warning: return makes pointer from integer without a cast
app_h324m.c:271: warning: return makes pointer from integer without a cast
app_h324m.c:247: warning: unused variable ‘level’
app_h324m.c: In function ‘create_ast_frame’:
app_h324m.c:526: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘long long unsigned int’
app_h324m.c:633: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘long long unsigned int’
app_h324m.c: In function ‘init_h324m_packetizer’:
app_h324m.c:696: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘long long unsigned int’)
app_h324m.c:720: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘long long unsigned int’)
app_h324m.c:725: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘long long unsigned int’)
app_h324m.c: In function ‘create_h324m_frame’:
app_h324m.c:785: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘long long unsigned int’)
app_h324m.c: In function ‘app_h324m_gw’:
app_h324m.c:964: error: too few arguments to function ‘ast_request’
app_h324m.c:978: error: ‘struct ast_channel’ has no member named ‘cid’
app_h324m.c:978: error: ‘struct ast_channel’ has no member named ‘cid’
app_h324m.c:978: error: ‘struct ast_channel’ has no member named ‘cid’
app_h324m.c:1012: error: switch quantity not an integer
app_h324m.c:1037: error: switch quantity not an integer
app_h324m.c:1135: error: invalid operands to binary == (have ‘union ast_frame_subclass’ and ‘int’)
app_h324m.c:1147: error: switch quantity not an integer
app_h324m.c: In function ‘app_h324m_call’:
app_h324m.c:1282: error: too few arguments to function ‘ast_request’
app_h324m.c:1296: error: ‘struct ast_channel’ has no member named ‘cid’
app_h324m.c:1296: error: ‘struct ast_channel’ has no member named ‘cid’
app_h324m.c:1296: error: ‘struct ast_channel’ has no member named ‘cid’
app_h324m.c:1330: error: switch quantity not an integer
app_h324m.c:1368: error: switch quantity not an integer
app_h324m.c:1467: error: invalid operands to binary == (have ‘union ast_frame_subclass’ and ‘int’)
app_h324m.c:1479: error: incompatible types when assigning to type ‘char’ from type ‘union ast_frame_subclass’
app_h324m.c:1486: error: invalid operands to binary == (have ‘union ast_frame_subclass’ and ‘int’)
app_h324m.c: In function ‘app_h324m_gw_answer’:
app_h324m.c:1564: error: switch quantity not an integer
app_h324m.c: In function ‘unload_module’:
app_h324m.c:1647: error: ‘cli_reload’ undeclared (first use in this function)
app_h324m.c: In function ‘load_module’:
app_h324m.c:1678: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type
/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/module.h:458: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’
app_h324m.c:1679: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type
/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/module.h:458: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’
app_h324m.c:1680: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type
/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/module.h:458: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’
app_h324m.c:1681: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type
/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/module.h:458: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’
app_h324m.c:1682: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type
/usr/src/certified-asterisk-1.8.15-cert1/include/asterisk/module.h:458: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’
app_h324m.c:1685: error: ‘cli_reload’ undeclared (first use in this function)
make[1]: *** [app_h324m.o] Error 1
make: *** [apps] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-video/attachments/20130224/e6e0c173/attachment.htm>


More information about the asterisk-video mailing list