1 Return-Path: <jani@nikula.org>
\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 1BD6B431FC0
\r
6 for <notmuch@notmuchmail.org>; Sat, 4 Jan 2014 04:36:06 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5
\r
12 tests=[HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 eRXn7U0Ih5hV for <notmuch@notmuchmail.org>;
\r
16 Sat, 4 Jan 2014 04:35:56 -0800 (PST)
\r
17 Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com
\r
18 [209.85.128.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 09287431FBD
\r
21 for <notmuch@notmuchmail.org>; Sat, 4 Jan 2014 04:35:55 -0800 (PST)
\r
22 Received: by mail-ve0-f174.google.com with SMTP id pa12so8291846veb.19
\r
23 for <notmuch@notmuchmail.org>; Sat, 04 Jan 2014 04:35:55 -0800 (PST)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=1e100.net; s=20130820;
\r
26 h=x-gm-message-state:mime-version:in-reply-to:references:date
\r
27 :message-id:subject:from:to:cc:content-type;
\r
28 bh=fDTtF+bLpWXoFX4MzHTuJHvwwgb9fyaPFwCC/fVlLlw=;
\r
29 b=lxPle/eMelZuCSP9/MuueKoRzk0Dhem2BAPNrYGAyKTKVIRYkyD+cmkwD1jUPMLo3p
\r
30 3Snhl6nrOslFpFTyLYHEXXtiYSgcf1hhuVn/F+Ofnl+gg2YpWS0XyKB3Os0romd/KaWP
\r
31 v9CQVN1bTohIQejw8VoruOsRT1KjuQ3w17+TXHcgVTtoucaXNJZ4Cbk/I/rOk075IL5D
\r
32 OFPSi25Ipq3D7qx+SgTkXsDHhnokP5wSgTT68XqKPyCt8WvJr52WnBtJ7ng2KzGHE4AL
\r
33 SaEY5x701z120CtuZo9+7rF3armFSuHlbt1Gm/xlMW3K1oXcN2jcQXKtacxPyHD4ncpk
\r
36 ALoCoQmueCBDRYJBgizXiUz7LIG8BLNMQwsJ7j5w09dqN2Wf1werAbX6W6OhGQzCgfhYzx8XOrkP
\r
38 X-Received: by 10.59.0.193 with SMTP id ba1mr13805413ved.12.1388838954326;
\r
39 Sat, 04 Jan 2014 04:35:54 -0800 (PST)
\r
40 Received: by 10.58.143.6 with HTTP; Sat, 4 Jan 2014 04:35:54 -0800 (PST)
\r
41 Received: by 10.58.143.6 with HTTP; Sat, 4 Jan 2014 04:35:54 -0800 (PST)
\r
42 In-Reply-To: <20140103214735.GG27614@danbala.tuwien.ac.at>
\r
43 References: <20140103214735.GG27614@danbala.tuwien.ac.at>
\r
44 Date: Sat, 4 Jan 2014 14:35:54 +0200
\r
46 <CAB+hUn-8eyY07y3j1N3JJLQ3qWVEVPoGWHcUVkovg34xH0ZOwQ@mail.gmail.com>
\r
47 Subject: Re: notmuch-0.16: realpath() compatibility issue;
\r
48 clang visibility problem
\r
49 From: Jani Nikula <jani@nikula.org>
\r
50 To: Thomas Klausner <tk@giga.or.at>
\r
51 Content-Type: multipart/alternative; boundary=047d7bdc855686369c04ef24443b
\r
52 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
53 X-BeenThere: notmuch@notmuchmail.org
\r
54 X-Mailman-Version: 2.1.13
\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: Sat, 04 Jan 2014 12:36:06 -0000
\r
67 --047d7bdc855686369c04ef24443b
\r
68 Content-Type: text/plain; charset=UTF-8
\r
70 For the visibility issue please upgrade Notmuch.
\r
75 On Jan 4, 2014 2:26 PM, "Thomas Klausner" <tk@giga.or.at> wrote:
\r
79 > I'm currently starting to try out notmuch-0.16 on NetBSD. It went off
\r
80 > to a rocky start, since it segfaulted in the initial config setup.
\r
82 > Debugging it I found that notmuch uses a glibc extension to realpath,
\r
83 > allowing NULL as second argument.
\r
85 > I've converted it to use a prepared buffer instead; attached is a
\r
86 > possible patch that makes notmuch complete its setup phase for me, and
\r
87 > adds inclusion of the header files suggested by the realpath man page
\r
88 > on NetBSD. Please address this issue in some way in the next release.
\r
90 > Additionally, when compiling with clang, there are issues with the
\r
91 > visibility. The symptoms are:
\r
93 > In file included from lib/database.cc:21:
\r
94 > In file included from ./lib/database-private.h:33:
\r
95 > ./lib/notmuch-private.h:479:8: error: visibility does not match previous
\r
97 > array subscriptstruct visible _notmuch_string_list {
\r
99 > ./lib/notmuch-private.h:67:33: note: expanded from macro 'visible'
\r
100 > # define visible __attribute__((visibility("default")))
\r
102 > ./lib/notmuch-private.h:52:13: note: previous attribute is here
\r
103 > #pragma GCC visibility push(hidden)
\r
106 > In file included from lib/parse-time-vrp.cc:23:
\r
107 > In file included from ./lib/database-private.h:33:
\r
108 > ./lib/notmuch-private.h:479:8: error: visibility does not match previous
\r
110 > struct visible _notmuch_string_list {
\r
112 > ./lib/notmuch-private.h:67:33: note: expanded from macro 'visible'
\r
113 > # define visible __attribute__((visibility("default")))
\r
115 > ./lib/notmuch-private.h:52:13: note: previous attribute is here
\r
116 > #pragma GCC visibility push(hidden)
\r
118 > 1 warning generated.
\r
119 > In file included from lib/directory.cc:21:
\r
120 > ./lib/notmuch-private.h:479:8: error: visibility does not match previous
\r
122 > struct visible _notmuch_string_list {
\r
124 > ./lib/notmuch-private.h:67:33: note: expanded from macro 'visible'
\r
125 > # define visible __attribute__((visibility("default")))
\r
127 > ./lib/notmuch-private.h:52:13: note: previous attribute is here
\r
128 > #pragma GCC visibility push(hidden)
\r
131 > and so on. I guess it is because the visibility differs between c and
\r
132 > c++. I've disabled visibility locally, see second attached patch, but
\r
133 > of course that's not a solution, just a workaround. Suggestions
\r
139 > _______________________________________________
\r
140 > notmuch mailing list
\r
141 > notmuch@notmuchmail.org
\r
142 > http://notmuchmail.org/mailman/listinfo/notmuch
\r
145 --047d7bdc855686369c04ef24443b
\r
146 Content-Type: text/html; charset=UTF-8
\r
147 Content-Transfer-Encoding: quoted-printable
\r
149 <p dir=3D"ltr">For the visibility issue please upgrade Notmuch.</p>
\r
150 <p dir=3D"ltr">BR,<br>
\r
152 <p dir=3D"ltr">On Jan 4, 2014 2:26 PM, "Thomas Klausner" <<a h=
\r
153 ref=3D"mailto:tk@giga.or.at">tk@giga.or.at</a>> wrote:<br>
\r
157 > I'm currently starting to try out notmuch-0.16 on NetBSD. It went =
\r
159 > to a rocky start, since it segfaulted in the initial config setup.<br>
\r
161 > Debugging it I found that notmuch uses a glibc extension to realpath,<=
\r
163 > allowing NULL as second argument.<br>
\r
165 > I've converted it to use a prepared buffer instead; attached is a<=
\r
167 > possible patch that makes notmuch complete its setup phase for me, and=
\r
169 > adds inclusion of the header files suggested by the realpath man page<=
\r
171 > on NetBSD. Please address this issue in some way in the next release.<=
\r
174 > Additionally, when compiling with clang, there are issues with the<br>
\r
175 > visibility. The symptoms are:<br>
\r
177 > In file included from lib/database.cc:21:<br>
\r
178 > In file included from ./lib/database-private.h:33:<br>
\r
179 > ./lib/notmuch-private.h:479:8: error: visibility does not match previo=
\r
181 > array subscriptstruct visible _notmuch_string_list {<br>
\r
182 > =C2=A0 =C2=A0 =C2=A0 =C2=A0^<br>
\r
183 > ./lib/notmuch-private.h:67:33: note: expanded from macro 'visible&=
\r
185 > =C2=A0# define visible __attribute__((visibility("default"))=
\r
187 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
\r
188 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^<br>
\r
189 > ./lib/notmuch-private.h:52:13: note: previous attribute is here<br>
\r
190 > #pragma GCC visibility push(hidden)<br>
\r
191 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^<br>
\r
193 > In file included from lib/parse-time-vrp.cc:23:<br>
\r
194 > In file included from ./lib/database-private.h:33:<br>
\r
195 > ./lib/notmuch-private.h:479:8: error: visibility does not match previo=
\r
197 > struct visible _notmuch_string_list {<br>
\r
198 > =C2=A0 =C2=A0 =C2=A0 =C2=A0^<br>
\r
199 > ./lib/notmuch-private.h:67:33: note: expanded from macro 'visible&=
\r
201 > # define visible __attribute__((visibility("default")))<br>
\r
202 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
\r
203 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^<br>
\r
204 > ./lib/notmuch-private.h:52:13: note: previous attribute is here<br>
\r
205 > #pragma GCC visibility push(hidden)<br>
\r
206 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^<br>
\r
207 > 1 warning generated.<br>
\r
208 > In file included from lib/directory.cc:21:<br>
\r
209 > ./lib/notmuch-private.h:479:8: error: visibility does not match previo=
\r
211 > struct visible _notmuch_string_list {<br>
\r
212 > =C2=A0 =C2=A0 =C2=A0 =C2=A0^<br>
\r
213 > ./lib/notmuch-private.h:67:33: note: expanded from macro 'visible&=
\r
215 > # define visible __attribute__((visibility("default")))<br>
\r
216 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
\r
217 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^<br>
\r
218 > ./lib/notmuch-private.h:52:13: note: previous attribute is here<br>
\r
219 > #pragma GCC visibility push(hidden)<br>
\r
220 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^<br>
\r
222 > and so on. I guess it is because the visibility differs between c and<=
\r
224 > c++. I've disabled visibility locally, see second attached patch, =
\r
226 > of course that's not a solution, just a workaround. Suggestions<br=
\r
231 > =C2=A0Thomas<br>
\r
233 > _______________________________________________<br>
\r
234 > notmuch mailing list<br>
\r
235 > <a href=3D"mailto:notmuch@notmuchmail.org">notmuch@notmuchmail.org</a>=
\r
237 > <a href=3D"http://notmuchmail.org/mailman/listinfo/notmuch">http://not=
\r
238 muchmail.org/mailman/listinfo/notmuch</a><br>
\r
242 --047d7bdc855686369c04ef24443b--
\r