The latest stable net-dialup/ppp fails to build when USEing the activefilter option. Compilation error is demand.c:37:21: net/bpf.h: No such file or directory make[1]: *** [demand.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/usr/portage/tmp/portage/ppp-2.4.1-r14/work/ppp-2.4.1.pppoe4/pppd' make: *** [all] Error 2 !!! ERROR: net-dialup/ppp-2.4.1-r14 failed. !!! Function src_compile, Line 86, Exitcode 2 !!! (no error message) Downgrading to net-libs/libpcap-0.7.2-r1 fixes problem (noticed problem when libpcap was upgraded to 0.8.3). Reproducible: Always Steps to Reproduce: 1. emerge net-libs/libpcap 2. USE=activefilter emerge net-dialup/ppp Actual Results: emerge of net-dialup/ppp fails with error demand.c:37:21: net/bpf.h: No such file or directory Expected Results: Successful emerging of net-dialup/ppp Gentoo Base System version 1.4.10 Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.26) ================================================================= System uname: 2.4.26 i686 Pentium Pro Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentiumpro -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentiumpro -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo ftp://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2 -l2.5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/portage/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx X apm avi berkdb crypt emacs encode foomaticdb gdbm gif gtk gtk2 imlib java jpeg libg++ libwww mad mikmod mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl spell ssl truetype voodoo3 x86 xml2 xmms xv zlib"
I heard of this in gentoo-user.de two weeks ago. Karsten Keil (SuSE) was cited that the libpcap maintainers had removed inbound/outbound for ppp, because it isn't part of the ppp spec. It works with 0.7.2 but not with newer versions.
The compilation error is caused by the header file net/bpf.h being renamed to pcap-bpf.h in the newer version of libpcap. ppp-2.4.2 seems to have a fix (see net-dialup/ppp/files/2.4.2/pcap.patch) but is not marked as stable. No idea if the thing will actually work properly when compilation is fixed!
forget #1, it was about the use of inbound/outbound. Thx for correction, Mark.
Created attachment 39923 [details, diff] pcap.patch patch to be included in /usr/portage/net-dialup/ppp/files
Created attachment 39924 [details, diff] modification in ppp-2.4.1-r14.ebuild
added the patch