1 Return-Path: <schnouki@schnouki.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 5BAF8429E26
\r
6 for <notmuch@notmuchmail.org>; Thu, 15 Dec 2011 11:42:40 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=1.675 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 URIBL_BLACK=1.775] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id Vi7BljsbnE-w for <notmuch@notmuchmail.org>;
\r
17 Thu, 15 Dec 2011 11:42:39 -0800 (PST)
\r
18 Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])
\r
19 by olra.theworths.org (Postfix) with ESMTP id BC8A8431FD0
\r
20 for <notmuch@notmuchmail.org>; Thu, 15 Dec 2011 11:42:39 -0800 (PST)
\r
21 Received: from odin.local (nancy.schnouki.net [78.238.0.45])
\r
22 by ks3536.kimsufi.com (Postfix) with ESMTPSA id 6F6AC6A0026;
\r
23 Thu, 15 Dec 2011 20:42:37 +0100 (CET)
\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;
\r
25 s=key-schnouki; t=1323978157;
\r
26 bh=2mM3xhUSPMviFZ2Vtg5c1L4zsT7K9ItXmH9t2mZa8/8=;
\r
27 h=From:To:Subject:Date:Message-Id;
\r
28 b=cdsUXyGj9NMsqsM+B/dKpycdkE/68z5Q9Cd8e00fuKDEjWQMgcRmW8cM3kl7/ir/6
\r
29 QGik2vzpeFFEN7vhvPfJbWDN/fvISxD2uSb5kazbGMacAZl5Xjeb7y0xLG4PMP9N9c
\r
30 CPh4EQS42FvUC5GLPXQLBgCgMZ7MySxoh9Mv4N7c=
\r
31 From: Thomas Jost <schnouki@schnouki.net>
\r
32 To: notmuch@notmuchmail.org
\r
33 Subject: [PATCH] Fix build with binutils-2.22
\r
34 Date: Thu, 15 Dec 2011 20:41:58 +0100
\r
35 Message-Id: <1323978118-23954-1-git-send-email-schnouki@schnouki.net>
\r
36 X-Mailer: git-send-email 1.7.8
\r
37 X-BeenThere: notmuch@notmuchmail.org
\r
38 X-Mailman-Version: 2.1.13
\r
40 List-Id: "Use and development of the notmuch mail system."
\r
41 <notmuch.notmuchmail.org>
\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
43 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
45 List-Post: <mailto:notmuch@notmuchmail.org>
\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
49 X-List-Received-Date: Thu, 15 Dec 2011 19:42:40 -0000
\r
51 binutils-2.22 changes the behaviour of ld by defaulting to
\r
52 --no-copy-dt-needed-entries, which means that required objects/libs are not
\r
53 "indirectly" linked through intermediate objects/libs anymore. As a consequence,
\r
54 when using binutils-2.22, building symbol-test fails with the following error:
\r
56 /usr/bin/ld: test/symbol-test.o: undefined reference to symbol
\r
57 'std::basic_string<char, std::char_traits<char>, std::allocator<char>
\r
58 >::~basic_string()@@GLIBCXX_3.4'
\r
60 /usr/bin/ld: note: 'std::basic_string<char, std::char_traits<char>,
\r
61 std::allocator<char> >::~basic_string()@@GLIBCXX_3.4' is defined in DSO
\r
62 /usr/lib/libstdc++.so.6 so try adding it to the linker command line
\r
64 /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation
\r
66 An easy fix is to link using CXX instead of CC.
\r
70 This build issue happens on Arch Linux. For more details, the relevant binutils
\r
71 changelog is here: http://ur1.ca/6px8j, and more explanations are available on
\r
72 the Fedora wiki: https://fedoraproject.org/wiki/UnderstandingDSOLinkChange
\r
73 (People who read the arch-general ML may want to read the thread starting at
\r
74 id:"1323458274-sup-9064@eris".)
\r
79 test/Makefile.local | 2 +-
\r
80 1 files changed, 1 insertions(+), 1 deletions(-)
\r
82 diff --git a/test/Makefile.local b/test/Makefile.local
\r
83 index 6cb6c82..fa2df73 100644
\r
84 --- a/test/Makefile.local
\r
85 +++ b/test/Makefile.local
\r
86 @@ -17,7 +17,7 @@ $(dir)/smtp-dummy: $(smtp_dummy_modules)
\r
87 $(call quiet,CC) $^ -o $@
\r
89 $(dir)/symbol-test: $(dir)/symbol-test.o
\r
90 - $(call quiet,CC) $^ -o $@ -Llib -lnotmuch -lxapian
\r
91 + $(call quiet,CXX) $^ -o $@ -Llib -lnotmuch -lxapian
\r