1.6.5 does not link against systemd
# systemctl start knot
Job for knot.service failed. See 'systemctl status knot.service' and 'journalctl -xn' for details.
However, knotd runs just fine, there are no logs or warning is the logs.
At first glance it seems like systemd is not being notified that knotd has started.
# ldd /usr/lib64/libknot.so.0 | grep systemd; echo $?
1
Interesting, so I built 1.6.4 and 1.6.5 using the same method and machine configuration.
method:
./configure --enable-systemd=yes
make -j4
Result
$ ldd knot-1.6.5/src/.libs/libknot.so.0.0.1 | grep systemd
$ ldd knot-1.6.4/src/.libs/libknot.so.0.0.1 | grep systemd
libsystemd-daemon.so.0 => /lib64/libsystemd-daemon.so.0 (0x00007f850f6bd000)
libsystemd-journal.so.0 => /lib64/libsystemd-journal.so.0 (0x00007f850f49f000)
libsystemd-id128.so.0 => /lib64/libsystemd-id128.so.0 (0x00007f850f299000)
Additional Info:
# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
$ rpm -qa | grep gcc
gcc-c++-4.8.3-9.el7.x86_64
gcc-4.8.3-9.el7.x86_64
# Package installed for build
Oct 24 11:10:33 Installed: protobuf-2.5.0-7.el7.x86_64
Oct 24 11:10:33 Installed: protobuf-compiler-2.5.0-7.el7.x86_64
Oct 24 11:10:34 Installed: protobuf-c-1.0.1-1.el7.x86_64
Oct 24 11:10:34 Installed: fstrm-0.2.0-1.el7.x86_64
Oct 24 11:10:35 Installed: lmdb-0.9.13-2.el7.x86_64
Oct 24 11:10:35 Installed: lmdb-devel-0.9.13-2.el7.x86_64
Oct 24 11:10:36 Installed: fstrm-devel-0.2.0-1.el7.x86_64
Oct 24 11:10:36 Installed: protobuf-c-devel-1.0.1-1.el7.x86_64
Oct 24 11:10:37 Installed: userspace-rcu-devel-0.7.9-1.el7.x86_64
Oct 24 11:10:37 Installed: flex-2.5.37-3.el7.x86_64
Oct 24 11:10:38 Installed: libidn-devel-1.28-3.el7.x86_64
Oct 24 11:10:39 Installed: bison-2.7-4.el7.x86_64
Oct 24 11:10:40 Installed: systemd-devel-208-20.el7_1.6.x86_64
Oct 24 11:10:41 Installed: libcap-ng-devel-0.7.3-5.el7.x86_64