andrenatal / unimrcp

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

undefined reference to `apr_pool_mutex_set' #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am installing unimrcp on redhat enterprise 5.8(64bit).  I installed APR, 
APR-Util, Sofia-SIP from unimrcp website dependencies package.

Here are the output of ./configue

configure: Report:
configure:   UniMRCP: 1.1.0
configure:   APR: 1.4.6
configure:   APR-Util: 1.3.12
configure:   Sofia-SIP: 1.12.11
configure: Plugins:
configure:   Demo Synthesizer: yes
configure:   Demo Recognizer: yes
configure:   Demo Verifier: yes
configure:   Recorder: yes
configure:   PocketSphinx: no
configure:   Flite: no

But I still encounter error during "make" stage. Here is the error message

make[2]: Leaving directory 
`/root/Desktop/MRCP/unimrcp-1.1.0/platforms/libunimrcp-server'
Making all in unimrcp-server
make[2]: Entering directory 
`/root/Desktop/MRCP/unimrcp-1.1.0/platforms/unimrcp-server'
/bin/sh ../../libtool --tag=CC --mode=link gcc  -g -O2  -g -O2 -pthread   -o 
unimrcpserver  main.o uni_cmdline.o uni_daemon.o 
../../platforms/libunimrcp-server/libunimrcpserver.la 
gcc -g -O2 -g -O2 -pthread -o .libs/unimrcpserver main.o uni_cmdline.o 
uni_daemon.o  ../../platforms/libunimrcp-server/.libs/libunimrcpserver.so 
-L/usr/local/apr/lib /usr/local/apr/lib/libaprutil-1.so /usr/lib64/libexpat.so 
/usr/local/apr/lib/libapr-1.so -luuid -lcrypt -L/usr/local/lib 
/usr/local/lib/libsofia-sip-ua.so -L/usr/kerberos/lib64 -lssl -lcrypto -ldl -lz 
-lrt -lpthread -lm  -Wl,--rpath -Wl,/usr/local/unimrcp/lib -Wl,--rpath 
-Wl,/usr/local/apr/lib -Wl,--rpath -Wl,/usr/local/lib
../../platforms/libunimrcp-server/.libs/libunimrcpserver.so: undefined 
reference to `apr_pool_mutex_set'
collect2: ld returned 1 exit status
make[2]: *** [unimrcpserver] Error 1
make[2]: Leaving directory 
`/root/Desktop/MRCP/unimrcp-1.1.0/platforms/unimrcp-server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/MRCP/unimrcp-1.1.0/platforms'
make: *** [all-recursive] Error 1

Original issue reported on code.google.com by yhj...@gmail.com on 5 Sep 2013 at 1:05

GoogleCodeExporter commented 9 years ago
Few days ago I managed to build UniMRCP on CentOS 6.4 x64 which is a way close 
to your system. The point here is to use patched version of APR. Download 
unimrcp-deps package from this site. You can build and install it as it is 
using build-dep-libs.sh script (it will probably replace existing APR libraries 
which should not harm anything) or build it manually using different 
installation prefix and configure UniMRCP --with-apr=that_prefix.

Original comment by tomas.valenta@speechtech.cz on 10 Sep 2013 at 3:30

GoogleCodeExporter commented 9 years ago
I tried build-dep-libs.sh to install but no luck. By the way, how to install 
patched version of APR? I downloaded the APR installer from UniMRCP website.

Original comment by yhj...@gmail.com on 11 Sep 2013 at 5:56

GoogleCodeExporter commented 9 years ago
For successful installation of patched APR, you must run the build-dep-libs.sh 
script as root in order to write to /usr/local/apr which is the installation 
prefix of your previous installation (according to libtool link script) and 
build-dep-libs.sh as well.

The steps that worked for me:

cd UniMRCP
wget http://unimrcp.googlecode.com/files/unimrcp-deps-1.1.3.tar.gz
tar -xzf unimrcp-deps-1.1.3.tar.gz --strip-components 1
sudo build-dep-libs.sh
# And then the UniMRCP stuff
make clean     # Just to be sure
make distclean # Just to be sure
./bootstrap
./configure
make
sudo make install

Original comment by tomas.valenta@speechtech.cz on 11 Sep 2013 at 8:20