unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* emacs-23.1.96: problem on GNU/Linux AMD64 (Red Hat 4.8)
@ 2010-04-21  3:55 Nelson H. F. Beebe
  2010-04-21  9:18 ` Andreas Schwab
  2010-04-21 16:05 ` Neal Becker
  0 siblings, 2 replies; 5+ messages in thread
From: Nelson H. F. Beebe @ 2010-04-21  3:55 UTC (permalink / raw)
  To: emacs-devel; +Cc: beebe

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-23  6:10 UTC | newest]

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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).