Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 May 2009 23:29:37 +0800
From:      Leo <yaol.leo@gmail.com>
To:        Bruce Simpson <bms@incunabulum.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Help! regarding libpcap.
Message-ID:  <49FF09E1.5010306@gmail.com>
In-Reply-To: <49FF014F.7070107@incunabulum.net>
References:  <49FEC0AD.7090506@gmail.com> <49FF014F.7070107@incunabulum.net>

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



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