Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 13975 invoked from network); 13 Jul 2010 15:25:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Jul 2010 15:25:34 -0000 Received: (qmail 32549 invoked by uid 500); 13 Jul 2010 15:25:33 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 32495 invoked by uid 500); 13 Jul 2010 15:25:33 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 32487 invoked by uid 99); 13 Jul 2010 15:25:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jul 2010 15:25:32 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jul 2010 15:25:27 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OYhM2-0004ys-Eq for users@activemq.apache.org; Tue, 13 Jul 2010 08:25:06 -0700 Message-ID: <29151886.post@talk.nabble.com> Date: Tue, 13 Jul 2010 08:25:06 -0700 (PDT) From: manua To: users@activemq.apache.org Subject: Re: Error while creating object In-Reply-To: <1279030003.2518.3.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: agarwal.manu@gmail.com References: <29150104.post@talk.nabble.com> <1279026418.2518.1.camel@localhost> <29150827.post@talk.nabble.com> <1279030003.2518.3.camel@localhost> X-Virus-Checked: Checked by ClamAV on apache.org 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 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> >> 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, >> hostname=@0xbfa95954, >> >> ipAddress=0x16604bb "\177", numBytes=4) >> >> at decaf/net/InetAddress.cpp:79 >> >> #4 0x015daff7 in Inet4Address (this=0xbfa9591c, >> >> hostname=@0xbfa95954, >> >> ipAddress=0x16604bb "\177", numBytes=4) >> >> at decaf/net/Inet4Address.cpp:34 >> >> #5 0x015dc073 in __static_initialization_and_destruction_0 >> >> (__initialize_p=, >> >> __priority=) 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/ > > > -- View this message in context: http://old.nabble.com/Error-while-creating-object-tp29150104p29151886.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.