From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30998 invoked by alias); 29 Jul 2010 21:32:44 -0000 Received: (qmail 30972 invoked by uid 22791); 29 Jul 2010 21:32:43 -0000 X-SWARE-Spam-Status: No, hits=-2.1 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; Thu, 29 Jul 2010 21:32:30 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 00C4D2BAC4B; Thu, 29 Jul 2010 17:32:28 -0400 (EDT) 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 b-py1TpQttJ5; Thu, 29 Jul 2010 17:32:27 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 073EB2BAC3B; Thu, 29 Jul 2010 17:32:27 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id B67075BE20; Thu, 29 Jul 2010 14:32:19 -0700 (PDT) Date: Thu, 29 Jul 2010 21:32:00 -0000 From: Joel Brobecker To: Michael Snyder Cc: "gdb-patches@sourceware.org" Subject: Re: 7.2 branch, configure problem, --with-python Message-ID: <20100729213219.GD13267@adacore.com> References: <4C50914E.1030408@vmware.com> <20100728213636.GX13267@adacore.com> <4C50B58A.5080408@vmware.com> <20100729152827.GZ13267@adacore.com> <4C51BC60.1040104@vmware.com> <4C51BFEE.20602@vmware.com> <20100729184046.GB13267@adacore.com> <4C51CD34.8040501@vmware.com> <20100729190439.GC13267@adacore.com> <4C51D71C.2080302@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C51D71C.2080302@vmware.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00559.txt.bz2 > >The bottom line, IMO, is that you python install is simply broken. > > It works fine with gdb-7.1 (dynamically linked)... If it works with 7.1, I think it was by accident (IMO). > Um, no, it appears to be linked statically. > What about yours (the 2.7 version that you built)? Exactly what I thought. Mine shows a dynamic dependency on libpython.so. I really think that the problem is with your Python install. If you want to be able to link dynamically with your python install, you'll have to add a link to libpython.so in your lib/python-/config directory. The problem is that your python binary was built without --enable-shared and thus Python itself believes that there is no libpython.so. And because of that, it is telling the GDB configure to use the static archive. The Ubuntu python install is equally broken (IMO), but it happens to work because there is a copy of the the libpython.so in the config/ directory as well. -- Joel