Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 663618

Summary: net-dns/nsd-4.1.24 : configure: error: systemd enabled but need pkg-config to configure for it, also, run aclocal before autoconf, or run autoreconf to include pkgconfig macros
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED FIXED    
Severity: normal CC: floppym
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-dns:nsd-4.1.24:20180814-161406.log
temp.tbz2

Description Toralf Förster gentoo-dev 2018-08-14 16:37:34 UTC
checking for OPENSSL_init_crypto... no
checking for OPENSSL_init_ssl... no
configure: error: systemd enabled but need pkg-config to configure for it, also, run aclocal before autoconf, or run autoreconf to include pkgconfig macros

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-dns/nsd-4.1.24/work/nsd-4.1.24/config.log

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome-systemd_test_20180809-181720

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.8.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv net-dns/nsd
[ebuild  N    ] net-dns/nsd-4.1.24  USE="ipv6 nsec3 ssl systemd -bind8-stats -libevent -libressl -minimal-responses -mmap -munin -ratelimit -root-server -runtime-checks"
Comment 1 Toralf Förster gentoo-dev 2018-08-14 16:37:37 UTC
Created attachment 543428 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-08-14 16:37:40 UTC
Created attachment 543430 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-08-14 16:37:43 UTC
Created attachment 543432 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-08-14 16:37:46 UTC
Created attachment 543434 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-08-14 16:37:49 UTC
Created attachment 543436 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-08-14 16:37:52 UTC
Created attachment 543438 [details]
net-dns:nsd-4.1.24:20180814-161406.log
Comment 7 Toralf Förster gentoo-dev 2018-08-14 16:37:55 UTC
Created attachment 543440 [details]
temp.tbz2
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-08-14 20:15:19 UTC
The ebuild contains

DEPEND="systemd? ( virtual/pkgconfig )"

so I wonder why you ended up with no pkgconfig provider being installed...
Comment 9 Mike Gilbert gentoo-dev 2018-08-16 17:30:12 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #8)

The configure script is broken. The pkg-config program is never tested or invoked.

Probably whoever last ran autoreconf was missing the /usr/share/aclocal/pkg.m4 file.
Comment 10 Mike Gilbert gentoo-dev 2018-08-16 17:32:10 UTC
Calling eautoreconf from src_prepare resolves the issue.
Comment 11 Larry the Git Cow gentoo-dev 2018-08-16 19:55:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16368735abd754bfe34489f916b4b43a5252fcc2

commit 16368735abd754bfe34489f916b4b43a5252fcc2
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-08-16 19:55:09 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-08-16 19:55:09 +0000

    net-dns/nsd: Fixed configure run with USE="systemd"
    
    Closes: https://bugs.gentoo.org/663618
    Package-Manager: Portage-2.3.46, Repoman-2.3.10

 net-dns/nsd/nsd-4.1.24.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)