Gentoo Archives: gentoo-user

From: Norman Invasion <invasivenorman@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Running programs compiled with a different gcc version
Date: Sun, 20 May 2012 19:18:24
Message-Id: CAJoTvCvJ4w0ckp=KAdCxZxcPBCEkpXGXp0Bz86n-CASi8NBm_g@mail.gmail.com
In Reply to: [gentoo-user] Running programs compiled with a different gcc version by Urs Schutz
1 On 19 May 2012 16:23, Urs Schutz <u.schutz@×××××××.ch> wrote:
2 > Yesterday I manually compiled photivo, a camera raw file
3 > converter and image editor. One of the requirements for
4 > installing is gcc 4.6. So I manually unmasked gcc 4.6.3
5 > and installed it with portage.
6 > After switching gcc with gcc-config and . /etc/profile,
7 > photivo compiled fine.
8 > A test run showed that photivo is running fine.
9 >
10 > I simply do not know enough about gcc and gentoo to leave
11 > gcc at 4.6.3, and switched back to the stable 4.5 branch
12 > (gcc-config and . /etc/profile again).
13 >
14 > When I try to run photivo again I get an error:
15 > photivo: /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libstdc++.so.6:
16 > version `GLIBCXX_3.4.15' not found (required by photivo)
17 >
18 > locate -i glibcxx shows no results.
19 >
20 > My question is: Can I set some variables (e.g. in a bash
21 > start script) that photivo thinks it is running on a system
22 > with gcc 4.6? All the components are installed, as I can
23 > switch gcc to 4.6.3 and run photivo as user.
24 >
25 > I do not see any changes in environment variables before
26 > and after switching gcc versions. What magic does
27 > gcc-config do?
28
29 Compile it statically linked?