Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2003 09:17:30 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        David Markle <davidmarkle@comcast.net>
Cc:        questions@freebsd.org
Subject:   Re: libpcap install problem.
Message-ID:  <20030627141729.GC65335@dan.emsphone.com>
In-Reply-To: <BDELILKGNFPFIMOJKDOIKEJGDCAA.davidmarkle@comcast.net>
References:  <20030627033152.GB65335@dan.emsphone.com> <BDELILKGNFPFIMOJKDOIKEJGDCAA.davidmarkle@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030627141729.GC65335>