* [gentoo-user] Running programs compiled with a different gcc version
@ 2012-05-19 20:23 Urs Schutz
2012-05-19 22:01 ` [gentoo-user] " Nikos Chantziaras
2012-05-20 19:16 ` [gentoo-user] " Norman Invasion
0 siblings, 2 replies; 4+ messages in thread
From: Urs Schutz @ 2012-05-19 20:23 UTC (permalink / raw
To: gentoo-user
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?
Urs
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: Running programs compiled with a different gcc version
2012-05-19 20:23 [gentoo-user] Running programs compiled with a different gcc version Urs Schutz
@ 2012-05-19 22:01 ` Nikos Chantziaras
2012-05-19 23:38 ` [gentoo-user] Resolved: " Urs Schutz
2012-05-20 19:16 ` [gentoo-user] " Norman Invasion
1 sibling, 1 reply; 4+ messages in thread
From: Nikos Chantziaras @ 2012-05-19 22:01 UTC (permalink / raw
To: gentoo-user
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".)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Resolved: Running programs compiled with a different gcc version
2012-05-19 22:01 ` [gentoo-user] " Nikos Chantziaras
@ 2012-05-19 23:38 ` Urs Schutz
0 siblings, 0 replies; 4+ messages in thread
From: Urs Schutz @ 2012-05-19 23:38 UTC (permalink / raw
To: gentoo-user
On Sun, 20 May 2012 01:01:48 +0300
Nikos Chantziaras <realnc@gmail.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Running programs compiled with a different gcc version
2012-05-19 20:23 [gentoo-user] Running programs compiled with a different gcc version Urs Schutz
2012-05-19 22:01 ` [gentoo-user] " Nikos Chantziaras
@ 2012-05-20 19:16 ` Norman Invasion
1 sibling, 0 replies; 4+ messages in thread
From: Norman Invasion @ 2012-05-20 19:16 UTC (permalink / raw
To: gentoo-user
On 19 May 2012 16:23, Urs Schutz <u.schutz@bluewin.ch> 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?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-05-20 19:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-19 20:23 [gentoo-user] Running programs compiled with a different gcc version Urs Schutz
2012-05-19 22:01 ` [gentoo-user] " Nikos Chantziaras
2012-05-19 23:38 ` [gentoo-user] Resolved: " Urs Schutz
2012-05-20 19:16 ` [gentoo-user] " Norman Invasion
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox