From owner-freebsd-ports@FreeBSD.ORG Sun Jan 19 22:08:27 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 116F8286 for ; Sun, 19 Jan 2014 22:08:27 +0000 (UTC) Received: from shepard.synsport.net (mail.synsport.com [208.69.230.148]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DEDA0112B for ; Sun, 19 Jan 2014 22:08:24 +0000 (UTC) Received: from [192.168.0.23] (unknown [130.255.19.191]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by shepard.synsport.net (Postfix) with ESMTP id 86A33438BC; Sun, 19 Jan 2014 16:08:08 -0600 (CST) Message-ID: <52DC4CB6.3070503@marino.st> Date: Sun, 19 Jan 2014 23:07:50 +0100 From: John Marino User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Yuri Subject: Re: libstdc++.so.6 in base 9.2 system collides with libstdc++.so.6 in gcc47 References: <52DC4B94.8050304@rawbw.com> In-Reply-To: <52DC4B94.8050304@rawbw.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "ports@freebsd.org" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: marino@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jan 2014 22:08:27 -0000 On 1/19/2014 23:03, Yuri wrote: > After the ports update my qbittorrent fails due to this collision: > $ qbittorrent > /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.15 required by > /usr/local/lib/libtorrent-rasterbar.so.7 not found > > I guess, all packages depending on gcc47 libs would likely fail the same > way. > > gcc probably forgot to bump so revision. > > The workaround is to run with LD_LIBRARY_PATH=/usr/local/lib/gcc47 > But what is the general solution for this? The gcc47 should be built with specs that automatically insert a runpath (-Wl,-rpath,) of /usr/local/gcc47/ so that every binary and library built by it knows where to look. This is what lang/gcc-aux does. Regards, John