all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Nelson H. F. Beebe" <beebe@math.utah.edu>
To: emacs-devel@gnu.org
Cc: beebe@math.utah.edu
Subject: emacs-23.1.96: problem on GNU/Linux AMD64 (Red Hat 4.8)
Date: Tue, 20 Apr 2010 21:55:59 -0600 (MDT)	[thread overview]
Message-ID: <CMM.0.94.0.1271822159.beebe@sunburst.math.utah.edu> (raw)

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/ -
-------------------------------------------------------------------------------




             reply	other threads:[~2010-04-21  3:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-21  3:55 Nelson H. F. Beebe [this message]
2010-04-21  9:18 ` emacs-23.1.96: problem on GNU/Linux AMD64 (Red Hat 4.8) Andreas Schwab
2010-04-21 16:05 ` Neal Becker
     [not found] <4BCEB200.6020903@swipnet.se>
2010-04-23  0:01 ` Nelson H. F. Beebe
2010-04-23  6:10   ` Jan D.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CMM.0.94.0.1271822159.beebe@sunburst.math.utah.edu \
    --to=beebe@math.utah.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.