Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 391B2431FB6 for ; Thu, 20 Jan 2011 04:14:51 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CBwnHjHu0t1G for ; Thu, 20 Jan 2011 04:14:50 -0800 (PST) X-Greylist: delayed 313 seconds by postgrey-1.32 at olra; Thu, 20 Jan 2011 04:14:50 PST Received: from mail.loccal.net (gw.loccal.net [94.142.235.206]) by olra.theworths.org (Postfix) with ESMTP id 95FC8431FB5 for ; Thu, 20 Jan 2011 04:14:50 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.loccal.net (Postfix) with ESMTP id 391BD10477; Thu, 20 Jan 2011 13:21:54 +0100 (CET) X-Virus-Scanned: amavisd-new at loccal.net Received: from mail.loccal.net ([127.0.0.1]) by localhost (mail.loccal.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0aeDwX-U1E8C; Thu, 20 Jan 2011 13:21:50 +0100 (CET) Received: from steelpick.2x.cz (unknown [10.21.129.4]) by mail.loccal.net (Postfix) with ESMTPS id 98920105B8; Thu, 20 Jan 2011 13:21:48 +0100 (CET) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1Pfr9c-0003r6-AC; Thu, 20 Jan 2011 10:50:08 +0100 From: Michal Sojka To: Andy Wingo , notmuch@notmuchmail.org Subject: Re: ./configure with CC="ccache gcc" doesn't work In-Reply-To: References: User-Agent: Notmuch/0.5-38-g923b170 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Thu, 20 Jan 2011 10:50:08 +0100 Message-ID: <87zkqvnbu7.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 12:14:51 -0000 Hi Andy, On Wed, 19 Jan 2011, Andy Wingo wrote: > On my Fedora 13 x86-64 system, >=20 > $ env | grep CC > CC=3Dccache gcc > $ ./configure --prefix=3D/usr --libdir=3D/usr/lib64 > [...] > Checking for getline... No (will use our own instead). > Checking for strcasestr... No (will use our own instead). > Checking for rpath support... No (nothing to worry about). > Checking for -Wl,--as-needed... No (nothing to worry about). > [... success ...] >=20 > The replacement strcasestr later causes build errors: >=20 > CXX -O2 lib/directory.o > In file included from lib/notmuch-private.h:41, > from lib/directory.cc:22: > /usr/include/string.h:371: error: new declaration =E2=80=98const char= * strcasestr(const char*, const char*)=E2=80=99 > compat/compat.h:46: error: ambiguates old declaration =E2=80=98char* = strcasestr(const char*, const char*)=E2=80=99 >=20 > But if I export CC=3Dgcc, things succeed: >=20 > Checking for getline... Yes. > Checking for strcasestr... Yes. > Checking for rpath support... Yes. >=20 > And the build goes fine. >=20 > I think the problem occurs due to the IFS setting in configure. Not > sure what the right solution is; I am not married to having ccache in the > environment. It's simply that this is what has worked in the past. If > there is a better option for using ccache I'm happy to switch, as long > as it's globally applicable. Hmm, the IFS thing in configure seems annoying in this case. But you can create a little script containing exec ccache gcc "$@" and set CC to the name of the script, cannot you? -Michal