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 1SVrlK-0002Qs-8q for garchives@archives.gentoo.org; Sat, 19 May 2012 22:04:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE910E072C; Sat, 19 May 2012 22:04:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 85462E08D2 for ; Sat, 19 May 2012 22:02:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id DD29A1B402E for ; Sat, 19 May 2012 22:02:39 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.24 X-Spam-Level: X-Spam-Status: No, score=-1.24 tagged_above=-999 required=5.5 tests=[AWL=-0.230, BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3o7MQ2rgTIS6 for ; Sat, 19 May 2012 22:02:34 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 253A61B4021 for ; Sat, 19 May 2012 22:02:33 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SVrjI-00042O-Jx for gentoo-user@gentoo.org; Sun, 20 May 2012 00:02:28 +0200 Received: from athedsl-343219.home.otenet.gr ([85.72.196.81]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 May 2012 00:02:28 +0200 Received: from realnc by athedsl-343219.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 May 2012 00:02:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: Running programs compiled with a different gcc version Date: Sun, 20 May 2012 01:01:48 +0300 Organization: Lucas Barks Message-ID: References: <20120519172322.6108ab25@bluewin.ch> 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 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-343219.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 In-Reply-To: <20120519172322.6108ab25@bluewin.ch> X-Archives-Salt: 5fe2adf0-a476-49be-b690-58ae98acd481 X-Archives-Hash: ecc338aef46f5865c69c52bc1beec567 On 19/05/12 23: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? Try starting photivo with: LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3 photivo (I assume the executable is named "photivo".)