From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8529 invoked by alias); 30 Sep 2010 04:14:46 -0000 Received: (qmail 8514 invoked by uid 22791); 30 Sep 2010 04:14:46 -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, 30 Sep 2010 04:14:43 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7F3512BAC9F; Thu, 30 Sep 2010 00:14:41 -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 WsGaIiw2-eqg; Thu, 30 Sep 2010 00:14:41 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 033392BAC9A; Thu, 30 Sep 2010 00:14:41 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id E0904F591F; Wed, 29 Sep 2010 21:14:38 -0700 (PDT) Date: Thu, 30 Sep 2010 04:14:00 -0000 From: Joel Brobecker To: Michel METZGER Cc: gdb@sourceware.org Subject: Re: Failed to compile GDB 7.2 with python support Message-ID: <20100930041438.GA2988@adacore.com> References: <5B4CE209869C6A4797F5FAA0B348F0A0D9E83E2E6B@SAFEX1MAIL1.st.com> <20100929203714.GI3044@adacore.com> <5B4CE209869C6A4797F5FAA0B348F0A0D9E83E2E74@SAFEX1MAIL1.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5B4CE209869C6A4797F5FAA0B348F0A0D9E83E2E74@SAFEX1MAIL1.st.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00159.txt.bz2 [added gdb@sourceware.org back so that everyone can follow the discussion and any suggestion that might emerge] > It prints > > -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. -- Joel