1 | изначальная версия редактировать | |
Пытаюсь поставить SkypeForAsterisk на Asterisk 1.4.26, Debian x86_64 Кто-нибудь может расшифровать, чего этой "Гаде Петрович" не хватает?
@:~/skypeforasterisk-1.4_1.1.4-x86_64# make gcc -I/usr/include -o chan_skype.o -c chan_skype.c -pipe -O3 -fPIC -DAST_MODULE=\"chan_skype\" -MD -MT chan_skype.o -MF .chan_skype.o.d -MP chan_skype.c:351: warning: initialization from incompatible pointer type chan_skype.c:359: warning: initialization from incompatible pointer type chan_skype.c:2354: warning: initialization from incompatible pointer type chan_skype.c:2355: warning: initialization makes integer from pointer without a cast chan_skype.c:2355: error: initializer element is not computable at load time chan_skype.c:2355: error: (near initialization for ‘cli[0].inuse’) chan_skype.c:2357: warning: initialization from incompatible pointer type chan_skype.c:2358: warning: initialization makes integer from pointer without a cast chan_skype.c:2358: error: initializer element is not computable at load time chan_skype.c:2358: error: (near initialization for ‘cli[1].inuse’) chan_skype.c:2360: warning: initialization from incompatible pointer type chan_skype.c:2361: warning: initialization makes integer from pointer without a cast chan_skype.c:2361: error: initializer element is not computable at load time chan_skype.c:2361: error: (near initialization for ‘cli[2].inuse’) chan_skype.c:2363: warning: initialization from incompatible pointer type chan_skype.c:2364: warning: initialization makes integer from pointer without a cast chan_skype.c:2364: error: initializer element is not computable at load time chan_skype.c:2364: error: (near initialization for ‘cli[3].inuse’) chan_skype.c:2364: warning: initialization from incompatible pointer type chan_skype.c:2366: warning: initialization from incompatible pointer type chan_skype.c:2367: warning: initialization makes integer from pointer without a cast chan_skype.c:2367: error: initializer element is not computable at load time chan_skype.c:2367: error: (near initialization for ‘cli[4].inuse’) chan_skype.c:2369: warning: initialization from incompatible pointer type chan_skype.c:2370: warning: initialization makes integer from pointer without a cast chan_skype.c:2370: error: initializer element is not computable at load time chan_skype.c:2370: error: (near initialization for ‘cli[5].inuse’) chan_skype.c:2372: warning: initialization from incompatible pointer type chan_skype.c:2373: warning: initialization makes integer from pointer without a cast chan_skype.c:2373: error: initializer element is not computable at load time chan_skype.c:2373: error: (near initialization for ‘cli[6].inuse’) chan_skype.c:2375: warning: initialization from incompatible pointer type chan_skype.c:2376: warning: initialization makes integer from pointer without a cast chan_skype.c:2376: error: initializer element is not computable at load time chan_skype.c:2376: error: (near initialization for ‘cli[7].inuse’) chan_skype.c:2376: warning: initialization from incompatible pointer type chan_skype.c:2378: warning: initialization from incompatible pointer type chan_skype.c:2379: warning: initialization makes integer from pointer without a cast chan_skype.c:2379: error: initializer element is not computable at load time chan_skype.c:2379: error: (near initialization for ‘cli[8].inuse’) chan_skype.c:2381: warning: initialization from incompatible pointer type chan_skype.c:2382: warning: initialization makes integer from pointer without a cast chan_skype.c:2382: error: initializer element is not computable at load time chan_skype.c:2382: error: (near initialization for ‘cli[9].inuse’) chan_skype.c:2382: warning: initialization from incompatible pointer type chan_skype.c:2384: warning: initialization from incompatible pointer type chan_skype.c:2385: warning: initialization makes integer from pointer without a cast chan_skype.c:2385: error: initializer element is not computable at load time chan_skype.c:2385: error: (near initialization for ‘cli[10].inuse’) chan_skype.c:2385: warning: initialization from incompatible pointer type chan_skype.c:2387: warning: initialization from incompatible pointer type chan_skype.c:2388: warning: initialization makes integer from pointer without a cast chan_skype.c:2388: error: initializer element is not computable at load time chan_skype.c:2388: error: (near initialization for ‘cli[11].inuse’) chan_skype.c:2388: warning: initialization from incompatible pointer type chan_skype.c:2390: warning: initialization from incompatible pointer type chan_skype.c:2391: warning: initialization makes integer from pointer without a cast chan_skype.c:2391: error: initializer element is not computable at load time chan_skype.c:2391: error: (near initialization for ‘cli[12].inuse’) chan_skype.c:2391: warning: initialization from incompatible pointer type chan_skype.c:2393: warning: initialization from incompatible pointer type chan_skype.c:2394: warning: initialization makes integer from pointer without a cast chan_skype.c:2394: error: initializer element is not computable at load time chan_skype.c:2394: error: (near initialization for ‘cli[13].inuse’) chan_skype.c:2394: warning: initialization from incompatible pointer type chan_skype.c:2396: warning: initialization from incompatible pointer type chan_skype.c:2397: warning: initialization makes integer from pointer without a cast chan_skype.c:2397: error: initializer element is not computable at load time chan_skype.c:2397: error: (near initialization for ‘cli[14].inuse’) chan_skype.c:2397: warning: initialization from incompatible pointer type chan_skype.c:2401: error: static declaration of ‘ast_mkdir’ follows non-static declaration /usr/include/asterisk/utils.h:650: error: previous declaration of ‘ast_mkdir’ was here chan_skype.c: In function ‘skype_datastore_write’: chan_skype.c:2450: warning: ‘ast_channel_datastore_alloc’ is deprecated (declared at /usr/include/asterisk/channel.h:663) chan_skype.c:2457: warning: ‘ast_channel_datastore_free’ is deprecated (declared at /usr/include/asterisk/channel.h:671) chan_skype.c: At top level: chan_skype.c:2520: warning: initialization from incompatible pointer type chan_skype.c:2521: warning: initialization from incompatible pointer type chan_skype.c:2614: warning: initialization from incompatible pointer type chan_skype.c:2615: warning: initialization from incompatible pointer type chan_skype.c:2654: warning: initialization from incompatible pointer type chan_skype.c:2696: warning: initialization from incompatible pointer type chan_skype.c:2778: warning: initialization from incompatible pointer type chan_skype.c:2858:47: error: macro "ast_config_load" requires 2 arguments, but only 1 given chan_skype.c: In function ‘load_config’: chan_skype.c:2858: error: ‘ast_config_load’ undeclared (first use in this function) chan_skype.c:2858: error: (Each undeclared identifier is reported only once chan_skype.c:2858: error: for each function it appears in.) chan_skype.c:2858: warning: assignment from incompatible pointer type chan_skype.c:2864: error: ‘ast_config_AST_SPOOL_DIR’ undeclared (first use in this function) chan_skype.c: In function ‘set_sfa_directories’: chan_skype.c:3043: error: ‘ast_config_AST_VAR_DIR’ undeclared (first use in this function) chan_skype.c:3043: warning: passing argument 2 of ‘ast_copy_string’ from incompatible pointer type chan_skype.c: In function ‘buddy_state_change’: chan_skype.c:3286: warning: ‘ast_device_state_changed’ is deprecated (declared at /usr/include/asterisk/devicestate.h:174) chan_skype.c: In function ‘account_status_change’: chan_skype.c:3355: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type chan_skype.c:3355: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type chan_skype.c: In function ‘load_module’: chan_skype.c:3536: error: ‘ast_verbose’ undeclared (first use in this function) chan_skype.c:3536: warning: initialization from incompatible pointer type chan_skype.c:3624: warning: passing argument 2 of ‘ast_devstate_prov_add’ from incompatible pointer type make: ** [chan_skype.o] Ошибка 1
2 | No.2 Revision редактировать |
Пытаюсь поставить SkypeForAsterisk на Asterisk 1.4.26, Debian x86_64 Кто-нибудь может расшифровать, чего этой "Гаде Петрович" не хватает?
@@:~/skypeforasterisk-1.4_1.1.4-x86_64# make
:~/skypeforasterisk-1.41.1.4-x8664# make
gcc -I/usr/include -o chan_skype.o chanskype.o -c chan_skype.c chanskype.c -pipe -O3 -fPIC
-DAST_MODULE=\"chan_skype\" -fPIC -DASTMODULE=\"chanskype\" -MD -MT chan_skype.o chanskype.o -MF .chan_skype.o.d -MP
.chanskype.o.d -MP
chan_skype.c:351: warning: initialization from incompatible pointer type
type
chan_skype.c:359: warning: initialization from incompatible pointer type
type
chan_skype.c:2354: warning: initialization from incompatible pointer type
type
chan_skype.c:2355: warning: initialization makes integer from pointer without a cast
cast
chan_skype.c:2355: error: initializer element is not computable at load
time
load time
chan_skype.c:2355: error: (near initialization for ‘cli[0].inuse’)
‘cli[0].inuse’)
chan_skype.c:2357: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2358: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2358: error: initializer element is not computable at load
time
load time
chan_skype.c:2358: error: (near initialization for ‘cli[1].inuse’)
‘cli[1].inuse’)
chan_skype.c:2360: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2361: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2361: error: initializer element is not computable at load
time
load time
chan_skype.c:2361: error: (near initialization for ‘cli[2].inuse’)
‘cli[2].inuse’)
chan_skype.c:2363: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2364: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2364: error: initializer element is not computable at load
time
load time
chan_skype.c:2364: error: (near initialization for ‘cli[3].inuse’)
‘cli[3].inuse’)
chan_skype.c:2364: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2366: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2367: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2367: error: initializer element is not computable at load
time
load time
chan_skype.c:2367: error: (near initialization for ‘cli[4].inuse’)
‘cli[4].inuse’)
chan_skype.c:2369: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2370: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2370: error: initializer element is not computable at load
time
load time
chan_skype.c:2370: error: (near initialization for ‘cli[5].inuse’)
‘cli[5].inuse’)
chan_skype.c:2372: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2373: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2373: error: initializer element is not computable at load
time
load time
chan_skype.c:2373: error: (near initialization for ‘cli[6].inuse’)
‘cli[6].inuse’)
chan_skype.c:2375: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2376: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2376: error: initializer element is not computable at load
time
load time
chan_skype.c:2376: error: (near initialization for ‘cli[7].inuse’)
‘cli[7].inuse’)
chan_skype.c:2376: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2378: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2379: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2379: error: initializer element is not computable at load
time
load time
chan_skype.c:2379: error: (near initialization for ‘cli[8].inuse’)
‘cli[8].inuse’)
chan_skype.c:2381: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2382: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2382: error: initializer element is not computable at load
time
load time
chan_skype.c:2382: error: (near initialization for ‘cli[9].inuse’)
‘cli[9].inuse’)
chan_skype.c:2382: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2384: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2385: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2385: error: initializer element is not computable at load
time
load time
chan_skype.c:2385: error: (near initialization for ‘cli[10].inuse’)
‘cli[10].inuse’)
chan_skype.c:2385: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2387: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2388: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2388: error: initializer element is not computable at load
time
load time
chan_skype.c:2388: error: (near initialization for ‘cli[11].inuse’)
‘cli[11].inuse’)
chan_skype.c:2388: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2390: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2391: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2391: error: initializer element is not computable at load
time
load time
chan_skype.c:2391: error: (near initialization for ‘cli[12].inuse’)
‘cli[12].inuse’)
chan_skype.c:2391: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2393: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2394: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2394: error: initializer element is not computable at load
time
load time
chan_skype.c:2394: error: (near initialization for ‘cli[13].inuse’)
‘cli[13].inuse’)
chan_skype.c:2394: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2396: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2397: warning: initialization makes integer from pointer
pointer without a cast
cast
chan_skype.c:2397: error: initializer element is not computable at load
time
load time
chan_skype.c:2397: error: (near initialization for ‘cli[14].inuse’)
‘cli[14].inuse’)
chan_skype.c:2397: warning: initialization from incompatible pointer
type
chan_skype.c:2401: pointer type
chanskype.c:2401: error: static declaration of ‘ast_mkdir’ follows
‘astmkdir’ follows non-static declaration
declaration
/usr/include/asterisk/utils.h:650: error: previous declaration of
of ‘ast_mkdir’ was here
chan_skype.c: here
chanskype.c: In function ‘skype_datastore_write’:
chan_skype.c:2450: warning: ‘ast_channel_datastore_alloc’ is deprecated
‘skypedatastore_write’:
chanskype.c:2450: warning: ‘astchanneldatastorealloc’ is deprecated (declared at /usr/include/asterisk/channel.h:663)
chan_skype.c:2457: warning: ‘ast_channel_datastore_free’ is deprecated
/usr/include/asterisk/channel.h:663)
chanskype.c:2457: warning: ‘astchanneldatastorefree’ is deprecated (declared at /usr/include/asterisk/channel.h:671)
/usr/include/asterisk/channel.h:671)
chan_skype.c: At top level:
level:
chan_skype.c:2520: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2521: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2614: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2615: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2654: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2696: warning: initialization from incompatible pointer
type
pointer type
chan_skype.c:2778: warning: initialization from incompatible pointer
type
chan_skype.c:2858:47: pointer type
chanskype.c:2858:47: error: macro "ast_config_load" "astconfig_load" requires 2
2 arguments, but only 1 given
chan_skype.c: given
chanskype.c: In function ‘load_config’:
chan_skype.c:2858: error: ‘ast_config_load’ ‘loadconfig’:
chanskype.c:2858: error: ‘astconfig_load’ undeclared (first use in
in this function)
function)
chan_skype.c:2858: error: (Each undeclared identifier is reported only
once
only once
chan_skype.c:2858: error: for each function it appears in.)
in.)
chan_skype.c:2858: warning: assignment from incompatible pointer type
chan_skype.c:2864: error: ‘ast_config_AST_SPOOL_DIR’ type
chanskype.c:2864: error: ‘astconfigASTSPOOL_DIR’ undeclared (first
(first use in this function)
chan_skype.c: function)
chanskype.c: In function ‘set_sfa_directories’:
chan_skype.c:3043: error: ‘ast_config_AST_VAR_DIR’ ‘setsfa_directories’:
chanskype.c:3043: error: ‘astconfigASTVAR_DIR’ undeclared (first use
use in this function)
chan_skype.c:3043: function)
chanskype.c:3043: warning: passing argument 2 of ‘ast_copy_string’ from
incompatible pointer type
chan_skype.c: ‘astcopy_string’ from incompatible pointer type
chanskype.c: In function ‘buddy_state_change’:
chan_skype.c:3286: warning: ‘ast_device_state_changed’ is deprecated
‘buddystate_change’:
chanskype.c:3286: warning: ‘astdevicestatechanged’ is deprecated (declared at /usr/include/asterisk/devicestate.h:174)
chan_skype.c: /usr/include/asterisk/devicestate.h:174)
chanskype.c: In function ‘account_status_change’:
chan_skype.c:3355: ‘accountstatus_change’:
chanskype.c:3355: warning: passing argument 1 of ‘ast_localtime’ from
incompatible pointer type
chan_skype.c:3355: ‘astlocaltime’ from incompatible pointer type
chanskype.c:3355: warning: passing argument 2 of ‘ast_localtime’ from
incompatible pointer type
chan_skype.c: ‘astlocaltime’ from incompatible pointer type
chanskype.c: In function ‘load_module’:
chan_skype.c:3536: error: ‘ast_verbose’ ‘loadmodule’:
chanskype.c:3536: error: ‘astverbose’ undeclared (first use in this
function)
this function)
chan_skype.c:3536: warning: initialization from incompatible pointer
type
chan_skype.c:3624: pointer type
chanskype.c:3624: warning: passing argument 2 of
‘ast_devstate_prov_add’ from incompatible pointer type
of ‘astdevstateprovadd’ from incompatible pointer type
make: ** [chan_skype.o] Ошибка 1
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.