Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557828 - net-firewall/iptables-1.4.21-r2[-pcap] fails to configure while looking for libpcap
Summary: net-firewall/iptables-1.4.21-r2[-pcap] fails to configure while looking for l...
Status: RESOLVED DUPLICATE of bug 557586
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-15 10:23 UTC by Timo Rothenpieler
Modified: 2015-08-15 13:02 UTC (History)
0 users

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


Attachments
build.log (build.log,8.32 KB, text/x-log)
2015-08-15 10:23 UTC, Timo Rothenpieler
Details
config.log (config.log,33.54 KB, text/x-log)
2015-08-15 10:24 UTC, Timo Rothenpieler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Rothenpieler 2015-08-15 10:23:40 UTC
Created attachment 409056 [details]
build.log

Even with the pcap useflag unset, configure still fails, complaining about missing libpcap.
Comment 1 Timo Rothenpieler 2015-08-15 10:24:26 UTC
Created attachment 409058 [details]
config.log
Comment 2 Xiao Lin 2015-08-15 11:14:45 UTC
From configure script of iptables-1.4.21-r2:

if test "x$enable_bpfc" = "xyes" || test "x$enable_nfsynproxy" = "xyes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_compile in -lpcap" >&5
$as_echo_n "checking for pcap_compile in -lpcap... " >&6; }
......................................

So libcap check depends on either bpfc or nfsynproxy.

From the 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

bpf-compiler is disabled, but not nfsynproxy.

In iptables-1.4.21-r2.ebuild:

RDEPEND="
        conntrack? ( net-libs/libnetfilter_conntrack )
        netlink? ( net-libs/libnfnetlink )
        pcap? ( net-libs/libpcap )
"

No use flag related to nfsynproxy. 

Either add nfsynproxy use flag to depend on libpcap, or depend on libpcap unconditionally.

Temporary workaround without modify the ebuild is enabling the pcap use flag in package.use to pull in libcap
Comment 3 Xiao Lin 2015-08-15 11:22:34 UTC
libcap->libpcap in comment 2
Comment 4 Felix Janda 2015-08-15 11:27:13 UTC
Duplicate of bug 557586
Comment 5 Mike Gilbert gentoo-dev 2015-08-15 13:02:05 UTC

*** This bug has been marked as a duplicate of bug 557586 ***