From owner-freebsd-stable@FreeBSD.ORG Mon May 4 14:53:07 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 62903106566B for ; Mon, 4 May 2009 14:53:07 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 395478FC0C for ; Mon, 4 May 2009 14:53:07 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 9B1B03279C7; Mon, 4 May 2009 10:53:06 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 04 May 2009 10:53:06 -0400 X-Sasl-enc: U2PfHEs8azusvi2pBDiip+s8ZrlduKu77QyiBxG3gXdh 1241448786 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 18FAA1356D; Mon, 4 May 2009 10:53:06 -0400 (EDT) Message-ID: <49FF014F.7070107@incunabulum.net> Date: Mon, 04 May 2009 15:53:03 +0100 From: Bruce Simpson User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Leo References: <49FEC0AD.7090506@gmail.com> In-Reply-To: <49FEC0AD.7090506@gmail.com> 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 14:53:07 -0000 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