From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 13 03:07:52 2010 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A401E1065674 for ; Fri, 13 Aug 2010 03:07:52 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 3346F8FC1F for ; Fri, 13 Aug 2010 03:07:51 +0000 (UTC) Received: by wwe15 with SMTP id 15so1515923wwe.31 for ; Thu, 12 Aug 2010 20:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=CyZN8512GL6ex1w9/5yDhM+1E1FdfihRoiMdJbymkRE=; b=peH/+tOVPRjrVEjZ6cSeLzt+ICnUq/+a/fMfM6Tovcc17gU6sNGJ8WprIGKB1P20Bx dTPYz7B4yLnq8AjeK0e2YGHys/pYpkpwGFalx71U0BEdf1oCynR5pw/UQXeGyDNYMlOV aEu2L9nocvC47UvcXNIbVkiIv6VCMqhnpy/DA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type:content-transfer-encoding; b=CpSEwjbaJUDbQVq1givsaSBb2x+fwxsXaAzEZuezzK3wl4J/ihJpmOIX6UEOzghlsp 8YnUiQoFXymckxSEzAiVlplwesVowzl0RkLHj+Qlx6kH73xHrcQmueqrnDDEtvNZ1tUm +8yy3P+yJ/WCO/dJyT8xslTS1mpNP/FwQaOUE= MIME-Version: 1.0 Received: by 10.227.128.13 with SMTP id i13mr946616wbs.31.1281668871000; Thu, 12 Aug 2010 20:07:51 -0700 (PDT) Received: by 10.216.183.212 with HTTP; Thu, 12 Aug 2010 20:07:50 -0700 (PDT) Date: Fri, 13 Aug 2010 03:07:50 +0000 Message-ID: From: "b. f." To: freebsd-hackers@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Dmitry Marakasov Subject: Re: Any way to fix '/usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by ... not found'? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2010 03:07:52 -0000 >I'm trying to update graphics/lightspark-devel port to the latest >version, and it's firefox plugin now doesn't load. The supposed reason >for that is that the plugin is build with gcc 4.4+ (as it uses c++0x >features), and firefox is built with our default gcc 4.2, thus libstdc++ >versions doesn't match -> dlopen fails. > >LoadPlugin: failed to initialize shared library /usr/local/lib/browser_plu= gins/lightspark->devel/liblightsparkplugin.so [/usr/lib/libstdc++.so.6: ver= sion GLIBCXX_3.4.11 required by >/usr/local/lib/browser_plugins/lightspark-= devel/liblightsparkplugin.so not found] > >Is there a way to fix that, maybe some linker magic? I don't know, since we don't have a dlmopen(). Have you tried using libmap.conf(5) to use the newer libraries in ${LOCALBASE}/lib/gcc44 , rather than their base system counterparts, for firefox? Or using wrappers that set LD_LIBMAP or LD_LIBRARY_PATH, to attain the same end? The newer libraries are supposed to be mostly backwards-compatible with the old. b.