calejost / unimrcp

Automatically exported from code.google.com/p/unimrcp
Apache License 2.0
0 stars 0 forks source link

svn asterisk-unimrcp compile issue #132

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn checkout latest asterisk-unimrcp
2. ./bootstrap
3. ./configure
4. make

When you run make, you will see the following error which I can not find 
anywhere on the internet:

Making all in res-speech-unimrcp
make[1]: Entering directory 
`/usr/src/unimcrp/asterisk-unimrcp/res-speech-unimrcp'
if /bin/sh ../libtool --tag=CC --mode=compile gcc 
-DPACKAGE_NAME=\"asterisk-unimrcp\" -DPACKAGE_TARNAME=\"asterisk-unimrcp\" 
-DPACKAGE_VERSION=\"0.1.0\" -DPACKAGE_STRING=\"asterisk-unimrcp\ 0.1.0\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"asterisk-unimrcp\" -DVERSION=\"0.1.0\" 
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 
-DUNIMRCP_DIR_LOCATION=\"/usr/local/unimrcp\" -DASTERISK14=  -I. -I. -DLINUX=2 
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread 
-I/usr/local/unimrcp/include -I/usr/local/apr/include/apr-1   -I/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
 gcc -DPACKAGE_NAME=\"asterisk-unimrcp\" -DPACKAGE_TARNAME=\"asterisk-unimrcp\" -DPACKAGE_VERSION=\"0.1.0\" "-DPACKAGE_STRING=\"asterisk-unimrcp 0.1.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"asterisk-unimrcp\" -DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DUNIMRCP_DIR_LOCATION=\"/usr/local/unimrcp\" -DASTERISK14= -I. -I. -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/unimrcp/include -I/usr/local/apr/include/apr-1 -I/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
res_speech_unimrcp.c: In function 'uni_engine_load':
res_speech_unimrcp.c:1326: warning: passing argument 5 of 'apt_log_file_open' 
makes pointer from integer without a cast
res_speech_unimrcp.c:1326: error: too many arguments to function 
'apt_log_file_open'
make[1]: *** [res_speech_unimrcp.lo] Error 1
make[1]: Leaving directory 
`/usr/src/unimcrp/asterisk-unimrcp/res-speech-unimrcp'
make: *** [all-recursive] Error 1

Original issue reported on code.google.com by red.rain...@gmail.com on 13 Oct 2011 at 4:08

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Same error, with asterisk 10.

But works fine with old version like 1.6.2.9.

Original comment by arthur.n...@rentabiliweb.com on 20 Mar 2012 at 4:03

GoogleCodeExporter commented 8 years ago
Any news?

Original comment by nobodyd...@gmail.com on 12 Nov 2012 at 5:11

GoogleCodeExporter commented 8 years ago
Hi there. Would you mind trying the latest asterisk-unimrcp from SVN 
(https://unimrcp.googlecode.com/svn/solutions/asterisk-unimrcp)? I made some 
changes to get it to compile on Asterisk 11.0.1. I guess it could work for 10.0 
as well. Let me know...

Original comment by thirion...@gmail.com on 25 Nov 2012 at 9:56

GoogleCodeExporter commented 8 years ago

Original comment by thirion...@gmail.com on 25 Nov 2012 at 10:09

GoogleCodeExporter commented 8 years ago
Still the same error with asterisk 10.4.0 (using revision 1849):

res_speech_unimrcp.c: In function 'uni_engine_load':
res_speech_unimrcp.c:1326: warning: passing argument 5 of 'apt_log_file_open' 
makes pointer from integer without a cast
/usr/local/unimrcp/include/apt_log.h:140: note: expected 'struct apr_pool_t *' 
but argument is of type 'int'
res_speech_unimrcp.c:1326: error: too many arguments to function 
'apt_log_file_open'

Original comment by arthur.n...@rentabiliweb.com on 26 Nov 2012 at 11:21

GoogleCodeExporter commented 8 years ago
The mentioned compilation warning showed up, since you were using the UniMRCP 
connector bridge for Asterisk from SVN trunk against an old version of the 
UniMRCP library.

Here is the change which made that happen in you case.
http://code.google.com/p/unimrcp/source/detail?spec=svn1889&r=1785

Anyway, I'd strongly suggest you to try SVN trunk for both the connector and 
the UniMRCP libs. There have been many compilation and compatibility issues 
fixed there recently. Or just wait a couple of weeks for a new release to be 
available.

Original comment by achalo...@gmail.com on 6 Mar 2013 at 2:42