Версия Asterisk 10.6.0-rc1.
Пытаюсь установить модуль chan_datacard выдает следующие ошибки и модуль в /usr/lib/asterisk/ не появляется:
Код: Выделить всё
]0;root@Aster: ~root@Aster:~# cd ~/chan_datacard/
]0;root@Aster: ~/chan_datacardroot@Aster:~/chan_datacard# ./configure
configure complete, now type 'make'
]0;root@Aster: ~/chan_datacardroot@Aster:~/chan_datacard# make\[K
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
In file included from chan_datacard.c:73:0:
chan_datacard.h:224:60: error: unknown type name ‘format_t’
chan_datacard.h:251:2: warning: initialization makes pointer from integer without a cast [enabled by default]
chan_datacard.h:251:2: warning: (near initialization for ‘channel_tech.capabilities’) [enabled by default]
chan_datacard.h:252:16: error: ‘channel_request’ undeclared here (not in a function)
In file included from chan_datacard.c:82:0:
__app.c: In function ‘app_status_exec’:
__app.c:21:2: warning: missing initializer [-Wmissing-field-initializers]
__app.c:21:2: warning: (near initialization for ‘args.device’) [-Wmissing-field-initializers]
__app.c: In function ‘app_send_sms_exec’:
__app.c:79:2: warning: missing initializer [-Wmissing-field-initializers]
__app.c:79:2: warning: (near initialization for ‘args.device’) [-Wmissing-field-initializers]
In file included from chan_datacard.c:89:0:
__channel.c: In function ‘channel_new’:
__channel.c:35:21: warning: assignment makes pointer from integer without a cast [enabled by default]
__channel.c:36:19: error: incompatible types when assigning to type ‘struct ast_format’ from type ‘int’
__channel.c:37:19: error: incompatible types when assigning to type ‘struct ast_format’ from type ‘int’
__channel.c: At top level:
__channel.c:83:63: error: unknown type name ‘format_t’
__channel.c: In function ‘channel_read’:
__channel.c:588:29: error: ‘union ast_frame_subclass’ has no member named ‘codec’
__channel.c: In function ‘channel_write’:
__channel.c:716:52: error: ‘union ast_frame_subclass’ has no member named ‘codec’
__channel.c: In function ‘channel_local_request’:
__channel.c:991:40: error: ‘AST_FORMAT_AUDIO_MASK’ undeclared (first use in this function)
__channel.c:991:40: note: each undeclared identifier is reported only once for each function it appears in
make: *** [chan_datacard.o] Error 1
]0;root@Aster: ~/chan_datacardroot@Aster:~/chan_datacard# make install
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
In file included from chan_datacard.c:73:0:
chan_datacard.h:224:60: error: unknown type name ‘format_t’
chan_datacard.h:251:2: warning: initialization makes pointer from integer without a cast [enabled by default]
chan_datacard.h:251:2: warning: (near initialization for ‘channel_tech.capabilities’) [enabled by default]
chan_datacard.h:252:16: error: ‘channel_request’ undeclared here (not in a function)
In file included from chan_datacard.c:82:0:
__app.c: In function ‘app_status_exec’:
__app.c:21:2: warning: missing initializer [-Wmissing-field-initializers]
__app.c:21:2: warning: (near initialization for ‘args.device’) [-Wmissing-field-initializers]
__app.c: In function ‘app_send_sms_exec’:
__app.c:79:2: warning: missing initializer [-Wmissing-field-initializers]
__app.c:79:2: warning: (near initialization for ‘args.device’) [-Wmissing-field-initializers]
In file included from chan_datacard.c:89:0:
__channel.c: In function ‘channel_new’:
__channel.c:35:21: warning: assignment makes pointer from integer without a cast [enabled by default]
__channel.c:36:19: error: incompatible types when assigning to type ‘struct ast_format’ from type ‘int’
__channel.c:37:19: error: incompatible types when assigning to type ‘struct ast_format’ from type ‘int’
__channel.c: At top level:
__channel.c:83:63: error: unknown type name ‘format_t’
__channel.c: In function ‘channel_read’:
__channel.c:588:29: error: ‘union ast_frame_subclass’ has no member named ‘codec’
__channel.c: In function ‘channel_write’:
__channel.c:716:52: error: ‘union ast_frame_subclass’ has no member named ‘codec’
__channel.c: In function ‘channel_local_request’:
__channel.c:991:40: error: ‘AST_FORMAT_AUDIO_MASK’ undeclared (first use in this function)
__channel.c:991:40: note: each undeclared identifier is reported only once for each function it appears in
make: *** [chan_datacard.o] Error 1
]0;root@Aster: ~/chan_datacardroot@Aster:~/chan_datacard#
Код: Выделить всё
# svn co http://www.makhutov.org/svn/chan_datacard/trunk/ chan_datacard
# cd ~/chan_datacard/
# ./configure
# make install
# cp ~/chan_datacard/etc/datacard.conf /etc/asterisk
Видимо что-то дополнительно не установил...