Пытаюсь поставить SkypeForAsterisk на Asterisk 1.4.26, Debian x86_64 Кто-нибудь может расшифровать, чего этой "Гаде Петрович" не хватает?
@:~/skypeforasterisk-1.41.1.4-x8664# make
gcc -I/usr/include -o chanskype.o -c chanskype.c -pipe -O3 -fPIC -DASTMODULE=\"chanskype\" -MD -MT chanskype.o -MF .chanskype.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
chanskype.c:2401: error: static declaration of ‘astmkdir’ follows non-static declaration
/usr/include/asterisk/utils.h:650: error: previous declaration of ‘ast_mkdir’ was here
chanskype.c: In function ‘skypedatastore_write’:
chanskype.c:2450: warning: ‘astchanneldatastorealloc’ is deprecated (declared at /usr/include/asterisk/channel.h:663)
chanskype.c:2457: warning: ‘astchanneldatastorefree’ 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
chanskype.c:2858:47: error: macro "astconfig_load" requires 2 arguments, but only 1 given
chanskype.c: In function ‘loadconfig’:
chanskype.c:2858: error: ‘astconfig_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
chanskype.c:2864: error: ‘astconfigASTSPOOL_DIR’ undeclared (first use in this function)
chanskype.c: In function ‘setsfa_directories’:
chanskype.c:3043: error: ‘astconfigASTVAR_DIR’ undeclared (first use in this function)
chanskype.c:3043: warning: passing argument 2 of ‘astcopy_string’ from incompatible pointer type
chanskype.c: In function ‘buddystate_change’:
chanskype.c:3286: warning: ‘astdevicestatechanged’ is deprecated (declared at /usr/include/asterisk/devicestate.h:174)
chanskype.c: In function ‘accountstatus_change’:
chanskype.c:3355: warning: passing argument 1 of ‘astlocaltime’ from incompatible pointer type
chanskype.c:3355: warning: passing argument 2 of ‘astlocaltime’ from incompatible pointer type
chanskype.c: In function ‘loadmodule’:
chanskype.c:3536: error: ‘astverbose’ undeclared (first use in this function)
chan_skype.c:3536: warning: initialization from incompatible pointer type
chanskype.c:3624: warning: passing argument 2 of ‘astdevstateprovadd’ from incompatible pointer type
make: * [chan_skype.o] Ошибка 1
Проверь в Makefile, skypeforasterisk
ASTINCDIR=$(INSTALL_PREFIX)/usr/include
я думаю что нету у тебя астера в /usr/include :) вот и не будет он собираться.
я тоже думаю что * тут не причем... только что ковырять уже не знаю.
все оказалось банально. При установке Asterisk, директория "по умолчанию" была изменена на другую. Поэтому в SFA нужно было в MakeFile указать правильные пути установленного Asteriska.
Спасибо Александру (pbxware.ru)
Да при чём тут *, у него не компилируется приложение! Систему ковыряй и разбирайся почему не компилица!
версии скорее всего не совпадают. пробуйте дургую версию.
Видимо, для 1.4 не работает. Попробуйте 1.8.
Задан: 2011-04-07 12:15:07 +0400
Просмотрен: 1,621 раз
Обновлен: Apr 08 '11
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.