Re: Hi all
[notmuch-archives.git] / 1a / 93b1f92955451c4d885507fd5d25d987ba092f
1 Return-Path: <david@tethera.net>\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 0B835431FAF\r
6         for <notmuch@notmuchmail.org>; Thu, 26 Jun 2014 05:02:45 -0700 (PDT)\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 zkTW1Sn+jhz9 for <notmuch@notmuchmail.org>;\r
16         Thu, 26 Jun 2014 05:02:39 -0700 (PDT)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 6EF0E431FAE\r
21         for <notmuch@notmuchmail.org>; Thu, 26 Jun 2014 05:02:39 -0700 (PDT)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <david@tethera.net>)\r
24         id 1X08Nw-00047o-Ms; Thu, 26 Jun 2014 09:02:36 -0300\r
25 Received: (nullmailer pid 29245 invoked by uid 1000); Thu, 26 Jun 2014\r
26         12:02:33 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: Thomas Klausner <tk@giga.or.at>\r
29 Subject: Re: notmuch-0.16: realpath() compatibility issue; clang visibility\r
30         problem\r
31 In-Reply-To: <20140408123312.GZ5053@danbala.tuwien.ac.at>\r
32 References: <20140103214735.GG27614@danbala.tuwien.ac.at>\r
33         <sfid--20140408-140907--004.35-1@spamfilter.osbf.lua>\r
34         <87ob0c6p0e.fsf@zancas.localnet>\r
35         <20140408123312.GZ5053@danbala.tuwien.ac.at>\r
36 User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1\r
37         (x86_64-pc-linux-gnu)\r
38 Date: Thu, 26 Jun 2014 09:02:33 -0300\r
39 Message-ID: <87a98zho9y.fsf@zancas.localnet>\r
40 MIME-Version: 1.0\r
41 Content-Type: text/plain\r
42 Cc: Notmuch list <notmuch@notmuchmail.org>\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.13\r
45 Precedence: list\r
46 List-Id: "Use and development of the notmuch mail system."\r
47         <notmuch.notmuchmail.org>\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
51 List-Post: <mailto:notmuch@notmuchmail.org>\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
55 X-List-Received-Date: Thu, 26 Jun 2014 12:02:45 -0000\r
56 \r
57 Thomas Klausner <tk@giga.or.at> writes:\r
58 \r
59 > Hi David!\r
60 >\r
61 > On Tue, Apr 08, 2014 at 08:26:25AM -0300, David Bremner wrote:\r
62 >> > Debugging it I found that notmuch uses a glibc extension to realpath,\r
63 >> > allowing NULL as second argument.\r
64 >> >\r
65 >> \r
66 >> This should be fixed in commit af5c3af ; I'd appreciate if you can test\r
67 >> it.\r
68 >\r
69 > Thanks. Not completely yet.\r
70 >\r
71 > clang++ command-line-arguments.o debugger.o gmime-filter-reply.o hooks.o notmuch.o notmuch-compact.o notmuch-config.o notmuch-count.o notmuch-dump.o notmuch-insert.o notmuch-new.o notmuch-reply.o notmuch-restore.o notmuch-search.o notmuch-setup.o notmuch-show.o notmuch-tag.o notmuch-time.o sprinter-json.o sprinter-sexp.o sprinter-text.o query-string.o mime-node.o crypto.o tag-util.o  -Lutil -lutil -Llib -lnotmuch -Wl,--as-needed -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lgmime-2.4 -Wl,-R/usr/pkg/lib -lgobject-2.0 -Wl,-R/usr/pkg/lib -lglib-2.0 -lintl  -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -Wl,-R/usr/pkg/lib -ltalloc  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lgmime-2.4 -Wl,-R/usr/pkg/lib -lgobject-2.0 -Wl,-R/usr/pkg/lib -lglib-2.0 -lintl  -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -Wl,-R/usr/pkg/lib -ltalloc  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lxapian -L/usr/pkg/lib -lz -luuid -Wl,--enable-new-dtags -Wl,-rpath,/usr/local/lib -o notmuch-shared\r
72 > notmuch-config.o: In function `notmuch_config_save':\r
73 > notmuch-config.c:(.text+0xd03): undefined reference to `canonicalize_file_name'\r
74 > clang: error: linker command failed with exit code 1 (use -v to see invocation)\r
75 > Makefile.local:287: recipe for target 'notmuch-shared' failed\r
76 > gmake: *** [notmuch-shared] Error 1\r
77 \r
78 Sorry this got dropped. That's what happens to mail sent to me\r
79 personally :(. I'm assuming it's ok forward this output to the list.\r
80 \r
81 Is it correct that the statically linked version (notmuch) worked OK but\r
82 the dynamically linked version (notmuch-shared) failed? That's\r
83 consistent with what I observe on Debian, it's just that here the\r
84 dynamically linked version falls back on the canonicalize_file_name in\r
85 glibc, hiding the error.\r
86 \r
87 For people on glibc platforms who want to play with this, \r
88 \r
89 set HAVE_CANONICALIZE_FILE_NAME=0 in Makefile.config, make clean, make\r
90 \r
91 % nm  notmuch-shared | grep canonicalize\r
92 \r
93 d\r
94 \r