From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9060 invoked by alias); 2 Mar 2010 18:11:54 -0000 Received: (qmail 9041 invoked by uid 22791); 2 Mar 2010 18:11:52 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Mar 2010 18:11:48 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.67.167]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 09A4613127; Tue, 2 Mar 2010 10:11:46 -0800 (PST) Received: from [10.20.125.19] (unknown [10.20.125.19]) by mailhost2.vmware.com (Postfix) with ESMTP id F1C868E7DB; Tue, 2 Mar 2010 10:11:45 -0800 (PST) Message-ID: <4B8D54E1.7030003@vmware.com> Date: Tue, 02 Mar 2010 18:11:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.22 (X11/20090609) MIME-Version: 1.0 To: Joel Brobecker CC: "gdb@sourceware.org" Subject: Re: python config question References: <4B8C5DD4.1070501@vmware.com> <20100302052219.GF2850@adacore.com> In-Reply-To: <20100302052219.GF2850@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00002.txt.bz2 Joel Brobecker wrote: >> 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. > Maybe the configure option should include rpath?