[erlang-bugs] epmd_srv.c:(.text+0x830): undefined reference to `sd_listen_fds'

Lukas Larsson <>
Tue Apr 29 10:21:05 CEST 2014

On 29/04/14 09:00, Dirkjan Ochtman wrote:
> On Wed, Apr 23, 2014 at 6:05 PM, Dirkjan Ochtman <> wrote:
>> I looked at configure --help, but there doesn't seem to be anything
>> about systemd in there. However, I found references to systemd in e.g.
>> erts/configure.in. In Gentoo, we prefer to be explicit about
>> supporting installed libraries, so I wonder if there could be a
>> --disable/enable-systemd switch to configure, so that this can be
>> explicitly stated at configure time.
> There's a build log here:
> https://508366.bugs.gentoo.org/attachment.cgi?id=375456
> erts/config.log is here:
> https://bugs.gentoo.org/attachment.cgi?id=375958
> A user also remarked on the fact that there seems to be a version
> disparity here: "From what I can tell, erlang tries to link against
> libsystemd-daemon, but systemd-212-r2 only creates libsystemd." Or
> perhaps this is caused by the way we build systemd on Gentoo.
Thanks for the extra info, the logs confirm my suspicion that only the 
systemd header was found, but the library was not. From what I 
understand there are a couple of different ways that you include support 
for systemd, and at the moment we only support the dynamic library way.
> Anyway, from our point of view, automatic detection is really not what
> we want. We prefer to have explicit control over which parts we want,
> especially when those build-time options change what other packages
> the build depends on.

After thinking a bit more about it I agree with you. I'll disable it by 
default and fix the check so that also the lib check is done properly.

The fix will be part of the Erlang/OTP 17.1 release.

We do not have a test machine that uses systemd, would it be possibly 
for you to help me test the patch before I merge it into upstream git?


More information about the erlang-bugs mailing list