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 1SVqD7-0005tX-Fu for garchives@archives.gentoo.org; Sat, 19 May 2012 20:25:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AD3AE06CC; Sat, 19 May 2012 20:24:52 +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 06102E0A70 for ; Sat, 19 May 2012 20:23:31 +0000 (UTC) Received: by pbbrr13 with SMTP id rr13so6507317pbb.40 for ; Sat, 19 May 2012 13:23:31 -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:reply-to:x-mailer :mime-version:content-type:content-transfer-encoding; bh=JvDWCkKYoFcI3ci1GPksO61i6bI8SkqjnOMXm9WXJLg=; b=LJJwOKP7/o/yZ2D6ldH9WUNfVoff9t9tIp7QbDySEpPQQ7ZrSzAr+0g3Uk8/lWVW9o eHmz4hbCs4NOBsxCxSrq6yHMIkyJCu+BrFwhN7HkQ+iMSVKIeRTrPRNcrgVUKhv9VFmJ VIVXj3yScB8esa6+pQ6SlGO5c0Ky/SWIG+rFwJvLLZhExeMdggqSum165LAWQ6oKIaKz R5tyC2sHsTtDkunbR3GgyAsbWp8wdbeF45RvnZGQD50Cf/zuKkdjAjnKSGlJtpaJFvlo qwKooJOG37LgJX9//KYzbef+o2SvbrkXBudv1rseay63aV4WnAfpANyAjtNosKxXnhiP fI6A== Received: by 10.68.203.98 with SMTP id kp2mr52592093pbc.19.1337459011234; Sat, 19 May 2012 13:23:31 -0700 (PDT) Received: from localhost.localdomain ([186.222.171.180]) by mx.google.com with ESMTPS id vc4sm17263203pbc.8.2012.05.19.13.23.27 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 May 2012 13:23:29 -0700 (PDT) Sender: =?UTF-8?Q?Urs_Sch=C3=BCtz?= Date: Sat, 19 May 2012 17:23:22 -0300 From: Urs Schutz To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Running programs compiled with a different gcc version Message-ID: <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: f0289e86-c983-4601-a007-e2b6cdb9a800 X-Archives-Hash: 0fcac80ebf8e098431eb98d28abed7bb 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