libsystemd not found an error

Yoshihito Horigome kometch at gmail.com
Tue Jul 31 14:43:29 UTC 2018


Hello,

Wouter-san,
I delayed to reply.
When pkg-config is specified as below, configure now passes.
$ sudo ./configure --with-libevent --with-ssl --disable-static --sysconfdir=/etc/unbound --with-conf-file=/etc/unbound/unbound.conf --with-pidfile=/var/run/unbound.pid --enable-pie --enable-systemd --disable-rpath --enable-subnet PKG_CONFIG="/usr/bin/pkg-config"
However, when you run make, it will be build failed on the way as follows.
event -lcrypto -lsystemd -pthread
/usr/bin/ld: error: undefined symbol: sd_is_socket_sockaddr
>>> referenced by listen_dnsport.c:148 (services/listen_dnsport.c:148)
>>> .libs/listen_dnsport.o:(systemd_get_activated)
collect2: error: ld returned 1 exit status
Makefile:322: recipe for target 'unbound' failed
make: *** [unbound] Error 1

I am also worried about warnings appearing on the way as follows.
services/listen_dnsport.c: In function ‘systemd_get_activated’:
services/listen_dnsport.c:148:8: warning: implicit declaration of function ‘sd_is_socket_sockaddr’ [-Wimplicit-function-declaration]
if(sd_is_socket_sockaddr(
^~~~~~~~~~~~~~~~~~~~~

I tried it with commit of trunk @ 4820.
In this case, is there anything else you need to deal with?
Best regards.
On 6月 30 2018, at 11:02 午前, Yoshi Horigome <kometch at gmail.com> wrote:
>
> Hello,
> Attempting to configure r4762 is now "libsystemd not found".
> However, we have confirmed that libsystemd related packages are
> installed as follows.
>
> checking for libexpat... found in /usr
> checking for expat.h... yes
> checking whether XML_StopParser is declared... yes
> checking for libhiredis... checking for SYSTEMD... no
> checking for SYSTEMD_DAEMON... no
> configure: error: systemd enabled but libsystemd not found
>
> $ dpkg -l | grep libsystemd
> ii libsystemd-dev:armhf 232-25+deb9u3
> armhf systemd utility library - development files
> ii libsystemd0:armhf 232-25+deb9u3
> armhf systemd utility library
>
> environment:
> $ cat /etc/os-release
> PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
> NAME="Debian GNU/Linux"
> VERSION_ID="9"
> VERSION="9 (stretch)"
> ID=debian
> HOME_URL="https://www.debian.org/"
> SUPPORT_URL="https://www.debian.org/support"
> BUG_REPORT_URL="https://bugs.debian.org/"
>
> $ uname -sr
> Linux 4.14.18-sunxi
>
> At least, v1.7.3 confirms that configure will succeed.
> It seems that the periphery of pkg - config has been modified with
> r4757 etc, but is there anything related to this area?
> # I'm sorry. I had no ability to read the configure file.
>
> config.log
> https://pastebin.com/xd6QTbJ9
>
> Best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20180731/229471a6/attachment.htm>


More information about the Unbound-users mailing list