From owner-freebsd-stable@FreeBSD.ORG Mon May 4 15:29:48 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79381106567C for ; Mon, 4 May 2009 15:29:48 +0000 (UTC) (envelope-from yaol.leo@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by mx1.freebsd.org (Postfix) with ESMTP id 4115B8FC19 for ; Mon, 4 May 2009 15:29:48 +0000 (UTC) (envelope-from yaol.leo@gmail.com) Received: by rv-out-0506.google.com with SMTP id k40so3268580rvb.43 for ; Mon, 04 May 2009 08:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=O5us5LY8ma2RNFxog+lRtjUveuOZFIfFj2Dhpibpf4Q=; b=soQ4Qr7SLy9WY3TresMxXILyr4Lg/0xh5fnAJciA7EEnmiXVfyiRSOuEIEyUWvsE8T N6m9+15QH4afvluVmcwTStXD+U0iFGNwzzLQ07usoqb4fRnThE8Sc0jlpZovLkk3M90Q Lxv4YJja+4UM+vDUR47KOtpvFXWJ5DTXFQNIw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=FdAIcFQnE5Pms3gxXXR/SnncvNmEq2FsCVI+9d8r9Gpyb8jhyX6YRrt0AZoW+awhgO CZlYAI/FOf6/ccw4FImv2JN2ktZ/TU64YFPGL0jpNIHt673JWzdw6xJk/9LgCnIZaHMI YgROZ0e2jrA7jIE/tP37U1nDLnHlFtvpPgn7c= Received: by 10.141.198.2 with SMTP id a2mr2102000rvq.58.1241450987757; Mon, 04 May 2009 08:29:47 -0700 (PDT) Received: from ?10.75.238.84? ([64.104.127.198]) by mx.google.com with ESMTPS id k37sm15568212rvb.48.2009.05.04.08.29.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 04 May 2009 08:29:46 -0700 (PDT) Message-ID: <49FF09E1.5010306@gmail.com> Date: Mon, 04 May 2009 23:29:37 +0800 From: Leo User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Bruce Simpson References: <49FEC0AD.7090506@gmail.com> <49FF014F.7070107@incunabulum.net> In-Reply-To: <49FF014F.7070107@incunabulum.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Help! regarding libpcap. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2009 15:29:53 -0000 Bruce Simpson wrote: > Leo wrote: >> Hi Burce, >> At first, I'm sorry replay late. I've test build libpcap without >> ports and using same tar ball. The error message still output. >> >> SLT2# make >> gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c >> ./pcap-null.c >> ./pcap-null.c:43: error: conflicting types for 'pcap_activate' >> ./pcap/pcap.h:266: note: previous declaration of 'pcap_activate' was >> here >> *** Error code 1 > > Hi, > > I can't think what might be causing this for you... Do you have other > pcap libraries installed on the system? Perhaps a define is incorrect. > > Are you trying this on a 7.2 or a HEAD system? I believe 7.2, so that > should rule out changes in HEAD. > > Do you have BPF headers present on the system? Have you checked the > output of config.log? Do you have a bpf device in your kernel? > -- I think that might be it. The fix might be to specify > --with-pcap=bpf in CONFIGURE_ARGS in the port. > > I just built the port on an i386 system tracking RELENG_7 sources, and > couldn't reproduce this problem, although I have bpf in kernel there. > > thanks, > BMS > Hi Bruce, I don't have other pcap lib installed on this box. Previously installed a libpcap 0.9 on this box , But I've deleted this version. On my box, not enable BPF. Let me try if enable the feature. -Leo