From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18093 invoked by alias); 2 Mar 2010 05:22:35 -0000 Received: (qmail 18071 invoked by uid 22791); 2 Mar 2010 05:22:33 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Mar 2010 05:22:29 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 4298B2BABF0; Tue, 2 Mar 2010 00:22:28 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0J7t4DY37fWs; Tue, 2 Mar 2010 00:22:28 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id A77572BAB4A; Tue, 2 Mar 2010 00:22:27 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 985BDF5917; Tue, 2 Mar 2010 09:22:19 +0400 (RET) Date: Tue, 02 Mar 2010 05:22:00 -0000 From: Joel Brobecker To: Michael Snyder Cc: "gdb@sourceware.org" Subject: Re: python config question Message-ID: <20100302052219.GF2850@adacore.com> References: <4B8C5DD4.1070501@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B8C5DD4.1070501@vmware.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00001.txt.bz2 > configure --with-python=$PYPATH > > Shouldn't I expect gdb to be linked against python version Y? I would think so. But from what I can tell by looking at the configury, I think that your GDB was in fact linked against the Python install that you provided (using -L${with_python}/lib in the link command). However, your loader is selecting the libpython in your default install because it does not know about you local one. You have several solutions to fix this, typical ones being: use th rpath during the link, or add your python install lib dir to LD_LIBRARY_PATH, for instance. -- Joel