From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Nelson H. F. Beebe" Newsgroups: gmane.emacs.devel Subject: emacs-23.1.96: problem on GNU/Linux AMD64 (Red Hat 4.8) Date: Tue, 20 Apr 2010 21:55:59 -0600 (MDT) Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1271836535 15796 80.91.229.12 (21 Apr 2010 07:55:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2010 07:55:35 +0000 (UTC) Cc: beebe@math.utah.edu To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 21 09:55:33 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O4UmT-0008It-Bj for ged-emacs-devel@m.gmane.org; Wed, 21 Apr 2010 09:55:33 +0200 Original-Received: from localhost ([127.0.0.1]:34736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4UmS-0000f0-J4 for ged-emacs-devel@m.gmane.org; Wed, 21 Apr 2010 03:55:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4ROk-0002VR-SB for emacs-devel@gnu.org; Wed, 21 Apr 2010 00:18:50 -0400 Original-Received: from [140.186.70.92] (port=40121 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4ROj-0002SW-7S for emacs-devel@gnu.org; Wed, 21 Apr 2010 00:18:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4ROh-0002Bc-Ep for emacs-devel@gnu.org; Wed, 21 Apr 2010 00:18:49 -0400 Original-Received: from mail.math.utah.edu ([155.101.98.135]:35900) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4ROh-0002BJ-4c for emacs-devel@gnu.org; Wed, 21 Apr 2010 00:18:47 -0400 Original-Received: from sunburst.math.utah.edu (sunburst4.math.utah.edu [155.101.98.134]) by mail.math.utah.edu (8.14.3/8.14.3) with ESMTP id o3L3tx2A016914; Tue, 20 Apr 2010 21:55:59 -0600 (MDT) Original-Received: from sunburst.math.utah.edu (localhost [127.0.0.1]) by sunburst.math.utah.edu (8.14.3/8.14.3) with ESMTP id o3L3tx6w016911; Tue, 20 Apr 2010 21:55:59 -0600 (MDT) Original-Received: (from beebe@localhost) by sunburst.math.utah.edu (8.14.3/8.14.3/Submit) id o3L3tx8L016908; Tue, 20 Apr 2010 21:55:59 -0600 (MDT) X-US-Mail: "Department of Mathematics, 110 LCB, University of Utah, 155 S 1400 E RM 233, Salt Lake City, UT 84112-0090, USA" X-Telephone: +1 801 581 5254 X-FAX: +1 801 585 1640, +1 801 581 4148 X-URL: http://www.math.utah.edu/~beebe X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (mail.math.utah.edu [155.101.98.135]); Tue, 20 Apr 2010 21:55:59 -0600 (MDT) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Mailman-Approved-At: Wed, 21 Apr 2010 03:52:16 -0400 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:123962 Archived-At: A build of emacs-23.1.96 on GNU/Linux AMD64 (Red Hat 4.8) with % set path=(/bin /usr/bin) % env LDFLAGS='-Wl,-rpath,/usr/local/lib64 -L/usr/local/lib64' ./configure && make all check failed like this: configure:15477: gcc -o conftest -O2 -D_BSD_SOURCE \ -Wl,-rpath,/usr/local/lib64 -L/usr/local/lib64 -Wl,-znocombreloc \ -L/usr/X11R6/lib conftest.c -lungif -lX11 >&5 /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11 /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11 /usr/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status configure:15484: $? = 1 On Red Hat and OpenSuSE AMD64 systems, the default world is 64-bit, and libraries reside in /usr/local/lib64; the companion /usr/local/lib holds only 32-bit libraries. Thus it is WRONG WRONG WRONG for configure to be sticking in -L/usr/X11R6/lib, overriding the correct settings supplied in LDFLAGS! The directory /usr/X11R6/lib has only 32-bit libraries, whereas /usr/X11R6/lib64 has the needed 64-bit ones, and because that directory is vendor supplied, it is already listed in the directories known to /sbin/ldconfig, and thus need NOT be supplied. I was able to get a successful build by putting /usr/local/bin at the front of PATH; the config.log file then shows correct configure-time tests like this: gcc -o conftest -O2 -D_BSD_SOURCE -Wl,-rpath,/usr/local/lib64 \ -L/usr/local/lib64 -Wl,-znocombreloc -L/usr/X11R6/lib64 \ conftest.c -lX11 ------------------------------------------------------------------------------- - Nelson H. F. Beebe Tel: +1 801 581 5254 - - University of Utah FAX: +1 801 581 4148 - - Department of Mathematics, 110 LCB Internet e-mail: beebe@math.utah.edu - - 155 S 1400 E RM 233 beebe@acm.org beebe@computer.org - - Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ - -------------------------------------------------------------------------------