From users-return-20087-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Wed Aug 12 13:20:56 2009 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 69792 invoked from network); 12 Aug 2009 13:20:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Aug 2009 13:20:55 -0000 Received: (qmail 45194 invoked by uid 500); 12 Aug 2009 13:21:02 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 45129 invoked by uid 500); 12 Aug 2009 13:21:02 -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 45119 invoked by uid 99); 12 Aug 2009 13:21:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 13:21:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tabish121@gmail.com designates 74.125.92.149 as permitted sender) Received: from [74.125.92.149] (HELO qw-out-1920.google.com) (74.125.92.149) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 13:20:52 +0000 Received: by qw-out-1920.google.com with SMTP id 14so1466975qwa.26 for ; Wed, 12 Aug 2009 06:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=jk+zIRePBLciCzLZbgwLsx+XCnMCm3/yhrc4A5TbW5k=; b=i0xzVdX5weAMg6ATqSX7xegC1m1SGoyJgcYJ0DBWb67/q5jFhMQmmyBQTvHJQmgPhP VpT0YhyuSf4UQs+r669Ev7+EyD/zbvzvtwld27rjRab4bKL7Wvebxqn2bOUiUgvecXg2 6I7v85PygLPb1zE9X+mqQveJI5wcxnBJxSkcg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=PcUED6hiWk72XcBV2jtaIJcQd9CeAA6WyIHHQKMekVYKXr+Dclm2x5YGYjVlQmFGJx MRIDDeKFJDamYhIMyDDxX+HABJXSIxvQ70mhdUvS0GUZZwT+eQSuiGcbT1SJ3RoYjk83 9or/pofvUPojiypwOWSnmRVHtGgLDtNR8slJ8= Received: by 10.224.6.10 with SMTP id 10mr89161qax.60.1250083231960; Wed, 12 Aug 2009 06:20:31 -0700 (PDT) Received: from ?192.168.2.150? (c-69-138-183-90.hsd1.va.comcast.net [69.138.183.90]) by mx.google.com with ESMTPS id 21sm549835ywh.1.2009.08.12.06.20.30 (version=SSLv3 cipher=RC4-MD5); Wed, 12 Aug 2009 06:20:31 -0700 (PDT) Subject: Re: Build activemq-cpp lib in 32bit on 64bit system From: Timothy Bish To: users@activemq.apache.org In-Reply-To: <20090811082643.149490@gmx.net> References: <20090811082643.149490@gmx.net> Content-Type: text/plain Date: Wed, 12 Aug 2009 09:20:29 -0400 Message-Id: <1250083229.2622.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2009-08-11 at 10:26 +0200, Peter.Neu@gmx.net wrote: > Hi, > > I need to build a 32bit version of activemqcpp lib on a 64bit SLES 10 system because we use some third-party libs which unfortunately are only available in 32bit. > > I compiled apr,apr-util and apr-iconv with this compiler flag: CC="gcc -m32" ./configure. All went swell but when trying to do a make for activemqcpp. I this error: > > /root/develop/aprbuild/lib/libapr-1.so: could not read symbols: File in wrong format > collect2: ld returned 1 exit status > make[2]: *** [libactivemq-cpp.la] Error 1 > make[2]: Leaving directory `/usr/local/activemq-cpp-library-2.2/src/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/activemq-cpp-library-2.2' > make: *** [all] Error 2 > > A quick google search tells me it has to do with the fact I'm trying to build the 32bit version on a 64bit system. But I could not find a solution for it. Any ideas? > > Cheers, > Pete > Well you can try setting CXX to "gcc -m32" as well, but its probably not going to be that simple as you need 32bit versions of every dependency that the library needs and that's sometimes tricky. I'd recommend some reading on cross compiling using the autotools. Good luck! Regards Tim. -- Tim Bish http://fusesource.com http://timbish.blogspot.com/