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.




-- 
View this message in context: 
http://www.nabble.com/Libraries-to-include-while-compiling-my-activemq-cpp-code-tp23223505p23263959.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to