From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11997 invoked by alias); 26 Apr 2004 20:20:23 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 11984 invoked from network); 26 Apr 2004 20:20:22 -0000 Received: from unknown (HELO mgr2.xmission.com) (198.60.22.202) by sources.redhat.com with SMTP; 26 Apr 2004 20:20:22 -0000 Received: from [198.60.22.201] (helo=mgr1.xmission.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 1BICaT-0004MH-02; Mon, 26 Apr 2004 14:20:21 -0600 Received: from [198.60.22.20] (helo=xmission.xmission.com) by mgr1.xmission.com with esmtp (Exim 4.30) id 1BICaS-0004iY-RF; Mon, 26 Apr 2004 14:20:20 -0600 Received: from llewelly by xmission.xmission.com with local (Exim 3.35 #1 (Debian)) id 1BICaS-0005Xf-00; Mon, 26 Apr 2004 14:20:20 -0600 To: Amit Bhatia Cc: gcc-help@gcc.gnu.org References: <20040426195738.33660.qmail@web14303.mail.yahoo.com> From: llewelly@xmission.com Date: Mon, 26 Apr 2004 20:20:00 -0000 In-Reply-To: <20040426195738.33660.qmail@web14303.mail.yahoo.com> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Subject: Re: Resolving incompatibility in libc. Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mgr1.xmission.com X-Spam-Level: X-Spam-Status: No, hits=0.3 required=8.0 tests=NO_REAL_NAME autolearn=no version=2.63 X-SA-Exim-Mail-From: llewelly@xmission.com X-SA-Exim-Version: 3.1 (built Wed Aug 20 09:38:54 PDT 2003) X-SA-Exim-Scanned: Yes X-SW-Source: 2004-04/txt/msg00341.txt.bz2 Amit Bhatia writes: > Hello All. > I am sorry to post this query on the possibly wrong > list. But I think some of you might be aware of how to > resolve it hence.. > > I have a c++ code executable that has been compiled > using g++ 2.95.3 that comes with Mandrake 7.1. > I am using redhat 9.0 with gcc 3.2 and hence a > different version of libc as well. > I don't have the source code. All I have is the > executable. > As soon as I try to run this executable, it gives > segmentation fault. > > Does any one know how to bypass this problem. I can't > get the source code. > Hence recompiling it is ruled out. [snip] The g++ 2.95.x and 3.2.x libstdc++ librares are not binary compatible. You must get a shared binary libstdc++ built from gcc 2.95.3, and install it somewhere where your dynamci linker will find it. One way to do this would be to downloaded and build gcc 2.95.3 from source, and put its lib directory in your LD_LIBRARY_PATH. Make sure you build 2.95.3 with a different prefix than 3.2 uses.