On 29/03/2021 20:51, Tuomo Soini via nsd-users wrote: Hi Tuomo,> This some years old bug is still there, you need to autoreconf --force > before build to build with systemd, configure gives this error: > > checking whether gcc supports -Wno-address-of-packed-member... yes > configure: error: systemd enabled but need pkg-config to configure for > it, also, run aclocal before autoconf, or run autoreconf to include > pkgconfig macrosI don't think there's any bug. I just built an RPM of this version of NSD on a CentOS 7 system, and it built without any problems. You do need to ensure that you have all the NSD build dependencies installed. Perhaps you are missing some of those dependencies. Which distribution are you trying to build on, and how? Regards, Anand
If you used the fedora or centos spec file, it has my workaround in it. Then try to remove the autoconf call. If you used a different spec file, please share because then I?m curious what the difference is. Sent from my iPhone> On Mar 29, 2021, at 18:14, Anand Buddhdev via nsd-users <nsd-users at lists.nlnetlabs.nl> wrote: > > ?On 29/03/2021 20:51, Tuomo Soini via nsd-users wrote: > > Hi Tuomo, > >> This some years old bug is still there, you need to autoreconf --force >> before build to build with systemd, configure gives this error: >> >> checking whether gcc supports -Wno-address-of-packed-member... yes >> configure: error: systemd enabled but need pkg-config to configure for >> it, also, run aclocal before autoconf, or run autoreconf to include >> pkgconfig macros > > I don't think there's any bug. I just built an RPM of this version of > NSD on a CentOS 7 system, and it built without any problems. You do need > to ensure that you have all the NSD build dependencies installed. > Perhaps you are missing some of those dependencies. Which distribution > are you trying to build on, and how? > > Regards, > Anand > _______________________________________________ > nsd-users mailing list > nsd-users at lists.nlnetlabs.nl > https://lists.nlnetlabs.nl/mailman/listinfo/nsd-users
On 30/03/2021 00:14, Anand Buddhdev via nsd-users wrote:>> checking whether gcc supports -Wno-address-of-packed-member... yes >> configure: error: systemd enabled but need pkg-config to configure for >> it, also, run aclocal before autoconf, or run autoreconf to include >> pkgconfig macros > > I don't think there's any bug. I just built an RPM of this version of > NSD on a CentOS 7 system, and it built without any problems. You do need > to ensure that you have all the NSD build dependencies installed. > Perhaps you are missing some of those dependencies. Which distribution > are you trying to build on, and how?Ah, I've just seen Wouter's fix. We're NOT building with --enable-systemd, so we don't encounter this issue. My apologies. Regards, Anand