<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Build for AIX of fccompat.c fails with wrong number of arguments for initstate_r()"
href="https://bugs.freedesktop.org/show_bug.cgi?id=74603">74603</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>fontconfig-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Build for AIX of fccompat.c fails with wrong number of arguments for initstate_r()
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>freedesktop@behdad.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>AIX
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tomsies@mighty.co.za
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PowerPC
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>library
</td>
</tr>
<tr>
<th>Product</th>
<td>fontconfig
</td>
</tr></table>
<p>
<div>
<pre>AIX does define initstate_r(), which autoconf is correctly picking up. However
the prototype of the IBM initstate_r() has five arguments, and does not match
the linux prototype with four arguments. The random_r() prototype is also
different to linux prototype.
Patching ling 169 in fccompat.c from
#ifdef HAVE_RANDOM_R
to
#if defined(HAVE_RANDOM_R) && !defined(_AIX)
allows the compile to go through OK, and all looks to be well.</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>