From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12928 invoked by alias); 29 Sep 2010 20:37:49 -0000 Received: (qmail 12851 invoked by uid 22791); 29 Sep 2010 20:37:47 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_LN X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Sep 2010 20:37:40 +0000 Received: by wwd20 with SMTP id 20so45851wwd.12 for ; Wed, 29 Sep 2010 13:37:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.24.199 with SMTP id x49mr1916241wex.109.1285792657662; Wed, 29 Sep 2010 13:37:37 -0700 (PDT) Received: by 10.216.171.11 with HTTP; Wed, 29 Sep 2010 13:37:37 -0700 (PDT) In-Reply-To: <5B4CE209869C6A4797F5FAA0B348F0A0D9E83E2E6B@SAFEX1MAIL1.st.com> References: <5B4CE209869C6A4797F5FAA0B348F0A0D9E83E2E6B@SAFEX1MAIL1.st.com> Date: Wed, 29 Sep 2010 20:37:00 -0000 Message-ID: Subject: Re: Failed to compile GDB 7.2 with python support From: Mathew Yeates To: Michel METZGER Cc: "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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-09/txt/msg00157.txt.bz2 this is a hack, but you could do LDFLAGS=3D-L ./configure On Wed, Sep 29, 2010 at 1:30 PM, Michel METZGER wro= te: > Hi all, > > I tried to compile GDB 7.2 with python support (2.6.6) under Linux and it= fails during the configure phase. > Python was compile like with: > >> ./configure --prefix=3D/tmp/python-2.6.6-install --enable-shared make >> make install > > And GDB with > >> ./configure --with-python=3D/tmp/python-2.6.6-install >> --prefix=3D/tmp/gdb-7.2-install make > > It fails during the execution of gdb/configure with the following message: > > ------------------------------------------------------------- > [...] > checking whether to use python... /tmp/python-2.6.6-install/ checking for= python2.6... no > configure: error: no usable python found at /tmp/python-2.6.6-install/ > make[1]: *** [configure-gdb] Error 1 > ------------------------------------------------------------- > > The gdb/config.log tells me that configure failed to compile a test progr= am to set up python. > From what I understand, the faulty compilation command line is: > > -------------------------------------------------------------- > [...] > configure:10682: gcc -o conftest -g -O2 =A0 -I/tmp/python-2.6.6-install/i= nclude -I/tmp/python-2.6.6-install/include =A0 =A0conftest.c -lncurses -lz = -lm =A0 =A0-lpthread -ldl -lutil -lm -lpython2.6 >&5 > /usr/bin/ld: cannot find -lpython2.6 > [...] > -------------------------------------------------------------- > > Apparently the -L/tmp/Python-2.6.6-install/lib is missing. > > What am I doing wrong? > > Best regards, > > Michel Metzger. >