activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmittal <>
Subject Re: Libraries to include while compiling my activemq-cpp code
Date Tue, 28 Apr 2009 15:35:35 GMT

Timothy Bish wrote:
> It still appears if your environment is working against you.  You need
> to spend some time figuring out what is installed and where.
>> /usr/bin/ld: skipping incompatible /usr/lib/ when searching
>> for -luuid
> This error usually means that you don't have the right type of lib
> installed, since you are building 64bit you might want to check that you
> have a 64but version of this library installed.
> You can start tracking what you have installed and also see what the
> linker is going to find by using the locate command:
> locate
> locate
> locate
> etc, etc.
> wheneever you see "undefined symbol: apr_pool_create_unmanaged_ex" you
> can be pretty sure that you are getting a version of APR older than 1.3
> loaded from somewhere.
> Regards
> Tim.
> -- 
> Tim Bish

Tim, I reinstalled all required libraries and i include them specifically in
my Makefile now...
CPPLDFLAGS   = -pipe -fPIC -O3 -m64
CPPFLAGS     = -I. -I/RSIGrid/amq/activemq-cpp-2.2.5/src/main
-I/usr/include/apr-1 -c
LDFLAGS      = -L/usr/lib/ -L/usr/lib64/
-L/usr/lib/ -L/usr/lib/
-L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/ -m64  
CC = g++
LDLIBS = -lpthread -lrt -lcrypt -ldl

I built the ActiveMQ-CPP library again using the following options
#./configure --with-apr=/usr/bin/apr-1-config
--with-apr-util=/usr/bin/apu-1-config --prefix=/usr
#make install
# /usr/bin/activemqcpp-config --version
# /usr/bin/activemqcpp-config --libs
# /usr/bin/activemqcpp-config --includes
# /usr/bin/activemqcpp-config --prefix
# /usr/bin/activemqcpp-config --exec-prefix
# /usr/bin/activemqcpp-config --libs
# /usr/bin/activemqcpp-config --cflags

Now when I try to build my code, I get this error....

$ make
make: Warning: File `Makefile' has modification time 81 s in the future
g++ -pipe -fPIC -O3 -m64 -I. -I/RSIGrid/amq/activemq-cpp-2.2.5/src/main
-I/usr/include/apr-1 -c -o RegisterTicker.o RegisterTicker.cpp
g++ -pipe -fPIC -O3 -m64 -L/usr/lib/
-L/usr/lib64/ -L/usr/lib/ -L/usr/lib/
-L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/ -m64   -o
/RSIGrid/register_ticker RegisterTicker.o -lpthread -lrt -lcrypt -ldl
RegisterTicker.o: In function `SimpleAsyncConsumer::runConsumer()':
RegisterTicker.cpp:(.text+0x497): undefined reference to
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::basic_string<char, std::char_traits<char>, std::allocator<char>
> const&)'
collect2: ld returned 1 exit status
make: *** [/RSIGrid/register_ticker] Error 1

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message