tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build kernel from source



On Mon, 22 Sep 2014, bycn82 wrote:
*Now I am building the npfctl, and I met below**
*
-Wsign-compare -Wformat=2 -Werror -I/usr/src/usr.sbin/npf/npfctl --sysroot=/ -c /usr/src/usr.sbin/npf/npfctl/npf_bpf_comp.c
In file included from /usr/src/usr.sbin/npf/npfctl/npf_bpf_comp.c:56:0:
/usr/src/usr.sbin/npf/npfctl/npf_bpf_comp.c: In function 'npfctl_bpf_table':
/usr/src/usr.sbin/npf/npfctl/npf_bpf_comp.c:610:21: error: 'BPF_COP' undeclared (first use in this function)
  BPF_STMT(BPF_MISC+BPF_COP, NPF_COP_TABLE),
                    ^
/usr/src/usr.sbin/npf/npfctl/npf_bpf_comp.c:610:21: note: each undeclared identifier is reported only once for each function it appears in
*** Error code 1

Stop.
make: stopped in /usr/src/usr.sbin/npf/npfctl

I suspect that you have a corrupted source tree. Please take this to current-users, not tech-kern.

*Can someone told me which header has the declaration of the BPF_COP ? **
**I found below only.*
# grep -R BPF_COP /usr/src
/usr/src/doc/CHANGES.prev: kernel: Add BPF coprocessor support (BPF_COP/BPF_COPX instructions).

It's in src/sys/net/bpf.h. If grep didn't find it then you have an incomplete source tree. Please fix that, and then if you still have build problems, ask in current-users.

--apb (Alan Barrett)



Home | Main Index | Thread Index | Old Index