Summary: | net-firewall/iptables[-pcap] - build fails with "configure: error: missing libpcap library required by bpf compiler or nfsynproxy tool" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam Jorna (wraeth) <wraeth> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | holger, jbowler, kuba.iluvatar, marco.napetti, proteuss, rhill, timo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://marc.info/?l=netfilter-devel&m=143966242002042&w=2 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log
Config log Emerge info |
Created attachment 409004 [details]
Config log
Created attachment 409006 [details]
Emerge info
From (my) build.log: ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --libdir=/usr/lib64 --sbindir=/sbin --libexecdir=/lib64 --enable-devel --enable-shared --disable-bpf-compiler --disable-static --enable-ipv6 OK: --disable-bpf-compiler, but then: checking for pcap_compile in -lpcap... no configure: error: missing libpcap library required by bpf compiler or nfsynproxy tool In the prepared (work) configure.ac: AC_ARG_ENABLE([bpf-compiler], AS_HELP_STRING([--enable-bpf-compiler], [Build bpf compiler]), [enable_bpfc="yes"], [enable_bpfc="no"]) From the autoconf manual page: http://www.gnu.org/software/autoconf/manual/autoconf.html#index-AC_005fARG_005fENABLE-1944 — Macro: AC_ARG_ENABLE (feature, help-string, [action-if-given], [action-if-not-given]) So "--disable-bpf-compiler" actually *ENABLES* the bpf compiler. Likewise the nfsynproxy --enable option, but some of the others are correct (using 'enableval'). I think they can all be changed to: AC_ARG_ENABLE([option],AS_HELP_STRING(...),,) the tests only seem to check for 'yes', so the empty string and 'no' are equivalent. *** Bug 557594 has been marked as a duplicate of this bug. *** Just changing enable_bpfc and enable_nfsynproxy to $enableval will work. *** Bug 557828 has been marked as a duplicate of this bug. *** |
Created attachment 409002 [details] Build log With USE="-pcap" iptables fails to build as it still depends on libpcap but it wasn't brought in as a dependency.