From owner-freebsd-ports@FreeBSD.ORG Tue Jan 21 23:31:27 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3A67F911 for ; Tue, 21 Jan 2014 23:31:27 +0000 (UTC) Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [IPv6:2001:44b8:8060:ff02:300:1:6:4]) by mx1.freebsd.org (Postfix) with ESMTP id BB0041535 for ; Tue, 21 Jan 2014 23:31:26 +0000 (UTC) Received: from ppp121-45-52-62.lns20.adl2.internode.on.net (HELO leader.local) ([121.45.52.62]) by ipmail04.adl6.internode.on.net with ESMTP; 22 Jan 2014 10:01:23 +1030 Message-ID: <52DF0346.6000108@ShaneWare.Biz> Date: Wed, 22 Jan 2014 10:01:18 +1030 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Yuri , ports@FreeBSD.org Subject: Re: USE_GCC doesn't set rpath References: <52DEE7EE.6010909@rawbw.com> In-Reply-To: <52DEE7EE.6010909@rawbw.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Gerald Pfeifer X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jan 2014 23:31:27 -0000 On 22/01/2014 08:04, Yuri wrote: > Current port net-p2p/libtorrent-rasterbar has > USES=compiler:c++11-lib which in turn sets USE_GCC=4.7+ Maintainer of > lang/gccNN says that USE_GCC is supposed to automatically set rpath > to this particular gcc shared library. However, this doesn't happen, > and qbittorrent fails as a result on 9.2: $ qbittorrent > /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.15 required by > /usr/local/lib/libtorrent-rasterbar.so.7 not found > > It looks like this automatic setting of rpath is broken. I think you will find that qbittorrent will need to be built with the same gcc version as libtorrent-rasterbar. I believe qbittorrent is loading /usr/lib/libstdc++.so.6 then it loads libtorrent-rasterbar.so.7 which tries to load libstdc++ and it is given the already open copy which doesn't have GLIBCXX_3.4.15 that it needs to run.