AaronZhangL / 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' #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have troubling compiling the last tag 0.7.0 in a RHEL4.7 environment. I'm
using apr 1.2.12, apr-util 1.2.12 and sofia sip 1.2.19

When I try to compile I got an error message about can't find a
apr_pool_mutex_set function. I try to find that in the apr source without
success

Step by Step all procedure..

I run configure as following:

./configure --prefix=/home/fabrizio/instaladores/sources/unimrcp/local
--with-apr=/home/fabrizio/instaladores/sources/apr/local/bin/apr-1-config
--with-apr-util=/home/fabrizio/instaladores/sources/apr-util/local/bin/apu-1-con
fig
 --with-sofia-sip=/home/fabrizio/instaladores/sources/sofia-sip/local
--disable-cepstral-plugin

The final report show me:

configure: Report:
configure:   UniMRCP: 0.7.0
configure:   APR: 1.2.12
configure:   APR-Util: 1.2.12
configure:   Sofia-SIP: 1.12.9
configure: Plugins:
configure:   Demo Synthesizer: yes
configure:   Demo Recognizer: yes
configure:   Cepstral: no
configure:   PocketSphinx: no
configure:   Flite: no

Then, when I run "make" I get the following error:

make[2]: Entering directory
`/home/fabrizio/instaladores/sources/unimrcp/tags/0.7.0/platforms/unimrcp-server
'
/bin/sh ../../libtool --mode=link --tag=CC gcc  -g -O2  -g -O2 -pthread  
-o unimrcpserver  main.o uni_cmdline.o uni_daemon.o
../../platforms/libunimrcp-server/libunimrcpserver.la 
libtool: link: warning: library `/usr/lib/libsofia-sip-ua.la' was moved.
gcc -g -O2 -g -O2 -o .libs/unimrcpserver main.o uni_cmdline.o uni_daemon.o
 -pthread ../../platforms/libunimrcp-server/.libs/libunimrcpserver.so
/home/fabrizio/instaladores/sources/apr-util/local/lib/libaprutil-1.so
/home/fabrizio/instaladores/sources/apr/local/lib/libapr-1.so -luuid
-lcrypt /usr/lib/libexpat.so
-L/home/fabrizio/instaladores/sources/sofia-sip/local/lib
/usr/lib/libsofia-sip-ua.so -L/usr/kerberos/lib -lssl -lcrypto
-lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lrt -lpthread
-Wl,--rpath -Wl,/home/fabrizio/instaladores/sources/unimrcp/local/lib
-Wl,--rpath -Wl,/home/fabrizio/instaladores/sources/apr-util/local/lib
-Wl,--rpath -Wl,/home/fabrizio/instaladores/sources/apr/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
`/home/fabrizio/instaladores/sources/unimrcp/tags/0.7.0/platforms/unimrcp-server
'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/home/fabrizio/instaladores/sources/unimrcp/tags/0.7.0/platforms'
make: *** [install-recursive] Error 1

When I try to find the function, only appears in the file 

unimrcp/tags/0.7.0/libs/apr-toolkit/src/apt_pool.c:34:      
apr_pool_mutex_set(pool,mutex); 

What I'm doing wrong here?

Original issue reported on code.google.com by haza...@gmail.com on 14 Aug 2009 at 10:44

GoogleCodeExporter commented 9 years ago
Consider using patch, which makes APR pools thread safe or just use already 
patched
distribution.

See snip from Installation Guide
-----------------------------------------------
The easiest and recommended way is to install an appropriate dependency package 
from
download are, which contains APR, APR-Util and Sofia-SIP libraries UniMRCP uses.

    http://unimrcp.googlecode.com/files/unimrcp-deps.tar.gz (Unix)
    http://unimrcp.googlecode.com/files/unimrcp-deps.zip (Win)

Alternatively, original distribution of APR, APR-Util and Sofia-SIP libraries 
and
patches for them can be downloaded from

    http://www.unimrcp.org/dependencies/ 
-----------------------------------------------

Also read the discussion concerning this topic
http://groups.google.com/group/unimrcp/browse_thread/thread/68a71c71679e3c24

Original comment by achalo...@gmail.com on 15 Aug 2009 at 7:33

GoogleCodeExporter commented 9 years ago

Original comment by achalo...@gmail.com on 5 Oct 2009 at 4:27