From: Peter Dyballa <Peter_Dyballa@Freenet.DE>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.60; How to make some libraries link statically via pkg-config files?
Date: Mon, 18 Feb 2008 19:52:51 +0100 [thread overview]
Message-ID: <A8E31A46-5BFD-4FA0-AF4E-877C1A1D938C@Freenet.DE> (raw)
Hello!
GNU Emacs 23.0.60 with enabled font backend and then using the xft
variant crashes it reliably. Problem can be that at run-time two
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/
libgdk_pixbuf-2.0.0.dylib
0x10c4000 - 0x10c5fff libgmodule-2.0.0.dylib /sw/lib/
libgmodule-2.0.0.dylib
0x10c8000 - 0x10d0fff libintl.3.dylib /sw/lib/libintl.3.dylib
0x10e6000 - 0x10ecfff libXrender.1.dylib /usr/X11R6/lib/
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/
libfreetype.6.dylib
0x1663000 - 0x1683fff libfontconfig.1.dylib /sw/lib/fontconfig2/
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/
libgobject-2.0.0.dylib
0x17de000 - 0x1869fff libglib-2.0.0.dylib /sw/lib/
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/
libncurses.5.dylib
0x1acc000 - 0x1adbfff libotf.0.dylib /sw/lib/libotf.0.dylib
* 0x1b00000 - 0x1b1bfff libfontconfig.1.dylib /usr/X11R6/lib/
libfontconfig.1.dylib
* 0x1b2a000 - 0x1b49fff libexpat.0.dylib /usr/X11R6/lib/libexpat.
0.dylib
* 0x1b50000 - 0x1b92fff libfreetype.6.dylib /usr/X11R6/lib/
libfreetype.6.dylib
* 0x1ba5000 - 0x1bc3fff libexpat.1.dylib /sw/lib/libexpat.1.dylib
0x1bf8000 - 0x1c25fff libcroco-0.6.3.dylib /sw/lib/
libcroco-0.6.3.dylib
0x1c9f000 - 0x1caffff libart_lgpl_2.2.dylib /sw/lib/
libart_lgpl_2.2.dylib
0x1cb5000 - 0x1cd2fff libpangoft2-1.0.0.dylib /sw/lib/
libpangoft2-1.0.0.dylib
0x1cdc000 - 0x1d0bfff libpango-1.0.0.dylib /sw/lib/
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 >= 0.13.0'
-Wl,-Bstatic -Wl,-Bdynamic -L/sw/lib/fontconfig2/lib -L/sw/lib/
freetype219/lib -L/usr/X11R6/lib -lfreetype -lXft -lfontconfig
The man page mentions some "proper tagging" without mentioning their
names. How can I prepare the PC files that the linker switches are
saved? Or should I better "patch" the Emacs Makefiles?
--
Greetings
Pete
The future will be much better tomorrow.
– George W. Bush
next reply other threads:[~2008-02-18 18:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-18 18:52 Peter Dyballa [this message]
2008-02-18 19:32 ` 23.0.60; How to make some libraries link statically via pkg-config files? 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
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=A8E31A46-5BFD-4FA0-AF4E-877C1A1D938C@Freenet.DE \
--to=peter_dyballa@freenet.de \
--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).