From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs 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 Message-ID: <871w78y9gx.fsf@uwakimon.sk.tsukuba.ac.jp> References: <200802181932.m1IJWiu7007097@sallyv1.ics.uci.edu> <200802190010.m1J0AVpZ018954@sallyv1.ics.uci.edu> <5EFB325D-55DD-40CA-B58C-B2B5EF2C3248@freenet.de> <200802190959.m1J9xJi4026244@sallyv1.ics.uci.edu> <94E6C176-81C7-481F-B24A-012FFEC24F8D@freenet.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1203452671 17100 80.91.229.12 (19 Feb 2008 20:24:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2008 20:24:31 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Dan Nicolaescu To: Peter Dyballa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 19 21:24:55 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JRZ1D-0001lY-S0 for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 21:24:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRZ0i-00038c-U5 for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 15:24:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRZ0d-00038D-Vx for emacs-devel@gnu.org; Tue, 19 Feb 2008 15:24:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRZ0c-00037u-Ha for emacs-devel@gnu.org; Tue, 19 Feb 2008 15:24:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRZ0c-00037l-9d for emacs-devel@gnu.org; Tue, 19 Feb 2008 15:24:10 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JRZ0c-0007hg-00 for emacs-devel@gnu.org; Tue, 19 Feb 2008 15:24:10 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JRZ0b-0002x2-MA for emacs-pretest-bug@gnu.org; Tue, 19 Feb 2008 15:24:09 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JRZ0Y-0007gm-NP for emacs-pretest-bug@gnu.org; Tue, 19 Feb 2008 15:24:09 -0500 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JRZ0Y-0007g1-9w for emacs-pretest-bug@gnu.org; Tue, 19 Feb 2008 15:24:06 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id 6EA111535AE; Wed, 20 Feb 2008 05:24:03 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 2A1761A29E5; Wed, 20 Feb 2008 05:31:11 +0900 (JST) In-Reply-To: <94E6C176-81C7-481F-B24A-012FFEC24F8D@freenet.de> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" 42711a251efd XEmacs Lucid X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89589 gmane.emacs.pretest.bugs:21226 Archived-At: 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 =96 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 =20 > 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!)