all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dkcombs@panix.com (David Combs)
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)	[thread overview]
Message-ID: <bard3d$6iu$1@reader1.panix.com> (raw)
In-Reply-To: 84of1uxhwp.fsf@lucy.is.informatik.uni-duisburg.de

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4520 bytes --]

In article <84of1uxhwp.fsf@lucy.is.informatik.uni-duisburg.de>,
Kai Großjohann <kai.grossjohann@gmx.net> 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.

  reply	other threads:[~2003-05-25 21:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-19  6:10 emacs 21.3 wants "libXaw3d.so.5"; got Xaw3d-1.5.tar.gz; NOW WHAT? David Combs
2003-05-19  8:09 ` Akop Pogosian
2003-05-19 17:54   ` David Combs
2003-05-19 18:17     ` Stefan Monnier
2003-05-20  6:19       ` David Combs
2003-05-20  6:56         ` Stefan Monnier
2003-05-20 16:32           ` David Combs
2003-05-22 11:02 ` Kai Großjohann
2003-05-23  5:34   ` David Combs
2003-05-23  7:04     ` Kai Großjohann
2003-05-25 21:37       ` David Combs [this message]
2003-05-25 22:22         ` Stefan Monnier
2003-05-26  6:57         ` Kai Großjohann

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='bard3d$6iu$1@reader1.panix.com' \
    --to=dkcombs@panix.com \
    /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.