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: Re: emacs-23.1.96: problem on GNU/Linux AMD64 (Red Hat 4.8) Date: Thu, 22 Apr 2010 18:01:14 -0600 (MDT) Message-ID: References: <4BCEB200.6020903@swipnet.se> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1271981281 25376 80.91.229.12 (23 Apr 2010 00:08:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Apr 2010 00:08:01 +0000 (UTC) Cc: beebe@math.utah.edu To: "Jan D." , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 23 02:07:59 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 1O56NI-0004TI-4Q for ged-emacs-devel@m.gmane.org; Fri, 23 Apr 2010 02:07:58 +0200 Original-Received: from localhost ([127.0.0.1]:51174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O56N4-0007QE-Hr for ged-emacs-devel@m.gmane.org; Thu, 22 Apr 2010 20:03:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O56My-0007Q9-0s for emacs-devel@gnu.org; Thu, 22 Apr 2010 20:03:44 -0400 Original-Received: from [140.186.70.92] (port=60445 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O56Mn-0007OQ-Bv for emacs-devel@gnu.org; Thu, 22 Apr 2010 20:03:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O56Kc-0005MT-M4 for emacs-devel@gnu.org; Thu, 22 Apr 2010 20:01:22 -0400 Original-Received: from mail.math.utah.edu ([155.101.98.135]:32926) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O56Kc-0005M1-CF for emacs-devel@gnu.org; Thu, 22 Apr 2010 20:01:18 -0400 Original-Received: from psi.math.utah.edu (psi.math.utah.edu [155.101.96.19]) by mail.math.utah.edu (8.14.3/8.14.3) with ESMTP id o3N01E9i018378; Thu, 22 Apr 2010 18:01:14 -0600 (MDT) Original-Received: from psi.math.utah.edu (localhost [127.0.0.1]) by psi.math.utah.edu (8.14.3/8.14.3) with ESMTP id o3N01Ev9014992; Thu, 22 Apr 2010 18:01:14 -0600 (MDT) Original-Received: (from beebe@localhost) by psi.math.utah.edu (8.14.3/8.14.3/Submit) id o3N01E56014990; Thu, 22 Apr 2010 18:01:14 -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 In-Reply-To: <4BCEB200.6020903@swipnet.se> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (mail.math.utah.edu [155.101.98.135]); Thu, 22 Apr 2010 18:01:14 -0600 (MDT) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:124091 Archived-At: >From recent mail exchanges with "Jan D." : >> ... >> Nelson H. F. Beebe wrote: >> >> > 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 >> >> Your LDFLAGS doesn't tell configure where to find include files. >> Did you try these options to configure: >> >> X features: >> --x-includes=DIR X include files are in DIR >> --x-libraries=DIR X library files are in DIR >> ... Red Hat puts the X11 libraries and header files in standard places that configure knows about, so those options are not needed. >From the build log, here is what the problems are: checking for X... libraries /usr/X11R6/lib, headers [OKAY: expected] checking for librsvg-2.0 >= 2.11.0... no Requested 'librsvg-2.0 >= 2.11.0' but version of librsvg is 2.8.1 checking for pkg-config... (cached) /usr/bin/pkg-config checking for gtk+-2.0 >= 2.6 glib-2.0 >= 2.6... no Requested 'gtk+-2.0 >= 2.6' but version of GTK+ is 2.4.13 checking for dbus-1 >= 1.0... no Requested 'dbus-1 >= 1.0' but version of dbus is 0.22 checking for gconf-2.0 >= 2.13... no Requested 'gconf-2.0 >= 2.13' but version of gconf is 2.8.1 checking for xaw3d... no checking for libXaw... no; do not use toolkit by default checking for xft >= 0.13.0... yes checking XFT_CFLAGS... -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config checking XFT_LIBS... -L/usr/X11R6/lib64 -lXft -lX11 -lfreetype -lXrender -lfontconfig checking for XRenderQueryExtension in -lXrender... no checking X11/xpm.h usability... yes checking X11/xpm.h presence... yes checking for X11/xpm.h... yes checking for XpmReadFileToPixmap in -lXpm... no checking for jerror.h... yes checking for jpeg_destroy_compress in -ljpeg... no checking for libpng/png.h... yes checking for png_get_channels in -lpng... no checking for tiffio.h... yes checking for TIFFGetVersion in -ltiff... no checking for EGifPutExtensionLast in -lgif... no checking for EGifPutExtensionLast in -lungif... no configure: error: The following required libraries were not found: libXpm libjpeg libpng libgif/libungif libtiff The final error message is decidely misleading, and it really should be revised. What is really happening is UNFORTUNATE VERSION DEPENDENCE on the GIF, JPEG, PNG, and TIFF libraries. I find it unwise that emacs-23.x is expecting recent versions of these libraries, instead of venerable stable ones that have been around for a decade or more. For many of us, emacs is as essential as sh, ls, tar, cc, make, and many other traditional Unix tools, and a system without emacs needs fixing pronto before it can be considered usable. Many GNU/Linux distros come up by default with such an unusable environment, so the first thing that I do is install those essential tools before turning the system loose for our general user community. It is therefore imperative that emacs retain wide portability, and not just be installable on bleeding-edge systems. On all of our systems, I have recent versions of all of the standard libraries, compilers, and GNU tool suites, and they can be exposed if I build with the /usr/local tree visible. However, as part of GNU software package testing, I always include test builds, such as the above one, done in an environment where only the vendor-provided programs and libraries are visible. As a result, I WAS able to build emacs-23.1.96 on this Red Hat 4.8 system, and I use that version of emacs daily with the intent that I, rather than one of our users, find problems first. ------------------------------------------------------------------------------- - 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/ - -------------------------------------------------------------------------------