can't compile kernel without bpf; isc-dhcpv2

Ivan Dolezal ivan.dolezal at vsb.cz
Fri Oct 3 12:42:45 CEST 2003


Hello and thank you for replies in advance:

For some reasons (that I have no influence on) I have to run ISC DHCPDv2 
on server. Unlike v3, v2 is not part of ports. I can still compile it 
smoothly, but when the daemon is running, it takes over all memory and 
CPU within two hours (on 500 MHz, 256 MB).

I forgot to write: the same problem occurs on 4.8 and 5.1-p2. And yes, I 
compiled my kernel with bpf as required.

Oh, this is another, even worse problem: I am not able to compile the 
5.1 kernel without bpf on some other system - it ends up saying:
...
sh /usr/src/sys/conf/newvers.sh KOCOUR
cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I. 
-I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sys/contrib/dev/acpica 
-I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h 
-fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 
-ffreestanding -Werror  vers.c
linking kernel
if_ieee80211subr.o: In function `ieee80211_ifattach':
if_ieee80211subr.o(.text+0x63): undefined reference to `bpfattach2'
*** Error code 1


All I did was taking GENERIC, uncommenting
options         INVARIANTS              #Enable calls of extra sanity 
checking
options         INVARIANT_SUPPORT       #Extra sanity checks of internal 
structures, required by INVARIANTS
...as this has been a workaround for some bugs in recent advisories,
commenting device bpf and changing ident.


Does anybody have some experience with any of that, please?


Ivan Dolezal


PS: I wrote an e-mail like this yesterday, but without subscribing 
first. I couldn't find it in browsable archive, so I am writing that 
again. Sorry for bothering if you got this twice.





More information about the Users-l mailing list