From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: 23.0.60; How to make some libraries link statically via pkg-config files? Date: Mon, 18 Feb 2008 19:52:51 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1203360853 8408 80.91.229.12 (18 Feb 2008 18:54:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 18:54:13 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 18 19:54:37 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 1JRB8H-0002Dd-3M for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2008 19:54:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRB7m-0001zv-E0 for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2008 13:53:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRB6y-00014Q-Rm for emacs-devel@gnu.org; Mon, 18 Feb 2008 13:53:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRB6x-00013S-Sc for emacs-devel@gnu.org; Mon, 18 Feb 2008 13:53:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRB6x-00013E-NE for emacs-devel@gnu.org; Mon, 18 Feb 2008 13:53:07 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JRB6x-0001Zi-KL for emacs-devel@gnu.org; Mon, 18 Feb 2008 13:53:07 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JRB6w-0002u1-IP for emacs-pretest-bug@gnu.org; Mon, 18 Feb 2008 13:53:06 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JRB6t-0001XB-Ts for emacs-pretest-bug@gnu.org; Mon, 18 Feb 2008 13:53:07 -0500 Original-Received: from mout3.freenet.de ([195.4.92.93]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JRB6t-0001VN-2P for emacs-pretest-bug@gnu.org; Mon, 18 Feb 2008 13:53:03 -0500 Original-Received: from [195.4.92.13] (helo=3.mx.freenet.de) by mout3.freenet.de with esmtpa (Exim 4.69) (envelope-from ) id 1JRB6o-0001pe-LO for emacs-pretest-bug@gnu.org; Mon, 18 Feb 2008 19:52:58 +0100 Original-Received: from fcf90.f.ppp-pool.de ([195.4.207.144]:52395 helo=[192.168.1.2]) by 3.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 25) (Exim 4.69 #10) id 1JRB6l-0006ky-87 for emacs-pretest-bug@gnu.org; Mon, 18 Feb 2008 19:52:55 +0100 X-Mailer: Apple Mail (2.753) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:89509 gmane.emacs.pretest.bugs:21202 Archived-At: Hello! GNU Emacs 23.0.60 with enabled font backend and then using the xft =20 variant crashes it reliably. Problem can be that at run-time two =20 versions of the shared library get used on Mac OS X, marked with *: 0x1000 - 0x34bfff emacs .../emacs/src/emacs 0x53c000 - 0x54bfff libXmu.6.dylib = /usr/X11R6/lib/libXmu.6.dylib 0x553000 - 0x594fff libXt.6.dylib = /usr/X11R6/lib/libXt.6.dylib 0x5a9000 - 0x5aefff libSM.6.dylib = /usr/X11R6/lib/libSM.6.dylib 0x5b2000 - 0x5c1fff libICE.6.dylib = /usr/X11R6/lib/libICE.6.dylib 0x5c9000 - 0x5d5fff libXext.6.dylib = /usr/X11R6/lib/libXext.6.dylib 0x5db000 - 0x5f8fff libjpeg.62.dylib /sw/lib/libjpeg.62.dylib 0x705000 - 0x751fff libtiff.3.dylib /sw/lib/libtiff.3.dylib 0x7e8000 - 0x7eefff libgif.4.dylib = /sw/lib/libgif.4.dylib 0x1008000 - 0x1026fff libpng12.0.dylib /sw/lib/libpng12.0.dylib 0x1085000 - 0x1090fff libXpm.4.dylib = /usr/X11R6/lib/libXpm.4.dylib 0x1095000 - 0x10a2fff libXft.2.dylib = /usr/X11R6/lib/libXft.2.dylib 0x10a8000 - 0x10bdfff libgdk_pixbuf-2.0.0.dylib /sw/lib/=20 libgdk_pixbuf-2.0.0.dylib 0x10c4000 - 0x10c5fff libgmodule-2.0.0.dylib /sw/lib/=20 libgmodule-2.0.0.dylib 0x10c8000 - 0x10d0fff libintl.3.dylib /sw/lib/libintl.3.dylib 0x10e6000 - 0x10ecfff libXrender.1.dylib /usr/X11R6/lib/=20 libXrender.1.dylib 0x1205000 - 0x1238fff libXaw3d.7.dylib /sw/lib/libXaw3d.7.dylib 0x1371000 - 0x143afff libX11.6.dylib = /usr/X11R6/lib/libX11.6.dylib * 0x1463000 - 0x14cbfff libfreetype.6.dylib /sw/lib/freetype219/lib/=20= libfreetype.6.dylib 0x1663000 - 0x1683fff libfontconfig.1.dylib /sw/lib/fontconfig2/=20 lib/libfontconfig.1.dylib * 0x16eb000 - 0x1712fff librsvg-2.2.dylib = /sw/lib/librsvg-2.2.dylib 0x1799000 - 0x17cdfff libgobject-2.0.0.dylib /sw/lib/=20 libgobject-2.0.0.dylib 0x17de000 - 0x1869fff libglib-2.0.0.dylib /sw/lib/=20 libglib-2.0.0.dylib 0x1885000 - 0x197efff libiconv.2.dylib /sw/lib/libiconv.2.dylib 0x19d0000 - 0x19fefff libdbus-1.3.dylib = /sw/lib/libdbus-1.3.dylib 0x1a82000 - 0x1ab0fff libncurses.5.dylib /sw/lib/ncurses/=20 libncurses.5.dylib 0x1acc000 - 0x1adbfff libotf.0.dylib = /sw/lib/libotf.0.dylib * 0x1b00000 - 0x1b1bfff libfontconfig.1.dylib /usr/X11R6/lib/=20 libfontconfig.1.dylib * 0x1b2a000 - 0x1b49fff libexpat.0.dylib /usr/X11R6/lib/libexpat.=20= 0.dylib * 0x1b50000 - 0x1b92fff libfreetype.6.dylib /usr/X11R6/lib/=20 libfreetype.6.dylib * 0x1ba5000 - 0x1bc3fff libexpat.1.dylib /sw/lib/libexpat.1.dylib 0x1bf8000 - 0x1c25fff libcroco-0.6.3.dylib /sw/lib/=20 libcroco-0.6.3.dylib 0x1c9f000 - 0x1caffff libart_lgpl_2.2.dylib /sw/lib/=20 libart_lgpl_2.2.dylib 0x1cb5000 - 0x1cd2fff libpangoft2-1.0.0.dylib /sw/lib/=20 libpangoft2-1.0.0.dylib 0x1cdc000 - 0x1d0bfff libpango-1.0.0.dylib /sw/lib/=20 libpango-1.0.0.dylib 0x2000000 - 0x2111fff libxml2.2.dylib /sw/lib/libxml2.2.dylib 0x8fe00000 - 0x8fe52fff dyld 46.16 /usr/lib/dyld When I patch the pkg-config files to contain for example -Wl,-Bstatic -lfreetype -Wl,-Bdynamic this gets "converted" to nonsense: pkg-config --libs 'xft >=3D 0.13.0' -Wl,-Bstatic -Wl,-Bdynamic -L/sw/lib/fontconfig2/lib -L/sw/lib/=20= freetype219/lib -L/usr/X11R6/lib -lfreetype -lXft -lfontconfig The man page mentions some "proper tagging" without mentioning their =20 names. How can I prepare the PC files that the linker switches are =20 saved? Or should I better "patch" the Emacs Makefiles? -- Greetings Pete The future will be much better tomorrow. =96 George W. Bush