From owner-freebsd-ports@FreeBSD.ORG Sat Oct 20 18:35:09 2007 Return-Path: Delivered-To: ports@FreeBSD.org Received: from localhost (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with SMTP id 50AB916A418; Sat, 20 Oct 2007 18:35:07 +0000 (UTC) (envelope-from nork@FreeBSD.org) Date: Sun, 21 Oct 2007 03:35:05 +0900 From: Norikatsu Shigemura To: current@FreeBSD.org Message-Id: <20071021033505.48fec4a7.nork@FreeBSD.org> X-Mailer: Sylpheed 2.4.7 (GTK+ 2.10.14; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org Subject: new imported libpcap has net/bpf.h handling issue X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2007 18:35:09 -0000 I tried to install ports/net/pchar on 8-current machine. And I got following compiling error message:-(. c++ -O -fno-strict-aliasing -pipe -march=pentium3 -I. -DSIZEOF_BOOL=1 -DHAVE_SOCKLEN_T=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_HERROR=1 -DHAVE_SNPRINTF=1 -DHAVE_LIBM=1 -DHAVE_IPV6=1 -DHAVE_PCAP=1 -DHAVE_LIBPCAP=1 -DHAVE_BPF=1 -c Pctest.cc -o Pctest.o Pctest.cc: In constructor 'Pctest::Pctest()': Pctest.cc:103: error: 'BIOCIMMEDIATE' was not declared in this scope So I research this issue. As the result, I found a issue which is that new pcap.h doesn't #include . I don't have any idea to fix this issue. Anyone, please fix this issue:-). --- src/contrib/libpcap/pcap.h 2006/09/04 19:54:21 1.12 +++ src/contrib/libpcap/pcap.h 2007/10/16 02:07:55 1.13 @@ -32,7 +32,7 @@ * SUCH DAMAGE. * * $FreeBSD$ - * @(#) $Header: /home/ncvs/src/contrib/libpcap/pcap.h,v 1.12 2006/09/04 19:54:21 sam Exp $ (LBL) + * @(#) $Header: /home/ncvs/src/contrib/libpcap/pcap.h,v 1.13 2007/10/16 02:07:55 mlaier Exp $ (LBL) */ #ifndef lib_pcap_h @@ -41,7 +41,9 @@ #include #include -#include +#ifndef PCAP_DONT_INCLUDE_PCAP_BPF_H +#include +#endif #include