On Tue, 2009-04-28 at 08:35 -0700, nmittal wrote:
> 
> 
> 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/libuuid.so 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 uuid.so
> > locate apr-1.so
> > locate aprutil-1.so
> > 
> > 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
> > http://fusesource.com
> > http://timbish.blogspot.com/
> > 
> 
> 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/libactivemq-cpp.so -L/usr/lib64/libuuid.so
> -L/usr/lib/libapr-1.so -L/usr/lib/libaprutil-1.so
> -L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/libexpat.la -m64  
> CC_OUTPUT_FLAG = -o
> 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
> #make install
> # /usr/bin/activemqcpp-config --version
> 2.2.5
> # /usr/bin/activemqcpp-config --libs
> -lactivemq-cpp
> # /usr/bin/activemqcpp-config --includes
> -I/usr/include/activemq-cpp-2.2.5
> # /usr/bin/activemqcpp-config --prefix
> /usr
> # /usr/bin/activemqcpp-config --exec-prefix
> /usr
> # /usr/bin/activemqcpp-config --libs
> -lactivemq-cpp
> # /usr/bin/activemqcpp-config --cflags
> -I/usr/include/activemq-cpp-2.2.5
> 
> 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/libactivemq-cpp.so
> -L/usr/lib64/libuuid.so -L/usr/lib/libapr-1.so -L/usr/lib/libaprutil-1.so
> -L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/libexpat.la -m64   -o
> /RSIGrid/register_ticker RegisterTicker.o -lpthread -lrt -lcrypt -ldl
> RegisterTicker.o: In function `SimpleAsyncConsumer::runConsumer()':
> RegisterTicker.cpp:(.text+0x497): undefined reference to
> `activemq::core::ActiveMQConnectionFactory::ActiveMQConnectionFactory(std::basic_string<char,
> 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
> $
> 

Is it possible you are building 32bit versions of APR and AMQCPP, I ask
since they are installed in /usr/lib apparently and on your system I
would expect them in /usr/lib64 ?


-- 
Tim Bish
http://fusesource.com
http://timbish.blogspot.com/



Reply via email to