issue with building
nilesingalls opened this issue · 2 comments
Hello,
receiving this error as I attempt to check out your product. System is Centos 7 with Asterisk 14.5.0 compiled from source.
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I../include -I/usr/src/asterisk-14.5.0/include -DAST_MODULE_SELF_SYM="__internal_res_speech_vosk" -g -O2 -MT res_speech_vosk.lo -MD -MP -MF .deps/res_speech_vosk.Tpo -c -o res_speech_vosk.lo res_speech_vosk.c
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I/usr/src/asterisk-14.5.0/include -DAST_MODULE_SELF_SYM=__internal_res_speech_vosk -g -O2 -MT res_speech_vosk.lo -MD -MP -MF .deps/res_speech_vosk.Tpo -c res_speech_vosk.c -fPIC -DPIC -o .libs/res_speech_vosk.o
res_speech_vosk.c: In function 'vosk_recog_write':
res_speech_vosk.c:166:24: warning: initialization makes pointer from integer without a cast [enabled by default]
const char *text = ast_json_object_string_get(res_json, "text");
^
libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I/usr/src/asterisk-14.5.0/include -DAST_MODULE_SELF_SYM=__internal_res_speech_vosk -g -O2 -MT res_speech_vosk.lo -MD -MP -MF .deps/res_speech_vosk.Tpo -c res_speech_vosk.c -o res_speech_vosk.o >/dev/null 2>&1
mv -f .deps/res_speech_vosk.Tpo .deps/res_speech_vosk.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -DAST_MODULE_SELF_SYM="__internal_res_speech_vosk" -g -O2 -avoid-version -no-undefined -module -o res_speech_vosk.la -rpath NONE/lib/asterisk/modules res_speech_vosk.lo
libtool: link: only absolute run-paths are allowed
make[2]: *** [res_speech_vosk.la] Error 1
make[2]: Leaving directory /usr/src/vosk-asterisk/res-speech-vosk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/usr/src/vosk-asterisk'
make: *** [all] Error 2
update, after correcting the libtool link issue above
res_http_websocket_fix.c: In function '__ast_websocket_uri_cb':
res_http_websocket_fix.c:908:27: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
ast_iostream_printf(ser->stream,
^
res_http_websocket_fix.c:918:27: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
ast_iostream_printf(ser->stream,
^
res_http_websocket_fix.c:937:40: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
if (setsockopt(ast_iostream_get_fd(ser->stream), SOL_SOCKET, SO_KEEPALIVE, &flags, sizeof(flags))) {
^
res_http_websocket_fix.c:947:45: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
if (ast_getsockname(ast_iostream_get_fd(ser->stream), &session->local_address)) {
^
res_http_websocket_fix.c:959:23: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
session->stream = ser->stream;
^
res_http_websocket_fix.c:963:44: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
session->secure = ast_iostream_get_ssl(ser->stream) ? 1 : 0;
^
res_http_websocket_fix.c:975:5: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
ser->stream = NULL;
^
res_http_websocket_fix.c: In function 'websocket_client_handshake_get_response':
res_http_websocket_fix.c:1294:35: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
if (ast_iostream_gets(client->ser->stream, buf, sizeof(buf)) <= 0) {
^
res_http_websocket_fix.c:1307:38: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
while (ast_iostream_gets(client->ser->stream, buf, sizeof(buf)) > 0) {
^
res_http_websocket_fix.c: In function 'websocket_client_handshake':
res_http_websocket_fix.c:1360:37: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
if (ast_iostream_printf(client->ser->stream,
^
res_http_websocket_fix.c: In function 'websocket_client_connect':
res_http_websocket_fix.c:1396:30: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
ws->stream = ws->client->ser->stream;
^
res_http_websocket_fix.c:1398:17: error: 'struct ast_tcptls_session_instance' has no member named 'stream'
ws->client->ser->stream = NULL;
^
In file included from res_http_websocket_fix.c:32:0:
res_http_websocket_fix.c: At top level:
/usr/src/asterisk-14.5.0/include/asterisk/module.h:445:16: error: unknown field 'requires' specified in initializer
static struct ast_module_info
^
res_http_websocket_fix.c:1507:1: note: in expansion of macro 'AST_MODULE_INFO'
AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER, "HTTP WebSocket Support",
^
make[2]: *** [res_http_websocket_fix_la-res_http_websocket_fix.lo] Error 1
got it to build with a newer version of Asterisk, please disregard - thanks.