<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 --- - sd-daemon.c: should be possible to avoid mq support and hence -lrt dependency"
href="https://bugs.freedesktop.org/show_bug.cgi?id=63167">63167</a>
</td>
</tr>
<tr>
<th>Keywords</th>
<td>patch
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>sd-daemon.c: should be possible to avoid mq support and hence -lrt dependency
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>simon.mcvittie@collabora.co.uk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=77482" name="attach_77482" title="sd-daemon.c: allow use of -lrt to be avoided">attachment 77482</a> <a href="attachment.cgi?id=77482&action=edit" title="sd-daemon.c: allow use of -lrt to be avoided">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=63167&attachment=77482'>[review]</a>
sd-daemon.c: allow use of -lrt to be avoided
In recent glibc, many commonly-used librt functions have moved
from librt to libc. This results in dbus' configure.ac
concluding that we don't need to link in librt. However,
sd-daemon.c needs it for mq_getattr(), causing the build
to fail.
dbus doesn't use POSIX message queues, so I'd prefer to be
able to avoid "if on Linux, link librt for sd-daemon.c".
---
See also <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - fails to build on Linux with recent glibc"
href="show_bug.cgi?id=63166">Bug #63166</a>.
Doing this in terms of "define this macro and the entire sd_is_mq() function
will disappear" would also be fine.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>