[asterisk-dev] [Asterisk-Dev] Asterisk-1.8.0 compilation error

Stefan Schmidt sst at sil.at
Thu Nov 25 01:36:46 CST 2010


Am 25.11.10 08:21, schrieb RAJNIKANT VANZA:
> Hi all,
> 
> I have written cdr_webservice.c module and its work on asterisk-1.6.2.6
> version on production server. but i want to upgrade asterisk-1.6.2.6 version
> to asterisk-1.8.0 version. Given as below asterisk compilation logs:
> 
> # make
> [CC] cdr_webservice.c -> cdr_webservice.o
> In file included from
> /usr/src/asterisk-1.8/asterisk-1.8.0/include/asterisk/cdr.h:31,
> from cdr_webservice.c:29:
> 
> /usr/src/asterisk-1.8/asterisk-1.8.0/include/asterisk/data.h:233: error:
> field ‘AST_DATA_IPADDR’ has incomplete type
> /usr/src/asterisk-1.8/asterisk-1.8.0/include/asterisk/data.h:794: error:
> return type is an incomplete type
> /usr/src/asterisk-1.8/asterisk-1.8.0/include/asterisk/data.h: In function
> ‘ast_data_retrieve_ipaddr’:
> /usr/src/asterisk-1.8/asterisk-1.8.0/include/asterisk/data.h:799: warning:
> ‘return’ with a value, in function returning void
> make[1]: *** [cdr_webservice.o] Error 1
> make: *** [cdr] Error 2
> 
> Help me for resolve this compilation errors.
> 
> 
Hello,

Cause of the IPv6 support of asterisk1.8 the part of ip and host
adresses has changed a lot so you have to look how these types are now
defined and can be used from your app.
Do you know doxygen? (http://www.asterisk.org/doxygen/trunk/index.html)
Its very easy to go through the code there and atleast see new structs
and what have changed.


best regards

stefan



More information about the asterisk-dev mailing list