[PATCH 1/1] Changing build tool for test/random-corpus to CXX instead of CC.
authorPeter Feigl <craven@gmx.net>
Tue, 4 Dec 2012 13:47:00 +0000 (14:47 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:26 +0000 (09:51 -0800)
c6/c95cf0475f3c69120d556f8ffbff5afe1a351b [new file with mode: 0644]

diff --git a/c6/c95cf0475f3c69120d556f8ffbff5afe1a351b b/c6/c95cf0475f3c69120d556f8ffbff5afe1a351b
new file mode 100644 (file)
index 0000000..29826d0
--- /dev/null
@@ -0,0 +1,71 @@
+Return-Path: <nex@nexoid.at>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 7D00A431FB6\r
+       for <notmuch@notmuchmail.org>; Tue,  4 Dec 2012 05:47:07 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.001\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.001 tagged_above=-999 required=5\r
+       tests=[FREEMAIL_FROM=0.001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id zE9Wd12eXaRc for <notmuch@notmuchmail.org>;\r
+       Tue,  4 Dec 2012 05:47:06 -0800 (PST)\r
+Received: from mail.nexoid.at (www.nexoid.at [178.79.130.240])\r
+       (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 5513C431FD5\r
+       for <notmuch@notmuchmail.org>; Tue,  4 Dec 2012 05:47:02 -0800 (PST)\r
+Received: by mail.nexoid.at (Postfix, from userid 1000)\r
+       id 5963011C109; Tue,  4 Dec 2012 14:47:01 +0100 (CET)\r
+From: Peter Feigl <craven@gmx.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead\r
+       of CC.\r
+Date: Tue,  4 Dec 2012 14:47:00 +0100\r
+Message-Id: <1354628820-2262-1-git-send-email-craven@gmx.net>\r
+X-Mailer: git-send-email 1.8.0\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 04 Dec 2012 13:47:08 -0000\r
+\r
+Without this change, GCC complains as follows:\r
+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
+/usr/bin/ld: lib/libnotmuch.a(database.o): undefined reference to symbol '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4'\r
+/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
+/usr/lib/libstdc++.so.6: could not read symbols: Invalid operation\r
+collect2: error: ld returned 1 exit status\r
+make: *** [test/random-corpus] Error 1\r
+---\r
+ test/Makefile.local | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/test/Makefile.local b/test/Makefile.local\r
+index 6a9f15e..2ec6595 100644\r
+--- a/test/Makefile.local\r
++++ b/test/Makefile.local\r
+@@ -22,7 +22,7 @@ random_corpus_deps =  $(dir)/random-corpus.o  $(dir)/database-test.o \\r
+                       parse-time-string/libparse-time-string.a\r
\r
+ $(dir)/random-corpus: $(random_corpus_deps)\r
+-      $(call quiet,CC) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)\r
++      $(call quiet,CXX) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)\r
\r
+ $(dir)/smtp-dummy: $(smtp_dummy_modules)\r
+       $(call quiet,CC) $^ -o $@\r
+-- \r
+1.8.0\r
+\r