On Mon, 2009-04-27 at 13:09 -0700, nmittal wrote:
> 
> 
> Timothy Bish wrote:
> > 
> > On Mon, 2009-04-27 at 09:38 -0700, nmittal wrote:
> > 
> > Most autoconf based packages install in /usr/local by default unless you
> > pass the prefix argument to the configure script.
> > 
> > Try './configure --prefix=/usr'
> > 
> > Reading the configure scripts help output can be helpful
> > './configure --help'
> > 
> > Regards
> > Tim.
> > 
> > -- 
> > Tim Bish
> > http://fusesource.com
> > http://timbish.blogspot.com/
> > 
> > 
> 
> Tim, thanks again.
> I have installed apr-util-1.3.4 and apr-1.3.3
> # apu-1-config --version
> 1.3.4
> # apr-1-config --version
> 1.3.3
> #
> 
> I re-built and installed Activemq-cpp again.
> 
> -rw-r--r-- 1 root root 94597276 Apr 27 15:53
> /usr/local/lib/libactivemq-cpp.a
> -rwxr-xr-x 1 root root      952 Apr 27 15:53
> /usr/local/lib/libactivemq-cpp.la
> lrwxrwxrwx 1 root root       24 Apr 27 15:53
> /usr/local/lib/libactivemq-cpp.so -> libactivemq-cpp.so.7.0.0
> lrwxrwxrwx 1 root root       24 Mar 18 13:19
> /usr/local/lib/libactivemq-cpp.so.6 -> libactivemq-cpp.so.6.0.1
> -rwxr-xr-x 1 root root 33210789 Mar 18 13:19
> /usr/local/lib/libactivemq-cpp.so.6.0.1
> lrwxrwxrwx 1 root root       24 Apr 27 15:53
> /usr/local/lib/libactivemq-cpp.so.7 -> libactivemq-cpp.so.7.0.0
> -rwxr-xr-x 1 root root 33311937 Apr 27 15:53
> /usr/local/lib/libactivemq-cpp.so.7.0.0
> lrwxrwxrwx 1 root root       24 Mar 18 12:17
> /usr/local/lib/libcppunit-1.12.so.1 -> libcppunit-1.12.so.1.0.0
> -rwxr-xr-x 1 root root  2450989 Mar 18 12:17
> /usr/local/lib/libcppunit-1.12.so.1.0.0
> -rw-r--r-- 1 root root  5772290 Mar 18 12:17 /usr/local/lib/libcppunit.a
> -rwxr-xr-x 1 root root      844 Mar 18 12:17 /usr/local/lib/libcppunit.la
> lrwxrwxrwx 1 root root       24 Mar 18 12:17 /usr/local/lib/libcppunit.so ->
> libcppunit-1.12.so.1.0.0
> 
> I have changed my Makefile to..
> 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/lib
> -L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/libexpat.la -m64
> CC_OUTPUT_FLAG = -o
> CC = g++
> LDLIBS = -lpthread -lactivemq-cpp -lapr-1 -laprutil-1 -luuid -lrt -lcrypt 
> -lpthread -ldl
> 
> however, when i build my code I get this...
> 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/local/lib -L/usr/lib
> -L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/libexpat.la -m64   -o
> /RSIGrid/register_ticker RegisterTicker.o -lpthread -lactivemq-cpp -lapr-1
> -laprutil-1 -luuid -lrt -lcrypt  -lpthread -ldl
> /usr/bin/ld: skipping incompatible /usr/lib/libuuid.so when searching for
> -luuid
> /usr/bin/ld: skipping incompatible /usr/lib/libuuid.a when searching for
> -luuid
> 
> it builds fine but when I try to run the executable i get...
> $ ./register_ticker 
> ./register_ticker: symbol lookup error: /usr/local/lib/libactivemq-cpp.so.7:
> undefined symbol: apr_pool_create_unmanaged_ex
> $
> 
> also my LD_LIBRARY_PATH is...
> $ echo $LD_LIBRARY_PATH 
> /usr/lib64:/usr/local/BerkeleyDB.4.7/lib:/usr/lib:/usr/local/lib
> 
> I have no clue what I am doing wrong.. please help.
> 
> 
> 
> 

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/



Reply via email to