notmuch.el: controlling what does and doesn't get expanded in searches
[notmuch-archives.git] / 60 / cc071cf96f9f69d3f9ca403a01bb2952a7ee87
1 Return-Path: <alex.boterolowry@gmail.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 1D544431FBC\r
6         for <notmuch@notmuchmail.org>; Tue, 17 Nov 2009 22:04:17 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id UO74-BodVXUw for <notmuch@notmuchmail.org>;\r
11         Tue, 17 Nov 2009 22:04:16 -0800 (PST)\r
12 Received: from mail-pz0-f197.google.com (mail-pz0-f197.google.com\r
13         [209.85.222.197])\r
14         by olra.theworths.org (Postfix) with ESMTP id 03454431FAE\r
15         for <notmuch@notmuchmail.org>; Tue, 17 Nov 2009 22:04:15 -0800 (PST)\r
16 Received: by pzk35 with SMTP id 35so601314pzk.22\r
17         for <notmuch@notmuchmail.org>; Tue, 17 Nov 2009 22:04:15 -0800 (PST)\r
18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
19         h=domainkey-signature:received:received:received:from:to:subject\r
20         :in-reply-to:references:date:message-id:mime-version:content-type\r
21         :content-transfer-encoding;\r
22         bh=K7hwaZwFTl9x5Nnf7sR6HBvmJ5Hy8CSXoIQ2VXG95dI=;\r
23         b=v33IvTbqyUiADGv0eSg1EMHzTtT1rogTgwWcsh5Dy/2ZhIivZxTfqD7hfcFRKKu3Ja\r
24         cPDWmQW59ecL1YAIP/Cf4KZ8si71jTgu4kOyOo+5RQcxmYFueR49X3CiS36JIwtCA+bR\r
25         Fc9oU1kFD9aE7LU+70cIxCX8p/h5HwPxFBCno=\r
26 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
27         h=from:to:subject:in-reply-to:references:date:message-id:mime-version\r
28         :content-type:content-transfer-encoding;\r
29         b=fSJJmp+PTTd0PsEldkwJVRqOq39RGlYBNwPkZycPMsHt4apQJhfSC/CNoagje46uWc\r
30         kzgt7qPKAWsOSuRiiqYBTfwGkeI+P45ObUmKfaJW44txIxQ2mv4CIB4+L0QamGvhWZVy\r
31         xaqdg6yXkPDl7/hMcUS8I+H4rCAZ2sjMd3DZk=\r
32 Received: by 10.114.3.15 with SMTP id 15mr1935536wac.181.1258524255404;\r
33         Tue, 17 Nov 2009 22:04:15 -0800 (PST)\r
34 Received: from fortitudo (70-36-144-85.dsl.dynamic.sonic.net [70.36.144.85])\r
35         by mx.google.com with ESMTPS id 22sm1771538pxi.14.2009.11.17.22.04.14\r
36         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
37         Tue, 17 Nov 2009 22:04:14 -0800 (PST)\r
38 Received: from alexbl (uid 1001) (envelope-from\r
39         alexbl@fortitudo.i-did-not-set--mail-host-address--so-tickle-me)\r
40         id 7287 by fortitudo (DragonFly Mail Agent)\r
41         Tue, 17 Nov 2009 21:45:36 -0800\r
42 From: Alexander Botero-Lowry <alex.boterolowry@gmail.com>\r
43 To: Jjgod Jiang <gzjjgod@gmail.com>, notmuch@notmuchmail.org\r
44 In-Reply-To: <ddd65cda0911171950o4eea4389v86de9525e46052d3@mail.gmail.com>\r
45 References: <ddd65cda0911171950o4eea4389v86de9525e46052d3@mail.gmail.com>\r
46 Date: Tue, 17 Nov 2009 21:45:36 -0800\r
47 Message-ID:\r
48  <86einw2xof.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me>\r
49 MIME-Version: 1.0\r
50 Content-Type: text/plain; charset=utf-8\r
51 Content-Transfer-Encoding: quoted-printable\r
52 Subject: Re: [notmuch] Mac OS X/Darwin compatibility issues\r
53 X-BeenThere: notmuch@notmuchmail.org\r
54 X-Mailman-Version: 2.1.12\r
55 Precedence: list\r
56 List-Id: "Use and development of the notmuch mail system."\r
57         <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Wed, 18 Nov 2009 06:04:17 -0000\r
66 \r
67 On Wed, 18 Nov 2009 11:50:17 +0800, Jjgod Jiang <gzjjgod@gmail.com> wrote:\r
68 > Hi,\r
69 >=20\r
70 > When I tried to compile notmuch under Mac OS X 10.6, several issues\r
71 > arisen:\r
72 >=20\r
73 > 1. g++ reports 'warning: command line option "-Wmissing-declarations"\r
74 > is valid for C/ObjC but not for C++'\r
75 >=20\r
76 I got that too. I presume it's newly supported in GCC4.4?\r
77 \r
78 > 3. Several errors about missing GNU extensions like getline() and strndup=\r
79 ():\r
80 >=20\r
81 strndup from V8:\r
82 \r
83 char* strndup(char* str, size_t n) {\r
84   // Stupid implementation of strndup since macos isn't born with\r
85   // one.\r
86   size_t len =3D strlen(str);\r
87   if (len <=3D n)\r
88     return StrDup(str);\r
89   char* result =3D new char[n+1];\r
90   size_t i;\r
91   for (i =3D 0; i <=3D n; i++)\r
92     result[i] =3D str[i];\r
93   result[i] =3D '\0';\r
94   return result;\r
95 }\r
96 \r
97 > warning: implicit declaration of function =E2=80=98getline=E2=80=99\r
98 > error: =E2=80=98strndup=E2=80=99 was not declared in this scope\r
99 >=20\r
100 for getline do you mind trying #define _GNU_SOURCE 1\r
101 before #include <stdio.h> in the offending files? The FreeBSD man pages\r
102 mentions that as a way of enabling the GNU version of getline().\r
103 \r
104 Alex\r