Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557586 - net-firewall/iptables[-pcap] - build fails with "configure: error: missing libpcap library required by bpf compiler or nfsynproxy tool"
Summary: net-firewall/iptables[-pcap] - build fails with "configure: error: missing li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://marc.info/?l=netfilter-devel&...
Whiteboard:
Keywords:
: 557594 557828 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-14 15:38 UTC by Sam Jorna (wraeth)
Modified: 2015-08-15 18:20 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,7.95 KB, text/x-log)
2015-08-14 15:38 UTC, Sam Jorna (wraeth)
Details
Config log (config.log,34.10 KB, text/x-log)
2015-08-14 15:39 UTC, Sam Jorna (wraeth)
Details
Emerge info (emerge-info.txt,5.09 KB, text/plain)
2015-08-14 15:41 UTC, Sam Jorna (wraeth)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Jorna (wraeth) gentoo-dev 2015-08-14 15:38:39 UTC
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.
Comment 1 Sam Jorna (wraeth) gentoo-dev 2015-08-14 15:39:17 UTC
Created attachment 409004 [details]
Config log
Comment 2 Sam Jorna (wraeth) gentoo-dev 2015-08-14 15:41:15 UTC
Created attachment 409006 [details]
Emerge info
Comment 3 John Bowler 2015-08-14 17:25:25 UTC
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.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2015-08-15 09:22:25 UTC
*** Bug 557594 has been marked as a duplicate of this bug. ***
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2015-08-15 09:34:34 UTC
Just changing enable_bpfc and enable_nfsynproxy to $enableval will work.
Comment 6 Mike Gilbert gentoo-dev 2015-08-15 13:02:05 UTC
*** Bug 557828 has been marked as a duplicate of this bug. ***