1 Return-Path: <nex@nexoid.at>
\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 7D00A431FB6
\r
6 for <notmuch@notmuchmail.org>; Tue, 4 Dec 2012 05:47:07 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.001 tagged_above=-999 required=5
\r
12 tests=[FREEMAIL_FROM=0.001] 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 zE9Wd12eXaRc for <notmuch@notmuchmail.org>;
\r
16 Tue, 4 Dec 2012 05:47:06 -0800 (PST)
\r
17 Received: from mail.nexoid.at (www.nexoid.at [178.79.130.240])
\r
18 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 5513C431FD5
\r
21 for <notmuch@notmuchmail.org>; Tue, 4 Dec 2012 05:47:02 -0800 (PST)
\r
22 Received: by mail.nexoid.at (Postfix, from userid 1000)
\r
23 id 5963011C109; Tue, 4 Dec 2012 14:47:01 +0100 (CET)
\r
24 From: Peter Feigl <craven@gmx.net>
\r
25 To: notmuch@notmuchmail.org
\r
26 Subject: [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead
\r
28 Date: Tue, 4 Dec 2012 14:47:00 +0100
\r
29 Message-Id: <1354628820-2262-1-git-send-email-craven@gmx.net>
\r
30 X-Mailer: git-send-email 1.8.0
\r
31 X-BeenThere: notmuch@notmuchmail.org
\r
32 X-Mailman-Version: 2.1.13
\r
34 List-Id: "Use and development of the notmuch mail system."
\r
35 <notmuch.notmuchmail.org>
\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
37 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
39 List-Post: <mailto:notmuch@notmuchmail.org>
\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
42 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
43 X-List-Received-Date: Tue, 04 Dec 2012 13:47:08 -0000
\r
45 Without this change, GCC complains as follows:
\r
46 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
47 /usr/bin/ld: lib/libnotmuch.a(database.o): undefined reference to symbol '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4'
\r
48 /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
49 /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation
\r
50 collect2: error: ld returned 1 exit status
\r
51 make: *** [test/random-corpus] Error 1
\r
53 test/Makefile.local | 2 +-
\r
54 1 file changed, 1 insertion(+), 1 deletion(-)
\r
56 diff --git a/test/Makefile.local b/test/Makefile.local
\r
57 index 6a9f15e..2ec6595 100644
\r
58 --- a/test/Makefile.local
\r
59 +++ b/test/Makefile.local
\r
60 @@ -22,7 +22,7 @@ random_corpus_deps = $(dir)/random-corpus.o $(dir)/database-test.o \
\r
61 parse-time-string/libparse-time-string.a
\r
63 $(dir)/random-corpus: $(random_corpus_deps)
\r
64 - $(call quiet,CC) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)
\r
65 + $(call quiet,CXX) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)
\r
67 $(dir)/smtp-dummy: $(smtp_dummy_modules)
\r
68 $(call quiet,CC) $^ -o $@
\r