From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: emacs 21.3 wants "libXaw3d.so.5"; got Xaw3d-1.5.tar.gz; NOW WHAT? Date: Sun, 25 May 2003 21:37:49 +0000 (UTC) Organization: Public Access Networks Corp. Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84he7nutvd.fsf@lucy.is.informatik.uni-duisburg.de> <84of1uxhwp.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1053898793 24661 80.91.224.249 (25 May 2003 21:39:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 25 May 2003 21:39:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun May 25 23:39:47 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19K3DW-0006Oq-00 for ; Sun, 25 May 2003 23:39:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19K3E6-0003ZF-Px for gnu-help-gnu-emacs@m.gmane.org; Sun, 25 May 2003 17:40:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.unix.solaris Original-Lines: 135 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader1.panix.com 1053898669 6750 166.84.1.1 (25 May 2003 21:37:49 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sun, 25 May 2003 21:37:49 +0000 (UTC) X-Newsreader: trn 4.0-test74 (May 26, 2000) Originator: dkcombs@panix.com (David Combs) Original-Xref: shelby.stanford.edu gnu.emacs.help:113677 comp.unix.solaris:443241 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10173 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10173 In article <84of1uxhwp.fsf@lucy.is.informatik.uni-duisburg.de>, Kai Großjohann wrote: > >I agree with folks there that you need to add the right -L and -R >flags to the linker invocation. > >I did this some time ago, on Solaris 2.6, by setting $LDFLAGS prior to >running ./configure. Thanks, Kai, for the advice. Now, on that other thread, there has been SO MUCH back- and-forth about the args, one saying "add this -R xxx" and the followup saying eg ~~ "no, no, no -- don't do that! It won't work!" -- please, for me, and for the eventual writeup that I promised: (1) exactly what arg for the -L? (and why) (2) ditto for the -R. (3) Something to pre-answer a "no no no!" kind of followup. (4) (I assume there's more than one way to successfully build this new Emacs -- or is there essentially only ONE way?) (5) What is it that makes this 21.3 (or just 21.x?) more difficult, more understanding needed, than 20.x, 19.x? THANKS! David PS: From the SOLARIS ld-manpage, will having these pieces right here make it any easier to answer anything? (Instead of having to go out and grab your own man-page and lift out pieces). i -L path Adds path to the library search directories. ld searches for libraries first in any directories speci- fied by the -L options and then in the standard direc- tories. This option is useful only if it precedes the -l options to which it applies on the command line. The environment variable LD_LIBRARY_PATH may be used to supplement the library search path. See LD_LIBRARY_PATH below. -R path A colon-separated list of directories used to specify library search directories to the runtime linker. If present and not NULL, it is recorded in the output object file and passed to the runtime linker. Multiple instances of this option are concatenated together with each path separated by a colon. -l x Searches a library libx.so or libx.a, the conventional names for shared object and archive libraries, respec- tively. In dynamic mode, unless the -B static option is in effect, ld searches each directory specified in the library search path for a libx.so or libx.a file. The directory search stops at the first directory con- taining either. ld chooses the file ending in .so if -lx expands to two files with names of the form libx.so and libx.a. If no libx.so is found, then ld accepts libx.a. In static mode, or when the -B static option is in effect, ld selects only the file ending in .a. ld searches a library when it encounters its name, so the placement of -l is significant. ENVIRONMENT VARIABLES LD_LIBRARY_PATH A list of directories in which to search for libraries specified with the -l option. Multiple directories are separated by a colon. In the most general case, it will contain two directory lists separated by a semi- colon: dirlist1;dirlist2 If ld is called with any number of occurrences of -L, as in: ld ... -Lpath1 ... -Lpathn ... then the search path ordering is: dirlist1 path1 ... pathn dirlist2 LIBPATH When the list of directories does not contain a semi- colon, it is interpreted as dirlist2. The LD_LIBRARY_PATH environment variable also affects the runtime linkers searching for dynamic dependen- cies. This environment variable can be specified with a _32 or _64 suffix. This makes the environment variable specific, respectively, to 32-bit or 64-bit processes and overrides any non-suffixed version of the environ- ment variable that may be in effect. LD_RUN_PATH An alternative mechanism for specifying a runpath to the link-editor. See the -R option. If both LD_RUN_PATH and the -R option are specified, -R super- sedes. FILES LIBPATH /usr/lib for 32-bit libraries, or /usr/lib/64 for 64- bit libraries. (Of course there's other stuff that I ommitted, amongst that stuff.) D.