From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SWBe4-0005v2-Lg for garchives@archives.gentoo.org; Sun, 20 May 2012 19:18:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1CFCE05F9; Sun, 20 May 2012 19:18:09 +0000 (UTC) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 500B4E0508 for ; Sun, 20 May 2012 19:16:46 +0000 (UTC) Received: by obbuo19 with SMTP id uo19so8630466obb.40 for ; Sun, 20 May 2012 12:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=K3AfFLKVtg+xAmpY9h1Ms2gOiNawZ/Zywo+vEqOXWRQ=; b=Kt8G5fGd62RVEEdYPyliDJXHkqP8jEpA86bHqKGcub8IPELUtjt3m3P20aV4S2pEz7 U0hcU+gd0eZZ8XaEVb77cHfK2sb9mLqsDKmG44dLvsl5mhZZUCziaL4VtbzdEboq6t4S cXR/6FElVgL9uu1R5EoEQFA4NLfNjwkITsnFqS4M+r4MhPsOqQo5cckUZXUH9hSFbNsq SiiT5W/TbKLm/ChEj6m+BXJp3yPk8yoDzY/xv6/K9TId0gJYv8kDrmu1h4irJb2rrja4 fQVWQaK+qx51OgW8BQPn9HfHpE3cgdTJcO0gMIKHm8x8tVPu9x+gG/QS3einMJF45uhI /DUg== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.182.151.113 with SMTP id up17mr16925690obb.40.1337541405644; Sun, 20 May 2012 12:16:45 -0700 (PDT) Received: by 10.182.49.129 with HTTP; Sun, 20 May 2012 12:16:45 -0700 (PDT) In-Reply-To: <20120519172322.6108ab25@bluewin.ch> References: <20120519172322.6108ab25@bluewin.ch> Date: Sun, 20 May 2012 15:16:45 -0400 Message-ID: Subject: Re: [gentoo-user] Running programs compiled with a different gcc version From: Norman Invasion To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: f4f873f4-dc9b-4bf0-adda-cbacbbc87cc3 X-Archives-Hash: f50bebe7b12a2311045e86fa3fbd2805 On 19 May 2012 16:23, Urs Schutz wrote: > Yesterday I manually compiled photivo, a camera raw file > converter and image editor. One of the requirements for > installing is gcc 4.6. So I manually unmasked gcc 4.6.3 > and installed it with portage. > After switching gcc with gcc-config and . /etc/profile, > photivo compiled fine. > A test run showed that photivo is running fine. > > I simply do not know enough about gcc and gentoo to leave > gcc at 4.6.3, and switched back to the stable 4.5 branch > (gcc-config and . /etc/profile again). > > When I try to run photivo again I get an error: > photivo: /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libstdc++.so.6: > version `GLIBCXX_3.4.15' not found (required by photivo) > > locate -i glibcxx shows no results. > > My question is: Can I set some variables (e.g. in a bash > start script) that photivo thinks it is running on a system > with gcc 4.6? All the components are installed, as I can > switch gcc to 4.6.3 and run photivo as user. > > I do not see any changes in environment variables before > and after switching gcc versions. What magic does > gcc-config do? Compile it statically linked?