Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 12967 invoked from network); 12 Jan 2007 11:25:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2007 11:25:45 -0000 Received: (qmail 51677 invoked by uid 500); 12 Jan 2007 11:25:50 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 51636 invoked by uid 500); 12 Jan 2007 11:25:50 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 51620 invoked by uid 99); 12 Jan 2007 11:25:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 03:25:50 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jorton@redhat.com designates 66.187.233.31 as permitted sender) Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 03:25:41 -0800 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l0CBPJBU013701; Fri, 12 Jan 2007 06:25:19 -0500 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l0CBPHKI026550; Fri, 12 Jan 2007 06:25:18 -0500 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.13.8/8.13.7) with ESMTP id l0CBPG2x009730; Fri, 12 Jan 2007 11:25:16 GMT Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.13.8/8.13.8/Submit) id l0CBPE7X009729; Fri, 12 Jan 2007 11:25:14 GMT Date: Fri, 12 Jan 2007 11:25:14 +0000 From: Joe Orton To: Ruediger Pluem Cc: dev@apr.apache.org Subject: Re: [Fwd: DO NOT REPLY [Bug 28205] - expat detection broken on lib64 platforms] Message-ID: <20070112112514.GA7538@redhat.com> Mail-Followup-To: Ruediger Pluem , dev@apr.apache.org References: <45A2ABAA.9020606@apache.org> <45A6C362.6070605@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <45A6C362.6070605@apache.org> User-Agent: Mutt/1.4.2.1i X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Jan 12, 2007 at 12:08:18AM +0100, Ruediger Pluem wrote: > On 01/08/2007 09:38 PM, Ruediger Pluem wrote: > > Based on r493791 by Joe I created the attached patch which smoothly applies to > > apr-util 1.2.8. I tested this patch successfully with the following > > environments: > > > > SuSE 8.1 32 bit with libexpat installed in /usr/lib > > SuSE 10.1 64 bit with libexpat installed in /usr/lib (32 bit) and /usr/lib64 > > (64 bit) and a 64 bit build. Thanks for testing this out! > I noticed that the following situation does not work as expected: > > - 64 bit Linux system (SuSE 10.1 in my case) > - 32 bit and 64 bit versions of libexpat installed with libexpat.la present > in /usr/lib and /usr/lib64 > - CFLAGS contain -m32 to create a 32 bit build on a 64 bit system The only correct way to change the compiler ABI choice is to use e.g.: CC="gcc -m32" since there are places (as you note) where $CC will be used without LDFLAGS or CFLAGS. Regards, joe