From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4022 invoked by alias); 28 Feb 2008 17:13:09 -0000 Received: (qmail 4003 invoked by uid 22791); 28 Feb 2008 17:13:07 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 28 Feb 2008 17:12:47 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id CDF30983A2; Thu, 28 Feb 2008 17:12:45 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id AE9AF98140; Thu, 28 Feb 2008 17:12:45 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JUmJI-0000hr-Sf; Thu, 28 Feb 2008 12:12:44 -0500 Date: Thu, 28 Feb 2008 18:29:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb@sourceware.org Subject: Re: is --with-libexpat-prefix broken? Message-ID: <20080228171244.GA2501@caradoc.them.org> Mail-Followup-To: Joel Brobecker , gdb@sourceware.org References: <20080227234911.GC19729@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080227234911.GC19729@adacore.com> User-Agent: Mutt/1.5.17 (2007-12-11) 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: 2008-02/txt/msg00249.txt.bz2 On Wed, Feb 27, 2008 at 03:49:11PM -0800, Joel Brobecker wrote: > With the latest sources, I don't see the -I switch anymore, and > I don't see the path to the archive either. All I see is that configure > tries to build using -lexpat without specifying where the includes > or the library might be found: > > > configure:7028: checking for libexpat > > configure:7052: gcc -o conftest -g conftest.c -lncurses -lsocket -lnsl -lm -lexpat >&5 > > ld: fatal: library -lexpat: not found > > ld: fatal: File processing errors. No output written to conftest > > collect2: ld returned 1 exit status > > I'm looking into it, but it's really puzzling. It looks like this > part is taken care of by config/lib-link.m4:AC_LIB_HAVE_LINKFLAGS. > And yet, I don't see a change since 6.7.1 that could likely be > responsible for this change of behavior. This is a horribly overcomplicated macro, originally from (IIRC) gettext. I used it because it was there and worked, but when it goes wrong I'm at a loss. I recommend running the configure script with sh -x to see what it's doing. The only thing I noticed in the above was that there was no -I option, but the test file obviously compiled. Could you have switched compilers and/or added an expat installation in /usr/local/include and /usr/local/lib? GCC is ornery about searching /usr/local/include but not /usr/local/lib in some configurations. -- Daniel Jacobowitz CodeSourcery