[Fontconfig-bugs] [Bug 102986] New: 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
Mon Sep 25 22:50:24 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=102986
Bug ID: 102986
Summary: mkostemp weak linking on macOS Sierra causes a crash
if library is run on 10.11 or older
Product: fontconfig
Version: 2.12
Hardware: x86-64 (AMD64)
OS: Mac OS X (All)
Status: NEW
Severity: major
Priority: medium
Component: library
Assignee: fontconfig-bugs at lists.freedesktop.org
Reporter: g.litenstein at gmail.com
QA Contact: freedesktop at behdad.org
The MacOS SDK did not include mkostemp until Sierra; building on previous
versions works fine because it looks for the function, doesn't find it and it
moves on. However, if somebody builds fontconfig against the 10.12 (and
presumably also 10.13) SDK, it will be impossible to run on computers running
10.11.6 or older, since the symbol is weak-linked in libSystem.B.dylib.
The fix for this is extremely simple: passing ac_cv_func_mkostemp=no to
configure.
I made a patch to fix this for macports (PR:
https://github.com/macports/macports-ports/pull/802) but the maintainer of the
port asked me to consult here whether you consider this to be an issue that
would best be solved on your end or by the various package managers.
I personally am of the mind that this is more of an XCode issue than a
fontconfig issue but that's just me.
--
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/20170925/47be1199/attachment.html>
More information about the Fontconfig-bugs
mailing list