unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Peter Dyballa <Peter_Dyballa@freenet.de>
Cc: emacs-pretest-bug@gnu.org, Dan Nicolaescu <dann@ics.uci.edu>
Subject: Re: 23.0.60; How to make some libraries link statically via pkg-config files?
Date: Wed, 20 Feb 2008 05:31:10 +0900	[thread overview]
Message-ID: <871w78y9gx.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <94E6C176-81C7-481F-B24A-012FFEC24F8D@freenet.de>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1379 bytes --]

Peter Dyballa writes:

 > >> that both shared libraries are presented to the application, as
 > >> recorded in the Mac OS X crash dump. I want to avoid this
 > >> situation by statically linking one of them to avoid that the
 > >> application asks for one particular shared library – and gets
 > >> two presented.

That's not what's happening.  I don't understand the Mac OS X dylib
architecture in any depth, but I'm pretty sure that an object can
request an object from a specific location to be dynamically linked
(similar to the -rpath flag in GNU ld).  FWIW, my guess is that the
reason you're seeing multiple instances of libraries is not that Mac
OS X "presents" them, but because

 > 	/usr/X11R6/lib/libXft.2.dylib (compatibility version 2.1.0, current  
 > version 2.1.0)

is specifically requesting a different version from the one you get
from /sw.  Try running otool on /usr/X11R6/lib/libXft.2.dylib and see
if the output corresponds to the unwanted versions.

My experience with Fink is quite old by now (I switched to DarwinPorts
three or four years ago), but it was quite sensitive to this kind of
thing.  In particular, you really really wanted to use Fink's version
of X11 libraries rather than Apple's if you were going to build X11
applications yourself.  Old, FWIW, YMMV (but you're clearly not
getting very good mileage!)





  parent reply	other threads:[~2008-02-19 20:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-18 18:52 23.0.60; How to make some libraries link statically via pkg-config files? Peter Dyballa
2008-02-18 19:32 ` Dan Nicolaescu
2008-02-18 23:51   ` Peter Dyballa
2008-02-19  0:10     ` Dan Nicolaescu
2008-02-19  9:47       ` Peter Dyballa
2008-02-19  9:59         ` Dan Nicolaescu
2008-02-19 10:31           ` Peter Dyballa
2008-02-19 12:03             ` Andreas Schwab
2008-02-19 20:31             ` Stephen J. Turnbull [this message]
2008-02-19 21:25               ` Peter Dyballa
2008-02-20  0:32                 ` Stephen J. Turnbull
2008-02-20  0:49                   ` Peter Dyballa

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=871w78y9gx.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=Peter_Dyballa@freenet.de \
    --cc=dann@ics.uci.edu \
    --cc=emacs-pretest-bug@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 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).