asterisk-1.8.0 compilation error

Home » Asterisk Users » asterisk-1.8.0 compilation error
Asterisk Users 2 Comments

Hi all,

I want to upgared from asterisk-1.6.2.6 version to asterisk-1.8.0 version.

When i execute “make” command for compilation i have seen below errors.

In file included from
/usr/src/asterisk-1.8/asterisk-1.8.0/include/asterisk/cdr.h:31

/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

Please, help me for resolve above errors.
Thanks in advance.

2 thoughts on - asterisk-1.8.0 compilation error

  • Hi Paul,

    Thanks for reply.

    I have some mistake send compilation logs. 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 version.

    # 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.