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 89F91431FB6 for ; Wed, 19 Jan 2011 08:35:13 -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 0XaACHow2kSv for ; Wed, 19 Jan 2011 08:35:12 -0800 (PST) X-Greylist: delayed 304 seconds by postgrey-1.32 at olra; Wed, 19 Jan 2011 08:35:12 PST Received: from smtp-1.01.com (smtp-1.01.com [38.102.63.180]) by olra.theworths.org (Postfix) with ESMTP id E78CF431FB5 for ; Wed, 19 Jan 2011 08:35:12 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-1.01.com (Postfix) with ESMTP id 228A1E381F for ; Wed, 19 Jan 2011 10:30:07 -0600 (CST) Received: from smtp-1.01.com ([127.0.0.1]) by localhost (smtp-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nu9kTl-O3PC7 for ; Wed, 19 Jan 2011 10:30:07 -0600 (CST) Received: from harpy.local (74.Red-80-24-4.staticIP.rima-tde.net [80.24.4.74]) by smtp-1.01.com (Postfix) with ESMTPSA id EE44B36C611 for ; Wed, 19 Jan 2011 10:30:04 -0600 (CST) From: Andy Wingo To: notmuch@notmuchmail.org Subject: ./configure with CC="ccache gcc" doesn't work Date: Wed, 19 Jan 2011 17:24:57 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Wed, 19 Jan 2011 21:42:55 -0800 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: Wed, 19 Jan 2011 16:35:13 -0000 Hello, On my Fedora 13 x86-64 system, $ 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 ...] The replacement strcasestr later causes build errors: 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* st= rcasestr(const char*, const char*)=E2=80=99 But if I export CC=3Dgcc, things succeed: Checking for getline... Yes. Checking for strcasestr... Yes. Checking for rpath support... Yes. And the build goes fine. 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. Happy hacking, Andy