On Tue, 2010-07-13 at 08:25 -0700, manua wrote:
> Hi Tim,
> 
> I am using activemq-cpp-library-3.2.0-src.tar.gz and    
> /usr/lib/libapr-1.so.0.2.11.
> 
> -rw-r--r-- 1 root root   8114 2010-06-21 11:35 /usr/local/apr/lib/apr.exp 
>     -rw-r--r-- 1 root root   5165 2010-06-21 11:38
> /usr/local/apr/lib/aprutil.exp 
>     -rw-r--r-- 1 root root 806606 2010-06-21 11:35
> /usr/local/apr/lib/libapr-1.a 
>     -rwxr-xr-x 1 root root    833 2010-06-21 11:35
> /usr/local/apr/lib/libapr-1.la 
>     lrwxrwxrwx 1 root root     18 2010-06-21 11:35
> /usr/local/apr/lib/libapr-1.so -> libapr-1.so.0.3.12 
>     lrwxrwxrwx 1 root root     18 2010-06-21 11:35
> /usr/local/apr/lib/libapr-1.so.0 -> libapr-1.so.0.3.12 
>     -rwxr-xr-x 1 root root 549894 2010-06-21 11:35
> /usr/local/apr/lib/libapr-1.so.0.3.12 
>     -rw-r--r-- 1 root root 522886 2010-06-21 11:38
> /usr/local/apr/lib/libaprutil-1.a 
>     -rwxr-xr-x 1 root root    921 2010-06-21 11:38
> /usr/local/apr/lib/libaprutil-1.la 
>     lrwxrwxrwx 1 root root     21 2010-06-21 11:38
> /usr/local/apr/lib/libaprutil-1.so -> libaprutil-1.so.0.3.9 
>     lrwxrwxrwx 1 root root     21 2010-06-21 11:38
> /usr/local/apr/lib/libaprutil-1.so.0 -> libaprutil-1.so.0.3.9 
>     -rwxr-xr-x 1 root root 373415 2010-06-21 11:38
> /usr/local/apr/lib/libaprutil-1.so.0.3.9 
>     -rw-r--r-- 1 root root 344628 2010-06-21 11:38
> /usr/local/apr/lib/libexpat.a 
>     -rwxr-xr-x 1 root root    803 2010-06-21 11:38
> /usr/local/apr/lib/libexpat.la 
>     lrwxrwxrwx 1 root root     17 2010-06-21 11:38
> /usr/local/apr/lib/libexpat.so -> libexpat.so.0.1.0 
>     lrwxrwxrwx 1 root root     17 2010-06-21 11:38
> /usr/local/apr/lib/libexpat.so.0 -> libexpat.so.0.1.0 
>     -rwxr-xr-x 1 root root 305004 2010-06-21 11:38
> /usr/local/apr/lib/libexpat.so.0.1.0 
>     
> Further, while building apr i didn't use these options, but when i try to
> reconfigure I got the unrecognized options warning,
> 
>     # ./configure --disable-lfs --enable-nonportable-atomics
> --with-apr=/usr/local/apr/lib/
>     configure: WARNING: unrecognized options: --disable-lfs,
> --enable-nonportable-atomics
>     
> Please let me know your inputs.
> 
> Thanks,
> Manu
> 

You need to use a version of APR greater than 1.3.0, it looks like you
are using the 1.2.11 release in /usr and a version of APR 1.3.12
in /usr/local ?

most likely the v1.2 library is getting loaded when you run your app
which is probably causing you to see the error you are seeing.  You can
try passing the --libdir=/usr/local to the AMQCPP configure script.

Regards



> 
> 
> Timothy Bish wrote:
> > 
> > On Tue, 2010-07-13 at 07:02 -0700, manua wrote:
> >> Hi Tim,
> >> 
> >> My program crashes on
> >> activemq::library::ActiveMQCPP::initializeLibrary();
> >> 
> >> I am using ActriveMQ 5.3 with i686 i686 i386 GNU/Linux box and 
> >>  compiler is gcc version 4.1.2 20070925 (Red Hat 4.1.2-33).
> >> 
> >> Thanks,
> >> Manu
> >> 
> >> 
> > 
> > Which version of AMQCPP, also what versions of APR and APR-Util are you
> > using?
> > 
> > Another use on Redhat has reported that a build of APR with the
> > following options was required in order to get things working, seems
> > there may be some issues with APRs portable atomics
> > 
> > ./configure --disable-lfs and --enable-nonportable-atomics
> > 
> > Regards
> > 
> > 
> >> 
> >> 
> >> Timothy Bish wrote:
> >> > 
> >> > On Tue, 2010-07-13 at 06:02 -0700, manua wrote:
> >> >> Hi All,
> >> >> 
> >> >> I getting the following error while creating the object in AMQ,
> >> >> 
> >> >> #0  0x002cd777 in apr_atomic_add32 (mem=0x95123ec, val=4294967295) at
> >> >> atomic/unix/mutex.c:78 
> >> >>     #1  0x016208b8 in
> >> >> decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet
> >> >> (this=0x95123e8) 
> >> >>         at decaf/util/concurrent/atomic/AtomicInteger.cpp:69 
> >> >>     #2  0x015de038 in decaf::lang::ArrayPointer<unsigned char,
> >> >> decaf::util::concurrent::atomic::AtomicRefCounter>::reset ( 
> >> >>         this=0xbfa95928, value=0x95130a8 "\177", size=4) at
> >> >> ./decaf/util/concurrent/atomic/AtomicRefCounter.h:68 
> >> >>     #3  0x015ddc5c in InetAddress (this=0xbfa9591c,
> >> hostna...@0xbfa95954,
> >> >> ipAddress=0x16604bb "\177", numBytes=4) 
> >> >>         at decaf/net/InetAddress.cpp:79 
> >> >>     #4  0x015daff7 in Inet4Address (this=0xbfa9591c,
> >> >> hostna...@0xbfa95954,
> >> >> ipAddress=0x16604bb "\177", numBytes=4) 
> >> >>         at decaf/net/Inet4Address.cpp:34 
> >> >>     #5  0x015dc073 in __static_initialization_and_destruction_0
> >> >> (__initialize_p=<value optimized out>,  
> >> >>         __priority=<value optimized out>) at
> >> decaf/net/InetAddress.cpp:39 
> >> >>     #6  0x016371b6 in __do_global_ctors_aux () from
> >> >> /usr/local/lib/libactivemq-cpp.so.12 
> >> >>     #7  0x01161b11 in _init () from
> >> /usr/local/lib/libactivemq-cpp.so.12 
> >> >>     #8  0x00811573 in call_init () from /lib/ld-linux.so.2 
> >> >>     #9  0x00811683 in _dl_init_internal () from /lib/ld-linux.so.2 
> >> >>     #10 0x0080388f in _dl_start_user () from /lib/ld-linux.so.2 
> >> >>     
> >> >> What could be the cause of this error or what i am doing wrong.
> >> >> Please let me know your inputs.
> >> >> 
> >> >> Thanks,
> >> >> Manu
> >> > 
> >> > Need a bit more info on you setup, what versions you are using of the
> >> > client and what OS / Compiler you are using.  Also a sample app that
> >> > demonstrates the issue would be of help.
> >> > 
> >> > Regards
> >> > 
> >> > 
> >> > -- 
> >> > Tim Bish
> >> > 
> >> > Open Source Integration: http://fusesource.com
> >> > ActiveMQ in Action: http://www.manning.com/snyder/
> >> > 
> >> > Follow me on Twitter: http://twitter.com/tabish121
> >> > My Blog: http://timbish.blogspot.com/
> >> > 
> >> > 
> >> > 
> >> 
> > 
> > -- 
> > Tim Bish
> > 
> > Open Source Integration: http://fusesource.com
> > ActiveMQ in Action: http://www.manning.com/snyder/
> > 
> > Follow me on Twitter: http://twitter.com/tabish121
> > My Blog: http://timbish.blogspot.com/
> > 
> > 
> > 
> 

-- 
Tim Bish

Open Source Integration: http://fusesource.com
ActiveMQ in Action: http://www.manning.com/snyder/

Follow me on Twitter: http://twitter.com/tabish121
My Blog: http://timbish.blogspot.com/

Reply via email to