From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3201 invoked by alias); 30 Sep 2010 20:07:36 -0000 Received: (qmail 3183 invoked by uid 22791); 30 Sep 2010 20:07:31 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from eu1sys200aog113.obsmtp.com (HELO eu1sys200aog113.obsmtp.com) (207.126.144.135) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Sep 2010 20:07:27 +0000 Received: from source ([167.4.1.35]) (using TLSv1) by eu1sys200aob113.postini.com ([207.126.147.11]) with SMTP ID DSNKTKTt5WrSMqPml6SLFad3mgXWimnSV1AV@postini.com; Thu, 30 Sep 2010 20:07:26 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.80.115]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 87EC6AD; Thu, 30 Sep 2010 20:03:37 +0000 (GMT) Received: from Webmail-eu.st.com (safex1hubcas4.st.com [10.75.90.69]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 226276B1; Thu, 30 Sep 2010 20:06:53 +0000 (GMT) Received: from SAFEX1MAIL1.st.com ([10.75.90.1]) by Safex1hubcas4.st.com ([10.75.90.69]) with mapi; Thu, 30 Sep 2010 22:06:44 +0200 From: Michel METZGER To: Joel Brobecker Cc: "gdb@sourceware.org" Date: Thu, 30 Sep 2010 20:07:00 -0000 Subject: RE: Failed to compile GDB 7.2 with python support Message-ID: <5B4CE209869C6A4797F5FAA0B348F0A0D9E83E3152@SAFEX1MAIL1.st.com> References: <5B4CE209869C6A4797F5FAA0B348F0A0D9E83E2E6B@SAFEX1MAIL1.st.com> <20100929203714.GI3044@adacore.com> <5B4CE209869C6A4797F5FAA0B348F0A0D9E83E2E74@SAFEX1MAIL1.st.com> <20100930041438.GA2988@adacore.com> In-Reply-To: <20100930041438.GA2988@adacore.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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/msg00162.txt.bz2 I understand now. Thanks for your help guys! --=20 Michel. -----Original Message----- From: Joel Brobecker [mailto:brobecker@adacore.com]=20 Sent: Thursday, September 30, 2010 12:15 AM To: Michel METZGER Cc: gdb@sourceware.org Subject: Re: Failed to compile GDB 7.2 with python support [added gdb@sourceware.org back so that everyone can follow the discussion and any suggestion that might emerge] > It prints >=20 > -lpthread -ldl -lutil -lm -lpython2.6 It's all coming back to me, now. I was thinking of a discussion we had with MichaelS, but in fact, it was something I already found earlier: http://www.sourceware.org/ml/gdb-patches/2010-07/msg00168.html http://www.sourceware.org/ml/gdb-patches/2010-08/msg00047.html (you are facing issue #1) You're facing that problem because you built python with --enable-shared. The problem is indeed in the python-config.py script, which we copied from the Python sources. And the bad news is that fixing it is far from trivial - and it gets worse when one starts considering MacOS and Windows. Unless you are interested in hacking that script to make it work, I suspect the simplest is to add the -L yourself (through LDFLAGS). Or hack the python-config.py script to add it for you. Whichever is simplest in your case. --=20 Joel