Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 33E73429E25 for ; Thu, 15 Dec 2011 21:44:04 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.775 X-Spam-Level: * X-Spam-Status: No, score=1.775 tagged_above=-999 required=5 tests=[URIBL_BLACK=1.775] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qzpzw+SYz2wb for ; Thu, 15 Dec 2011 21:44:02 -0800 (PST) Received: from mail-gw3.nixu.fi (mail-gw3.nixu.fi [193.209.237.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id B11E6431FD0 for ; Thu, 15 Dec 2011 21:44:01 -0800 (PST) Received: from pps.filterd (mail-gw3 [127.0.0.1]) by mail-gw3.nixu.fi (8.14.4/8.14.4) with SMTP id pBG5hxLa022511; Fri, 16 Dec 2011 07:43:59 +0200 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) by mail-gw3.nixu.fi with ESMTP id 114cs0tmcv-1 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Fri, 16 Dec 2011 07:43:58 +0200 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBG5hwGD008365; Fri, 16 Dec 2011 07:43:58 +0200 From: Tomi Ollila To: Thomas Jost , notmuch@notmuchmail.org Subject: Re: [PATCH] Fix build with binutils-2.22 In-Reply-To: <1323978118-23954-1-git-send-email-schnouki@schnouki.net> References: <1323978118-23954-1-git-send-email-schnouki@schnouki.net> User-Agent: Notmuch/0.10.2+93~g631d290 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110, 1.0.211, 0.0.0000 definitions=2011-12-16_02:2011-12-16, 2011-12-16, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1112150389 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2011 05:44:04 -0000 On Thu, 15 Dec 2011 20:41:58 +0100, Thomas Jost wrote: > binutils-2.22 changes the behaviour of ld by defaulting to > --no-copy-dt-needed-entries, which means that required objects/libs are not > "indirectly" linked through intermediate objects/libs anymore. As a consequence, > when using binutils-2.22, building symbol-test fails with the following error: > > /usr/bin/ld: test/symbol-test.o: undefined reference to symbol > 'std::basic_string, std::allocator > >::~basic_string()@@GLIBCXX_3.4' > > /usr/bin/ld: note: 'std::basic_string, > std::allocator >::~basic_string()@@GLIBCXX_3.4' is defined in DSO > /usr/lib/libstdc++.so.6 so try adding it to the linker command line > > /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation > > An easy fix is to link using CXX instead of CC. > --- +1 -- LGTM, Works for me (hits also on Fedora 15). Interesting that gcc does not fully default to g++ behaviour when source file is symbol-test.cc Tomi > Hi there, > > This build issue happens on Arch Linux. For more details, the relevant binutils > changelog is here: http://ur1.ca/6px8j, and more explanations are available on > the Fedora wiki: https://fedoraproject.org/wiki/UnderstandingDSOLinkChange > (People who read the arch-general ML may want to read the thread starting at > id:"1323458274-sup-9064@eris".) > > Best regards, > Thomas > > test/Makefile.local | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/test/Makefile.local b/test/Makefile.local > index 6cb6c82..fa2df73 100644 > --- a/test/Makefile.local > +++ b/test/Makefile.local > @@ -17,7 +17,7 @@ $(dir)/smtp-dummy: $(smtp_dummy_modules) > $(call quiet,CC) $^ -o $@ > > $(dir)/symbol-test: $(dir)/symbol-test.o > - $(call quiet,CC) $^ -o $@ -Llib -lnotmuch -lxapian > + $(call quiet,CXX) $^ -o $@ -Llib -lnotmuch -lxapian > > .PHONY: test check > > -- > 1.7.8 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch >