activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Libraries to include while compiling my activemq-cpp code
Date Fri, 24 Apr 2009 20:58:44 GMT
On Fri, 2009-04-24 at 13:52 -0700, nmittal wrote:
> 
> 
> Timothy Bish wrote:
> > 
> > Besides the activemq-cpp lib you need:
> > 
> > libapr-1
> > libaprutil-1
> > 
> > and whatever libs that the APR scripts tell you
> > apr-1-config --libs
> > apu-1-config --libs
> > 
> > Regards
> > Tim.
> > 
> > 
> > 
> 
> Tim thanks. My Makefile looks like this...
> ifeq ($(UNAME), Linux)
> CPPLDFLAGS   = -pipe -fPIC -O3 -m64
> CPPFLAGS     = -I. -I/RSIGrid/amq/activemq-cpp-2.2.5/src/main
> -I/RSIGrid/amq/apr-1.3.3/include -c
> LDFLAGS      = -L/usr/local/lib -L/RSIGrid/amq/apr-1.3.3/libapr-1.la
> -L/RSIGrid/amq/apr-util-1.3.4/libaprutil-1.la
> -L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/libexpat.la -m64  
> CC_OUTPUT_FLAG = -o
> CC = g++
> LDLIBS = -lactivemq-cpp -luuid -lrt -lcrypt  -lpthread -ldl
> endif
> 
> however when I try to make, i get...
> g++ -pipe -fPIC -O3 -m64 -L/usr/local/lib
> -L/RSIGrid/amq/apr-1.3.3/libapr-1.la
> -L/RSIGrid/amq/apr-util-1.3.4/libaprutil-1.la
> -L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/libexpat.la -m64   -o
> /RSIGrid/register_ticker RegisterTicker.o -lpthread -lactivemq-cpp -luuid
> -lrt -lcrypt  -lpthread -ldl
> /usr/local/lib/libactivemq-cpp.so: undefined reference to
> `apr_pool_create_unmanaged_ex'
> collect2: ld returned 1 exit status
> make: *** [/RSIGrid/register_ticker] Error 1
> 
> 
> what am I missing. I appreciate any help on this.
> 
> thanks
> Nishant
> 
> 

It looks like its not using the correct version of APR, which is odd.
The `apr_pool_create_unmanaged_ex' didn't exist until APR 1.3 so if
that's not being found then it seems as if you are getting an old APR.
Have you tried linking against the APR .so files you built instead of
the libtool .la files.

Regards
Tim.




Mime
View raw message