From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Pretest Date: Sun, 29 Oct 2006 18:40:08 -0500 Message-ID: <87y7qyr8rr.fsf@furball.mit.edu> References: <87lkn1tzav.fsf@stupidchicken.com> <20061028150858.BF96744021@Psilocybe.Update.UU.SE> <87ac3gjh89.fsf@furball.mit.edu> <20061028211102.663F14402D@Psilocybe.Update.UU.SE> <87k62kks7y.fsf@furball.mit.edu> <20061028223004.5259344030@Psilocybe.Update.UU.SE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162165294 9611 80.91.229.2 (29 Oct 2006 23:41:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Oct 2006 23:41:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 30 00:41:32 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GeKGv-0007aW-ST for ged-emacs-devel@m.gmane.org; Mon, 30 Oct 2006 00:40:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GeKGv-0000Oo-EQ for ged-emacs-devel@m.gmane.org; Sun, 29 Oct 2006 18:40:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GeKGQ-0000Fu-6x for emacs-devel@gnu.org; Sun, 29 Oct 2006 18:40:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GeKGP-0000Fa-SC for emacs-devel@gnu.org; Sun, 29 Oct 2006 18:40:25 -0500 Original-Received: from [18.72.1.2] (helo=south-station-annex.mit.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GeKGP-0002Xf-S5; Sun, 29 Oct 2006 18:40:26 -0500 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id k9TNeO2E022565; Sun, 29 Oct 2006 18:40:24 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by central-city-carrier-station.mit.edu (8.13.6/8.9.2) with ESMTP id k9TNe9Gj002771; Sun, 29 Oct 2006 18:40:10 -0500 (EST) Original-Received: from furball.mit.edu (SYDNEYPACIFIC-FOUR-THIRTY-SEVEN.MIT.EDU [18.95.6.182]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id k9TNe8WU024634; Sun, 29 Oct 2006 18:40:09 -0500 (EST) Original-Received: from cyd by furball.mit.edu with local (Exim 3.36 #1 (Debian)) id 1GeKG8-0004On-00; Sun, 29 Oct 2006 18:40:08 -0500 Original-To: ams@gnu.org In-Reply-To: <20061028223004.5259344030@Psilocybe.Update.UU.SE> (Alfred M. Szmidt's message of "Sun\, 29 Oct 2006 00\:30\:04 +0200 \(CEST\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.599 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61354 Archived-At: "Alfred M. Szmidt" writes: > The reason from the looks is that the library search path is not > propagated correctly. This is what config.log contains (tiff is > installed in /usr/local): > > But at linking, none of the search paths are passed, and hence the > missing library error. I'm guessing you're passing an LDFLAGS envvar to configure. Seems like LDFLAGS isn't getting passed to X11_LDFLAGS. Try applying the following patch, run autoconf, run configure, and compile again. Does compilation work now? (Can others check that this patch makes sense?) *** emacs/configure.in.~1.414.~ 2006-10-28 16:35:50.000000000 -0400 --- emacs/configure.in 2006-10-29 18:23:16.000000000 -0500 *************** *** 1315,1320 **** --- 1315,1322 ---- dnl Treat GCC specially since it just gives a non-fatal `unrecognized option' dnl if not built to support GNU ld. + SPECIFIED_LDFLAGS=$LDFLAGS + AC_SUBST(SPECIFIED_LDFLAGS) late_LDFLAGS=$LDFLAGS if test "$GCC" = yes; then LDFLAGS="$LDFLAGS -Wl,-znocombreloc" *** emacs/src/Makefile.in.~1.331.~ 2006-09-16 09:28:06.000000000 -0400 --- emacs/src/Makefile.in 2006-10-29 18:24:35.000000000 -0500 *************** *** 444,450 **** #ifdef HAVE_X11 /* LD_SWITCH_X_DEFAULT comes after everything else that specifies options for where to find X libraries, but before those libraries. */ ! X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) LIBTIFF LIBJPEG LIBPNG LIBGIF LIBXPM LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM #else /* not HAVE_X11 */ LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM --- 444,450 ---- #ifdef HAVE_X11 /* LD_SWITCH_X_DEFAULT comes after everything else that specifies options for where to find X libraries, but before those libraries. */ ! X11_LDFLAGS = @SPECIFIED_LDFLAGS@ LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) LIBTIFF LIBJPEG LIBPNG LIBGIF LIBXPM LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM #else /* not HAVE_X11 */ LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM