libpcap install problem.

Dan Nelson dnelson at allantgroup.com
Fri Jun 27 07:17:32 PDT 2003


In the last episode (Jun 27), David Markle said:
> Same error from /usr/sec/lib/libpcap  ...
> 
> # pwd
> /usr/src/lib/libpcap
> # make obj ; make ; make install cc -O -pipe -mcpu=pentiumpro -DHAVE_CONFIG_H -Dyylval=pcap_lval -I/usr/src/lib/libpcap -I. -DINET6 -I/usr/src/lib/libpcap/../../contrib/libpcap  -c
> /usr/src/lib/libpcap/../../contrib/libpcap/pcap-bpf.c -o pcap-bpf.o
> /usr/src/contrib/libpcap/pcap-bpf.c: In function `pcap_open_live':
> /usr/src/contrib/libpcap/pcap-bpf.c:207: storage size of `bdl' isn't known
> /usr/src/contrib/libpcap/pcap-bpf.c:334: `BIOCGDLTLIST' undeclared (first use in this function)
> /usr/src/contrib/libpcap/pcap-bpf.c:334: (Each undeclared identifier is reported only once
> /usr/src/contrib/libpcap/pcap-bpf.c:334: for each function it appears in.)
> /usr/src/contrib/libpcap/pcap-bpf.c: In function `pcap_set_datalink':
> /usr/src/contrib/libpcap/pcap-bpf.c:487: `BIOCSDLT' undeclared (first use in this function)
> *** Error code 1

BIOCGDLTLIST was added to /sys/net/bpf.h after 5.0 was released, which
means you'll have to install a new kernel and copy its includes ( cd
into /usr/src/include and run "make copies" ) before libpcap will
build.

If you're planning on building more than just libpcap, you might want
to just make world instead of trying to figure out what needs to be
updated for each thing you build to work.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list