From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16041 invoked by alias); 3 Mar 2010 16:06:31 -0000 Received: (qmail 15751 invoked by uid 22791); 3 Mar 2010 16:06:29 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS 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; Wed, 03 Mar 2010 16:06:25 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o23G69mI019300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Mar 2010 11:06:09 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o23G68rB021687; Wed, 3 Mar 2010 11:06:08 -0500 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 o23G67C5025000; Wed, 3 Mar 2010 11:06:07 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id E4467379963; Wed, 3 Mar 2010 09:06:06 -0700 (MST) From: Tom Tromey To: Chris Sutcliffe Cc: gdb@sourceware.org Subject: Re: configure: error: no usable python found References: <4B8E49EC.2080501@technosis.de> <20100303115437.GD15364@adacore.com> <2bf229d31003030453k302064caq29a75976637203ba@mail.gmail.com> Reply-To: tromey@redhat.com Date: Wed, 03 Mar 2010 16:06:00 -0000 In-Reply-To: <2bf229d31003030453k302064caq29a75976637203ba@mail.gmail.com> (Chris Sutcliffe's message of "Wed, 3 Mar 2010 07:53:55 -0500") 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-03/txt/msg00013.txt.bz2 >>>>> "Chris" == Chris Sutcliffe writes: Chris> I configured gdb with 'configure --with-python=/python'. Chris> Looking at the config.log file I see: Chris> | #include "python2.6/Python.h" Chris> | int Chris> | main () Chris> | { Chris> | Py_Initialize (); Chris> | ; Chris> | return 0; Chris> | } Could you also paste the command line? Chris> Which is why it's failing, given that Python.h is in /python/include/. Chris> Is there a way to override where configure is looking for Python.h? --with-python supposedly changes the includes: case "${with_python}" in [...] /*) python_includes="-I${with_python}/include" python_libs="-L${with_python}/lib" ;; [...] CPPFLAGS="$CPPFLAGS ${python_includes}" Tom