From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7080 invoked by alias); 27 Jul 2010 15:30:07 -0000 Received: (qmail 7070 invoked by uid 22791); 27 Jul 2010 15:30:05 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,TW_LN,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e24smtp03.br.ibm.com (HELO e24smtp03.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Jul 2010 15:29:58 +0000 Received: from mailhub3.br.ibm.com (mailhub3.br.ibm.com [9.18.232.110]) by e24smtp03.br.ibm.com (8.14.4/8.13.1) with ESMTP id o6RFSBq9005944 for ; Tue, 27 Jul 2010 12:28:11 -0300 Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.8.31.91]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o6RFZ0Id1798388 for ; Tue, 27 Jul 2010 12:35:00 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o6RFTeew016914 for ; Tue, 27 Jul 2010 12:29:40 -0300 Received: from [9.78.138.99] ([9.78.138.99]) by d24av01.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o6RFTdGv016744; Tue, 27 Jul 2010 12:29:40 -0300 Subject: Re: 7.2 branch, configure problem, --with-python From: Thiago Jung Bauermann To: Michael Snyder Cc: "gdb-patches@sourceware.org" In-Reply-To: <4C4E1E0F.80309@vmware.com> References: <4C4E1E0F.80309@vmware.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 27 Jul 2010 15:30:00 -0000 Message-ID: <1280244591.2661.104.camel@hactar> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00424.txt.bz2 On Mon, 2010-07-26 at 16:45 -0700, Michael Snyder wrote: > Hey folks, I'm having a problem attempting to build the release branch > on a 32 bit RHEL5 system. I've used "--with-python=xyz" to point to a > local install directory, but configure tells me it wasn't found. > > The exact same configuration worked fine in version 7.1. > > This is my configure command: > CFLAGS=-g \ > LDFLAGS="-Wl,-R/build/toolchain/lin32/ncurses-5.5/lib > -Wl,-R/build/toolchain/lin32/expat-1.95.8/lib > -Wl,-R/build/toolchain/lin32/python-2.5/lib > -Wl,-R/build/toolchain/lin32/zlib-1.2.3-3/lib \ > $(srcdir)/configure --with-python=/build/toolchain/lin32/python-2.5 > > ... and this is the error message: > > checking for python2.5... no > configure: error: no usable python found at > /build/toolchain/lin32/python-2.5 > make[1]: *** [configure-gdb] Error 1 You're getting lots of "undefined reference to `__ctype_b'" errors when statically linking with libpython2.5.a. I've never seen such error myself, but it looks like that it is related to using old versions of glibc (like version 2.3 or so). E.g., see: http://lists.debian.org/debian-glibc/2002/10/msg00340.html http://lists.debian.org/debian-glibc/2002/10/msg00093.html configure is trying to compile a trivial Python application using: gcc -o conftest -g -DVMWARE_VMKGDB -I/build/toolchain/lin32/python-2.5/include -I/build/toolchain/lin32/python-2.5/include -Wl,-R/build/toolchain/lin32/ncurses-5.5/lib -Wl,-R/build/toolchain/lin32/expat-1.95.8/lib -Wl,-R/build/toolchain/lin32/python-2.5/lib -Wl,-R/build/toolchain/lin32/zlib-1.2.3-3/lib conftest.c -lncurses -lz -lm -L/build/toolchain/lin32/python-2.5/lib/python2.5/config -lpthread -ldl -lutil -lm -lpython2.5 >&5 Which (apart from the -Wl,-R options) look harmless to me. My initial impression is that there's something fishy with your libpython2.5.a. I don't know why GDB 7.1 and GDB 7.2 would differ here. -- []'s Thiago Jung Bauermann IBM Linux Technology Center