Issue with compiling unimrcp -0.4 on linux

134 views
Skip to first unread message

rohit

unread,
Jan 21, 2009, 11:34:50 AM1/21/09
to UniMRCP
I am not able to install mrcp .

using make gives the following error
<code>
Making all in libs
make[1]: Entering directory `/home/rohit/unimrcp-0.4.0/libs'
Making all in apr-toolkit
make[2]: Entering directory `/home/rohit/unimrcp-0.4.0/libs/apr-
toolkit'
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=
\"unimrcp\" -DPACKAGE_TARNAME=\"unimrcp\" -DPACKAGE_VERSION=\"0.4.0\" -
DPACKAGE_STRING=\"unimrcp\ 0.4.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=
\"unimrcp\" -DVERSION=\"0.4.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 -DLT_OBJDIR=
\".libs/\" -I. -I. -I../../libs/apr-toolkit/include -I/usr/include/
apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -DLINUX=2 -
D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pipe -Wall -
g -O2 -pthread -MT apt_consumer_task.lo -MD -MP -MF ".deps/
apt_consumer_task.Tpo" -c -o apt_consumer_task.lo `test -f 'src/
apt_consumer_task.c' || echo './'`src/apt_consumer_task.c; \
then mv -f ".deps/apt_consumer_task.Tpo" ".deps/
apt_consumer_task.Plo"; else rm -f ".deps/apt_consumer_task.Tpo"; exit
1; fi
libtool: compile: gcc -DPACKAGE_NAME=\"unimrcp\" -DPACKAGE_TARNAME=
\"unimrcp\" -DPACKAGE_VERSION=\"0.4.0\" "-DPACKAGE_STRING=\"unimrcp
0.4.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"unimrcp\" -DVERSION=
\"0.4.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 -DLT_OBJDIR=\".libs/\" -I. -I. -
I../../libs/apr-toolkit/include -I/usr/include/apr-1.0 -I/usr/include/
apr-1.0 -I/usr/include/postgresql -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -g -O2 -pipe -Wall -g -O2 -pthread -MT
apt_consumer_task.lo -MD -MP -MF .deps/apt_consumer_task.Tpo -c src/
apt_consumer_task.c -fPIC -DPIC -o .libs/apt_consumer_task.o
src/apt_consumer_task.c:23: error: expected specifier-qualifier-list
before 'apr_queue_t'
src/apt_consumer_task.c: In function 'apt_consumer_task_create':
src/apt_consumer_task.c:37: error: 'apt_consumer_task_t' has no member
named 'msg_queue'
src/apt_consumer_task.c:38: warning: implicit declaration of function
'apr_queue_create'
src/apt_consumer_task.c:38: error: 'apt_consumer_task_t' has no member
named 'msg_queue'
src/apt_consumer_task.c: In function 'apt_consumer_task_msg_signal':
src/apt_consumer_task.c:67: warning: implicit declaration of function
'apr_queue_push'
src/apt_consumer_task.c:67: error: 'apt_consumer_task_t' has no member
named 'msg_queue'
src/apt_consumer_task.c: In function 'apt_consumer_task_run':
src/apt_consumer_task.c:82: warning: implicit declaration of function
'apr_queue_pop'
src/apt_consumer_task.c:82: error: 'apt_consumer_task_t' has no member
named 'msg_queue'
make[2]: *** [apt_consumer_task.lo] Error 1
make[2]: Leaving directory `/home/rohit/unimrcp-0.4.0/libs/apr-
toolkit'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rohit/unimrcp-0.4.0/libs'
make: *** [all-recursive] Error 1
</code>

Arsen Chaloyan

unread,
Jan 21, 2009, 1:04:47 PM1/21/09
to uni...@googlegroups.com
Looks strange.
What version of APR and APR-util libraries have you installed?
gcc --version ?

Try to add 'struct' qualifier before apr_queue_t in
src/apt_consumer_task.c:23:
-       apr_queue_t *msg_queue;
+      struct apr_queue_t *msg_queue;

and see if it helps.

rohit raj

unread,
Jan 21, 2009, 1:33:43 PM1/21/09
to uni...@googlegroups.com
I am using

gcc version 4.1.2

apr version 1.2.7-8.2

apr-util version 1.2.7 +dfsg-2

Arsen Chaloyan

unread,
Jan 21, 2009, 2:55:44 PM1/21/09
to uni...@googlegroups.com
apr-util version 1.2.7 +dfsg-2 ?

I guess you are on Debian or Ubuntu, at least those distributions seem to be bundled with apr +dfsg packages. I still wonder what +dfsg package introduces over the generic apr package.

Is it possible for you trying to install generic apr-1.2.12 and apr-util-1.2.12. It should be straigh forward to have multiple installations of apr, you just need to specify apropriate ./configure options.

BTW, I have never observed such a compilation error on RedHat based distributions
RHEL4, RHEL5, CentOS 5.1, FedoraCora 7 with gcc 3.x and 4.x versions.

Arsen Chaloyan

unread,
Jan 22, 2009, 9:25:53 AM1/22/09
to uni...@googlegroups.com
I'm trying to have closer look at this.

Seems your compiler knows nothing about apr_queue_t type, which is defined in apr-util package (include/apr_queue.h). However this header file is in include path for sure. From other hand, apr_queue_t is declared under #if APR_HAS_THREADS define. Thus I guess include/apr.h should contain APR_HAS_THREADS disabled.

#define APR_HAS_THREADS           0

Is this true?

rohit raj

unread,
Jan 22, 2009, 10:28:49 AM1/22/09
to uni...@googlegroups.com
I installed generic apr -1.3.3 and apr-util-1.3.4 . Then after i was able to install unimrcp
Reply all
Reply to author
Forward
0 new messages