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