./configure with CC="ccache gcc" doesn't work
authorAndy Wingo <wingo@oblong.com>
Wed, 19 Jan 2011 16:24:57 +0000 (17:24 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:43 +0000 (09:37 -0800)
3f/36abf6080882605a88a0c15c1ae6cbb816961d [new file with mode: 0644]

diff --git a/3f/36abf6080882605a88a0c15c1ae6cbb816961d b/3f/36abf6080882605a88a0c15c1ae6cbb816961d
new file mode 100644 (file)
index 0000000..53d24fe
--- /dev/null
@@ -0,0 +1,96 @@
+Return-Path: <wingo@oblong.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 89F91431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 19 Jan 2011 08:35:13 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 0XaACHow2kSv for <notmuch@notmuchmail.org>;\r
+       Wed, 19 Jan 2011 08:35:12 -0800 (PST)\r
+X-Greylist: delayed 304 seconds by postgrey-1.32 at olra;\r
+       Wed, 19 Jan 2011 08:35:12 PST\r
+Received: from smtp-1.01.com (smtp-1.01.com [38.102.63.180])\r
+       by olra.theworths.org (Postfix) with ESMTP id E78CF431FB5\r
+       for <notmuch@notmuchmail.org>; Wed, 19 Jan 2011 08:35:12 -0800 (PST)\r
+Received: from localhost (localhost.localdomain [127.0.0.1])\r
+       by smtp-1.01.com (Postfix) with ESMTP id 228A1E381F\r
+       for <notmuch@notmuchmail.org>; Wed, 19 Jan 2011 10:30:07 -0600 (CST)\r
+Received: from smtp-1.01.com ([127.0.0.1])\r
+       by localhost (smtp-1.01.com [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Nu9kTl-O3PC7 for <notmuch@notmuchmail.org>;\r
+       Wed, 19 Jan 2011 10:30:07 -0600 (CST)\r
+Received: from harpy.local (74.Red-80-24-4.staticIP.rima-tde.net [80.24.4.74])\r
+       by smtp-1.01.com (Postfix) with ESMTPSA id EE44B36C611\r
+       for <notmuch@notmuchmail.org>; Wed, 19 Jan 2011 10:30:04 -0600 (CST)\r
+From: Andy Wingo <wingo@oblong.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: ./configure with CC="ccache gcc" doesn't work\r
+Date: Wed, 19 Jan 2011 17:24:57 +0100\r
+Message-ID: <m3ei8897za.fsf@oblong.com>\r
+User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+X-Mailman-Approved-At: Wed, 19 Jan 2011 21:42:55 -0800\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 19 Jan 2011 16:35:13 -0000\r
+\r
+Hello,\r
+\r
+On my Fedora 13 x86-64 system,\r
+\r
+    $ env | grep CC\r
+    CC=3Dccache gcc\r
+    $ ./configure --prefix=3D/usr --libdir=3D/usr/lib64\r
+    [...]\r
+    Checking for getline... No (will use our own instead).\r
+    Checking for strcasestr... No (will use our own instead).\r
+    Checking for rpath support... No (nothing to worry about).\r
+    Checking for -Wl,--as-needed... No (nothing to worry about).\r
+    [... success ...]\r
+\r
+The replacement strcasestr later causes build errors:\r
+\r
+    CXX -O2 lib/directory.o\r
+    In file included from lib/notmuch-private.h:41,\r
+                     from lib/directory.cc:22:\r
+    /usr/include/string.h:371: error: new declaration =E2=80=98const char* =\r
+strcasestr(const char*, const char*)=E2=80=99\r
+    compat/compat.h:46: error: ambiguates old declaration =E2=80=98char* st=\r
+rcasestr(const char*, const char*)=E2=80=99\r
+\r
+But if I export CC=3Dgcc, things succeed:\r
+\r
+    Checking for getline... Yes.\r
+    Checking for strcasestr... Yes.\r
+    Checking for rpath support... Yes.\r
+\r
+And the build goes fine.\r
+\r
+I think the problem occurs due to the IFS setting in configure.  Not\r
+sure what the right solution is; I am not married to having ccache in the\r
+environment.  It's simply that this is what has worked in the past.  If\r
+there is a better option for using ccache I'm happy to switch, as long\r
+as it's globally applicable.\r
+\r
+Happy hacking,\r
+\r
+Andy\r