Subject: Re: ipfm not compile in NetBSD 2
To: None <netbsd-users@netbsd.org>
From: Peter Postma <peter@pointless.nl>
List: netbsd-users
Date: 01/19/2005 14:13:47
On Tue, Jan 18, 2005 at 05:56:34PM -0300, Roberto Pereyra wrote:
> Hi all
> 
> I trying to compile the latest stable ipfm (bandwidth account per ip) in 
> NetBSD 2 and have many errors:
> 
> I using NetBSD 2.0 and the operating system use libpcap 0.4
> 

[snip]

> pcap.c: In function `closepcap':
> pcap.c:170: warning: passing arg 1 of `pcap_freecode' from incompatible 
> pointer type
> pcap.c:170: error: too few arguments to function `pcap_freecode'
> 

The pcap_freecode function doesn't really exists in libpcap 0.4 (only its
prototype, but with two arguments instead of one).

Try to compile with a newer libpcap, you may want use this pkgsrc package
to do it: http://www.netbsd.org/~peter/pkgsrc/ipfm.tar.gz

-- 
Peter Postma