[Fontconfig-bugs] [Bug 102986] mkostemp weak linking on macOS Sierra causes a crash if library is run on 10.11 or older
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Sep 26 03:47:20 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=102986
--- Comment #6 from Gregorio Litenstein <g.litenstein at gmail.com> ---
It actually makes perfect sense but I thnk you don't actually understand what
I'm trying to say.
mkostemp is provided not by macports but by a core/standard macOS library
present in the SDK, which resides in /usr/lib/libSystem.B.dylib
During building, fontconfig checks where the function exists, if one is using
the 10.12 SDK (or newer), it does and it builds under that assumption. Since
this function lives in a core library, it is weakly linked, and it definitely
makes no sense to want to ship core system libraries (not to mention it would
probably be against EULA and/or copyright) with a project.
So, if this version of fontconfig is run on any older version of macOS (like
10.11.6), it will look for mkostemp in libSystem.B.dylib, and since it isn't
there, the library crashes.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20170926/e63cac0e/attachment.html>
More information about the Fontconfig-bugs
mailing list