1 Return-Path: <amdragon@mit.edu>
\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 CF34F431FB6
\r
6 for <notmuch@notmuchmail.org>; Tue, 4 Dec 2012 06:38:55 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[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 Xi8Y7MdwH0Ok for <notmuch@notmuchmail.org>;
\r
16 Tue, 4 Dec 2012 06:38:55 -0800 (PST)
\r
17 Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id C7E6E431FAE
\r
20 for <notmuch@notmuchmail.org>; Tue, 4 Dec 2012 06:38:54 -0800 (PST)
\r
21 X-AuditID: 12074423-b7fcb6d000000927-6a-50be0afe69df
\r
22 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])
\r
23 by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id AF.6E.02343.EFA0EB05; Tue, 4 Dec 2012 09:38:54 -0500 (EST)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id qB4EcrSY000805;
\r
27 Tue, 4 Dec 2012 09:38:54 -0500
\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qB4EcpIB003226
\r
32 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
\r
33 Tue, 4 Dec 2012 09:38:52 -0500 (EST)
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1Tfte7-0000N4-JJ; Tue, 04 Dec 2012 09:38:51 -0500
\r
37 Date: Tue, 4 Dec 2012 09:38:51 -0500
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: Peter Feigl <craven@gmx.net>
\r
40 Subject: Re: [PATCH 1/1] Changing build tool for test/random-corpus to CXX
\r
42 Message-ID: <20121204143851.GJ1020@mit.edu>
\r
43 References: <1354628820-2262-1-git-send-email-craven@gmx.net>
\r
45 Content-Type: text/plain; charset=us-ascii
\r
46 Content-Disposition: inline
\r
47 In-Reply-To: <1354628820-2262-1-git-send-email-craven@gmx.net>
\r
48 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
49 X-Brightmail-Tracker:
\r
50 H4sIAAAAAAAAA+NgFmphleLIzCtJLcpLzFFi42IRYrdT0f3HtS/A4GezkMXehnZGi+s3ZzI7
\r
51 MHks3rSfzePZqlvMAUxRXDYpqTmZZalF+nYJXBnvzm5nLWjgqVi2+zhLA+M8ri5GTg4JAROJ
\r
52 K7/nsUDYYhIX7q1n62Lk4hAS2Mcocf/JG0YIZz2jxL5pL5kgnAtMEpf7JkCVLWGUWNC3nRGk
\r
53 n0VARWL96gYmEJtNQENi2/7lYHERAQWJZ+uawGxmAWmJb7+bwWqEBaIlTv6eDGbzCmhLTJxx
\r
54 gx3EFhKwlVh2t48dIi4ocXLmExaIXi2JG/9AruAAm7P8HwdImFPATmLSqddsILYo0AlTTm5j
\r
55 m8AoNAtJ9ywk3bMQuhcwMq9ilE3JrdLNTczMKU5N1i1OTszLSy3SNdPLzSzRS00p3cQIDmwX
\r
56 5R2Mfw4qHWIU4GBU4uGdcGtPgBBrYllxZe4hRkkOJiVR3hCWfQFCfEn5KZUZicUZ8UWlOanF
\r
57 hxglOJiVRHgVPuwNEOJNSaysSi3Kh0lJc7AoifNeS7npLySQnliSmp2aWpBaBJOV4eBQkuC1
\r
58 B0awkGBRanpqRVpmTglCmomDE2Q4D9Dwv5xANbzFBYm5xZnpEPlTjIpS4rx8IM0CIImM0jy4
\r
59 XljiecUoDvSKMK8BSBUPMGnBdb8CGswENPiF0G6QwSWJCCmpBkYDxQStdmu/Q2EnL34y8Xhe
\r
60 5TOh6NQv08Lse6Y3fqunPb58/+sui0LHtgajLZy2kw5mOLFOXOpnyxL60Of+pksLvLcmHbEJ
\r
61 TNCQyVh5de36pqnbPrw3lN954lD8Ad/SqvzKw7+duzp3BcX63v1lUXZU8cKCY/JHDv5Z/9ru
\r
62 cUTIihARN8Fl4l1KLMUZiYZazEXFiQBtG3HBFwMAAA==
\r
63 Cc: notmuch@notmuchmail.org
\r
64 X-BeenThere: notmuch@notmuchmail.org
\r
65 X-Mailman-Version: 2.1.13
\r
67 List-Id: "Use and development of the notmuch mail system."
\r
68 <notmuch.notmuchmail.org>
\r
69 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
71 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
72 List-Post: <mailto:notmuch@notmuchmail.org>
\r
73 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
74 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
75 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
76 X-List-Received-Date: Tue, 04 Dec 2012 14:38:56 -0000
\r
78 LGTM. I think we build the main notmuch binary with g++ for the same
\r
81 Quoth Peter Feigl on Dec 04 at 2:47 pm:
\r
82 > Without this change, GCC complains as follows:
\r
83 > gcc test/random-corpus.o test/database-test.o notmuch-config.o command-line-arguments.o lib/libnotmuch.a util/libutil.a parse-time-string/libparse-time-string.a -o test/random-corpus -lgmime-2.6 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -Wl,-rpath,/usr/lib -ltalloc -lxapian
\r
84 > /usr/bin/ld: lib/libnotmuch.a(database.o): undefined reference to symbol '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4'
\r
85 > /usr/bin/ld: note: '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line
\r
86 > /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation
\r
87 > collect2: error: ld returned 1 exit status
\r
88 > make: *** [test/random-corpus] Error 1
\r
90 > test/Makefile.local | 2 +-
\r
91 > 1 file changed, 1 insertion(+), 1 deletion(-)
\r
93 > diff --git a/test/Makefile.local b/test/Makefile.local
\r
94 > index 6a9f15e..2ec6595 100644
\r
95 > --- a/test/Makefile.local
\r
96 > +++ b/test/Makefile.local
\r
97 > @@ -22,7 +22,7 @@ random_corpus_deps = $(dir)/random-corpus.o $(dir)/database-test.o \
\r
98 > parse-time-string/libparse-time-string.a
\r
100 > $(dir)/random-corpus: $(random_corpus_deps)
\r
101 > - $(call quiet,CC) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)
\r
102 > + $(call quiet,CXX) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)
\r
104 > $(dir)/smtp-dummy: $(smtp_dummy_modules)
\r
105 > $(call quiet,CC) $^ -o $@
\r