From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6458 invoked by alias); 25 Jun 2010 17:13:08 -0000 Received: (qmail 6446 invoked by uid 22791); 25 Jun 2010 17:13:07 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Jun 2010 17:13:01 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5PHCxHU008457 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 25 Jun 2010 13:12:59 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5PHCweR015844; Fri, 25 Jun 2010 13:12:58 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o5PHCvDw009762; Fri, 25 Jun 2010 13:12:58 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 84CFA3792DB; Fri, 25 Jun 2010 11:12:57 -0600 (MDT) From: Tom Tromey To: Steffen Dettmer Cc: gdb@sourceware.org Subject: Re: how to build gdb-7.1 --with-python? References: Reply-To: tromey@redhat.com Date: Fri, 25 Jun 2010 17:13:00 -0000 In-Reply-To: (Steffen Dettmer's message of "Fri, 25 Jun 2010 17:40:44 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-06/txt/msg00127.txt.bz2 >>>>> "Steffen" == Steffen Dettmer writes: Steffen> I googled, but did not find installation instructions. gdb/README Steffen> just states `--with-python', so I though it would be easy, as Steffen> soon as I upgraded my Python. So from python.org I grabbed 2.5 Steffen> and installed it (default configure options). Ok. Default arguments means it was installed in /usr/local. Steffen> Went back to gdb builddir and used: Steffen> ../configure --with-python --target=arm-elf --disable-werror Steffen> --disable-expat --with-expat=no Steffen> Worked. Ran make. Failed after a while with: Steffen> checking for python2.5... no Steffen> checking for python2.4... no Steffen> configure: error: python is missing or unusable Try --with-python=/usr/local With CVS gdb, you instead point to the 'python' executable. Steffen> Now I got resolved symbols from libdl (dl_open and Steffen> friends) and even from libpthread (sem_init, pthread_create...). This sounds familiar... I think it was fixed after 7.1. It is more ordinary to install and use libpython.so, not the .a. If you want to go this route it may be simpler to try CVS gdb (though I am not sure -- I'm always just using my distro's python). Tom