I’m doing something silly here but i can’t see it … maybe a nights sleep will help …
I have added func_devstate.c
http://www.asterisk.org/doxygen/trunk/func__devstate_8c.htmlto the funcs folder in asterisk-1.4.21.2
when i get to make install i get the following error
[CC] func_devstate.c -> func_devstate.o
func_devstate.c: In function devstate_read:
func_devstate.c:54: warning: implicit declaration of function ast_devstate_str
func_devstate.c:54: warning: passing argument 2 of ast_copy_string makes pointer from integer without a cast
func_devstate.c: In function devstate_write:
func_devstate.c:87: warning: implicit declaration of function ast_devstate_val
func_devstate.c: At top level:
func_devstate.c:95: error: return type is an incomplete type
func_devstate.c: In function custom_devstate_callback:
func_devstate.c:97: error: variable state has initializer but incomplete type
func_devstate.c:97: error: storage size of state isnt known
func_devstate.c:106: warning: return with a value, in function returning void
func_devstate.c:97: warning: unused variable state
func_devstate.c: At top level:
func_devstate.c:113: warning: initialization from incompatible pointer type
func_devstate.c:114: warning: initialization from incompatible pointer type
func_devstate.c: In function load_module:
func_devstate.c:132: warning: passing argument 2 of ast_devstate_prov_add from incompatible pointer type
make[1]: *** [func_devstate.o] Error 1
make: *** [funcs] Error 2
this is a fresh install on centOS 5.2 …
Any ideas or help appreciated.
Rgds
BertieC.