From owner-freebsd-questions@FreeBSD.ORG Fri Jun 27 07:17:32 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A419B37B401 for ; Fri, 27 Jun 2003 07:17:32 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id F375543FE5 for ; Fri, 27 Jun 2003 07:17:31 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h5REHUBT046017; Fri, 27 Jun 2003 09:17:30 -0500 (CDT) (envelope-from dan) Date: Fri, 27 Jun 2003 09:17:30 -0500 From: Dan Nelson To: David Markle Message-ID: <20030627141729.GC65335@dan.emsphone.com> References: <20030627033152.GB65335@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: questions@freebsd.org Subject: Re: libpcap install problem. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2003 14:17:32 -0000 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