asterisk-unimrcp-1.3.0 make error

256 views
Skip to first unread message

Aaron Zhang

unread,
Aug 6, 2015, 10:55:43 PM8/6/15
to UniMRCP, Aaron Zhang
Hellow,
I installed the unimrcp successfully. However in attempting to make the asterisk-unimrcp-1.3.0.tar.gz, I encountered the following errors:

============================Error Message================================
usr/src/asterisk-unimrcp-1.3.0$ make
Making all in res-speech-unimrcp
make[1]: Entering directory `/usr/src/asterisk-unimrcp-1.3.0/res-speech-unimrcp'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DUNIMRCP_DIR_LOCATION=\"/usr/local/unimrcp\" -DASTERISK_MAJOR_VERSION=11 -DASTERISK_MINOR_VERSION=17 -DASTERISK_PATCH_VERSION=1 -I../include -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/unimrcp/include -I/usr/local/apr/include/apr-1 -I/usr/include -g -O2 -MT res_speech_unimrcp.lo -MD -MP -MF ".deps/res_speech_unimrcp.Tpo" -c -o res_speech_unimrcp.lo res_speech_unimrcp.c; \
then mv -f ".deps/res_speech_unimrcp.Tpo" ".deps/res_speech_unimrcp.Plo"; else rm -f ".deps/res_speech_unimrcp.Tpo"; exit 1; fi
libtool: compile: gcc -DUNIMRCP_DIR_LOCATION=\"/usr/local/unimrcp\" -DASTERISK_MAJOR_VERSION=11 -DASTERISK_MINOR_VERSION=17 -DASTERISK_PATCH_VERSION=1 -I../include -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/unimrcp/include -I/usr/local/apr/include/apr-1 -I/usr/include -g -O2 -MT res_speech_unimrcp.lo -MD -MP -MF .deps/res_speech_unimrcp.Tpo -c res_speech_unimrcp.c -fPIC -DPIC -o .libs/res_speech_unimrcp.o
In file included from res_speech_unimrcp.c:28:
../include/ast_compat_defs.h: In function 'ast_get_speechformat':
../include/ast_compat_defs.h:131: error: invalid application of 'sizeof' to incomplete type 'ast_format_compat'
../include/ast_compat_defs.h:133: error: dereferencing pointer to incomplete type
../include/ast_compat_defs.h:135: error: 'AST_FORMAT_ULAW' undeclared (first use in this function)
../include/ast_compat_defs.h:135: error: (Each undeclared identifier is reported only once
../include/ast_compat_defs.h:135: error: for each function it appears in.)
../include/ast_compat_defs.h:136: error: 'AST_FORMAT_ALAW' undeclared (first use in this function)
../include/ast_compat_defs.h:137: error: dereferencing pointer to incomplete type
../include/ast_compat_defs.h:137: error: dereferencing pointer to incomplete type
../include/ast_compat_defs.h:140: error: dereferencing pointer to incomplete type
../include/ast_compat_defs.h:140: error: 'AST_FORMAT_SLINEAR' undeclared (first use in this function)
../include/ast_compat_defs.h: In function 'format_to_str':
../include/ast_compat_defs.h:147: error: dereferencing pointer to incomplete type
../include/ast_compat_defs.h:149: error: 'AST_FORMAT_ULAW' undeclared (first use in this function)
../include/ast_compat_defs.h:151: error: 'AST_FORMAT_ALAW' undeclared (first use in this function)
../include/ast_compat_defs.h:153: error: 'AST_FORMAT_SLINEAR' undeclared (first use in this function)
../include/ast_compat_defs.h: In function 'format_to_bytes_per_sample':
../include/ast_compat_defs.h:162: error: dereferencing pointer to incomplete type
../include/ast_compat_defs.h:164: error: 'AST_FORMAT_ULAW' undeclared (first use in this function)
../include/ast_compat_defs.h:166: error: 'AST_FORMAT_ALAW' undeclared (first use in this function)
../include/ast_compat_defs.h:168: error: 'AST_FORMAT_SLINEAR' undeclared (first use in this function)
../include/ast_compat_defs.h: At top level:
../include/ast_compat_defs.h:179: error: static declaration of 'ast_channel_set_readformat' follows non-static declaration
../include/asterisk/channel.h:4089: error: previous declaration of 'ast_channel_set_readformat' was here
../include/ast_compat_defs.h:183: error: static declaration of 'ast_channel_set_writeformat' follows non-static declaration
../include/asterisk/channel.h:4090: error: previous declaration of 'ast_channel_set_writeformat' was here
res_speech_unimrcp.c:31: error: expected declaration specifiers or '...' before string constant
res_speech_unimrcp.c:31: error: expected declaration specifiers or '...' before string constant
In file included from res_speech_unimrcp.c:33:
../include/asterisk/module.h: In function 'ASTERISK_FILE_VERSION':
../include/asterisk/module.h:66: warning: empty declaration
====================================================================
------------------------------Installed Package---------------------
Elastix-2.5.0-Stable-i386-bin-21oct2014.iso
unimrcp-deps-1.3.0.tar.gz
unimrcp-1.3.0.tar.gz
asterisk-unimrcp-1.3.0.tar.gz

****************************** REPORT ******************************

Asterisk version.............. : 11.17.1
UniMRCP version............... : 1.3.0
UniMRCP modules version....... : 1.3.0

Compiler...................... : gcc
Compiler flags................ : -g -O2
Preprocessor definitions...... :
Linker flags.................. :

Modules install path...........: /usr/lib/asterisk/modules
Configuration install path.....: /etc/asterisk
XML doc install path...........: /var/lib/asterisk/documentation/thirdparty

Speech resource module.........: yes
Application module.............: yes

********************************************************************

$ cat /etc/redhat-release
CentOS release 5.11 (Final)
$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-55)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-redhat-linux-gnu

$ libtool --version
libtool (GNU libtool) 2.4.2
Written by Gordon Matzigkeit <go...@gnu.ai.mit.edu>, 1996

Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

----------------------------------------------------------------------------------------

Aaron Zhang

unread,
Aug 6, 2015, 11:16:37 PM8/6/15
to UniMRCP, aaron...@gmail.com
I deleted /usr/local/unimrcp folder, and build them again, it works!
I don't know why.

unimrcp-deps-1.3.0.tar.gz
unimrcp-1.3.0.tar.gz
asterisk-unimrcp-1.3.0.tar.gz

在 2015年8月7日星期五 UTC+9上午11:55:43,Aaron Zhang写道:
Reply all
Reply to author
Forward
0 new messages