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 1SVtGE-0007CD-Qw for garchives@archives.gentoo.org; Sat, 19 May 2012 23:40:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5816E08C2; Sat, 19 May 2012 23:40:13 +0000 (UTC) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 1D6D8E08C2 for ; Sat, 19 May 2012 23:38:37 +0000 (UTC) Received: by pbbrr13 with SMTP id rr13so6623379pbb.40 for ; Sat, 19 May 2012 16:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:in-reply-to:references :reply-to:x-mailer:mime-version:content-type :content-transfer-encoding; bh=irkp4wHglnp06u7Y/3bKbOppT0ID/VMEow0DbYsZBAg=; b=n+nP1awhPR6PQq+7iQt8c2XiAz+ZFVAdOFr/nzcGRaa+bmxH1EnKtOxNl0RQf4c7tz lIhoRVev2StZHLyl94uodWBhydtWcBRC0l0RtDlabHRWnmuzz2MelY3BWQifyfzNd5BN UL3hcm1qeo/WIqTcx8Pvc8acb5u4qCLTfyWLnj2zetjFrb7cgx6fYKgRGXR770JttcLr 9OnSoufU+0G0pv+5tfel8b/LsKYasYqZrXZvxB/YjWC0cTxpxwqFG8BCiscTBWGWC+ev froaDCqgj26bOJw38vJ/jRdXwnv8Cpclm0WGIr7rMC+vPuMJfHphNPFwRskKQO+krCht 5X9A== Received: by 10.68.223.167 with SMTP id qv7mr52790883pbc.127.1337470717346; Sat, 19 May 2012 16:38:37 -0700 (PDT) Received: from localhost.localdomain ([186.222.171.180]) by mx.google.com with ESMTPS id wd10sm17659768pbc.70.2012.05.19.16.38.35 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 May 2012 16:38:36 -0700 (PDT) Sender: =?UTF-8?Q?Urs_Sch=C3=BCtz?= Date: Sat, 19 May 2012 20:38:30 -0300 From: Urs Schutz To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Resolved: Running programs compiled with a different gcc version Message-ID: <20120519203830.62e785ef@bluewin.ch> In-Reply-To: References: <20120519172322.6108ab25@bluewin.ch> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 1fced92f-5534-4fe8-91cc-c7ea9c1af735 X-Archives-Hash: b597d85e0fa26ab738224ad2336b7a1a On Sun, 20 May 2012 01:01:48 +0300 Nikos Chantziaras wrote: > 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".) > > That's it. LD_LIBRARY_PATH=/usr/lib/gcc/i686-pc-linux-gnu/4.6.3 photivo Thank you! Urs