<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - mkostemp weak linking on macOS Sierra causes a crash if library is run on 10.11 or older"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102986">102986</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>mkostemp weak linking on macOS Sierra causes a crash if library is run on 10.11 or older
</td>
</tr>
<tr>
<th>Product</th>
<td>fontconfig
</td>
</tr>
<tr>
<th>Version</th>
<td>2.12
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Mac OS X (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>library
</td>
</tr>
<tr>
<th>Assignee</th>
<td>fontconfig-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>g.litenstein@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>freedesktop@behdad.org
</td>
</tr></table>
<p>
<div>
<pre>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:
<a href="https://github.com/macports/macports-ports/pull/802">https://github.com/macports/macports-ports/pull/802</a>) 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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>