Re: [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead of CC.
authorAustin Clements <amdragon@MIT.EDU>
Tue, 4 Dec 2012 14:38:51 +0000 (09:38 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:27 +0000 (09:51 -0800)
97/8f336a71dd982ea665450c371a6bf6341ad6ce [new file with mode: 0644]

diff --git a/97/8f336a71dd982ea665450c371a6bf6341ad6ce b/97/8f336a71dd982ea665450c371a6bf6341ad6ce
new file mode 100644 (file)
index 0000000..f32bc9b
--- /dev/null
@@ -0,0 +1,105 @@
+Return-Path: <amdragon@mit.edu>\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 CF34F431FB6\r
+       for <notmuch@notmuchmail.org>; Tue,  4 Dec 2012 06:38:55 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 Xi8Y7MdwH0Ok for <notmuch@notmuchmail.org>;\r
+       Tue,  4 Dec 2012 06:38:55 -0800 (PST)\r
+Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU\r
+       [18.7.68.35])\r
+       by olra.theworths.org (Postfix) with ESMTP id C7E6E431FAE\r
+       for <notmuch@notmuchmail.org>; Tue,  4 Dec 2012 06:38:54 -0800 (PST)\r
+X-AuditID: 12074423-b7fcb6d000000927-6a-50be0afe69df\r
+Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
+       by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id AF.6E.02343.EFA0EB05; Tue,  4 Dec 2012 09:38:54 -0500 (EST)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id qB4EcrSY000805; \r
+       Tue, 4 Dec 2012 09:38:54 -0500\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qB4EcpIB003226\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
+       Tue, 4 Dec 2012 09:38:52 -0500 (EST)\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1Tfte7-0000N4-JJ; Tue, 04 Dec 2012 09:38:51 -0500\r
+Date: Tue, 4 Dec 2012 09:38:51 -0500\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: Peter Feigl <craven@gmx.net>\r
+Subject: Re: [PATCH 1/1] Changing build tool for test/random-corpus to CXX\r
+       instead of CC.\r
+Message-ID: <20121204143851.GJ1020@mit.edu>\r
+References: <1354628820-2262-1-git-send-email-craven@gmx.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To: <1354628820-2262-1-git-send-email-craven@gmx.net>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFmphleLIzCtJLcpLzFFi42IRYrdT0f3HtS/A4GezkMXehnZGi+s3ZzI7\r
+       MHks3rSfzePZqlvMAUxRXDYpqTmZZalF+nYJXBnvzm5nLWjgqVi2+zhLA+M8ri5GTg4JAROJ\r
+       K7/nsUDYYhIX7q1n62Lk4hAS2Mcocf/JG0YIZz2jxL5pL5kgnAtMEpf7JkCVLWGUWNC3nRGk\r
+       n0VARWL96gYmEJtNQENi2/7lYHERAQWJZ+uawGxmAWmJb7+bwWqEBaIlTv6eDGbzCmhLTJxx\r
+       gx3EFhKwlVh2t48dIi4ocXLmExaIXi2JG/9AruAAm7P8HwdImFPATmLSqddsILYo0AlTTm5j\r
+       m8AoNAtJ9ywk3bMQuhcwMq9ilE3JrdLNTczMKU5N1i1OTszLSy3SNdPLzSzRS00p3cQIDmwX\r
+       5R2Mfw4qHWIU4GBU4uGdcGtPgBBrYllxZe4hRkkOJiVR3hCWfQFCfEn5KZUZicUZ8UWlOanF\r
+       hxglOJiVRHgVPuwNEOJNSaysSi3Kh0lJc7AoifNeS7npLySQnliSmp2aWpBaBJOV4eBQkuC1\r
+       B0awkGBRanpqRVpmTglCmomDE2Q4D9Dwv5xANbzFBYm5xZnpEPlTjIpS4rx8IM0CIImM0jy4\r
+       XljiecUoDvSKMK8BSBUPMGnBdb8CGswENPiF0G6QwSWJCCmpBkYDxQStdmu/Q2EnL34y8Xhe\r
+       5TOh6NQv08Lse6Y3fqunPb58/+sui0LHtgajLZy2kw5mOLFOXOpnyxL60Of+pksLvLcmHbEJ\r
+       TNCQyVh5de36pqnbPrw3lN954lD8Ad/SqvzKw7+duzp3BcX63v1lUXZU8cKCY/JHDv5Z/9ru\r
+       cUTIihARN8Fl4l1KLMUZiYZazEXFiQBtG3HBFwMAAA==\r
+Cc: notmuch@notmuchmail.org\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 14:38:56 -0000\r
+\r
+LGTM.  I think we build the main notmuch binary with g++ for the same\r
+reason.\r
+\r
+Quoth Peter Feigl on Dec 04 at  2:47 pm:\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