Subject: ipfm not compile in NetBSD 2
To: None <netbsd-users@netbsd.org>
From: Roberto Pereyra <netbsd@contenidosonline.com.ar>
List: netbsd-users
Date: 01/18/2005 17:56:34
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

The web page of ipfm say that works with NetBSD ( I can't contact ipfm author 
because his mailist not work)

What's happens, can anybody help me ?


./configure 

loading cache ./config.cache
Configuring ipfm 0.11.5...

checking for uname... (cached) uname
checking your OS... checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking for ranlib... (cached) ranlib
checking for bison... no
checking for byacc... no
checking for ar... (cached) /usr/bin/ar
checking for local libpcap... no
checking for main in -lpcap... (cached) yes
checking for pcap.h... (cached) yes
checking for strftime... yes
checking for snprintf... yes
checking for lockf... yes
checking for flock... yes
checking for daemon... (cached) yes
checking for strlcat... (cached) yes
checking for strlcpy... (cached) yes
checking for inet_aton... (cached) yes
checking for inet_ntoa... (cached) yes
checking for ANSI C header files... (cached) yes
checking for u_int32_t... (cached) yes
checking for u_int8_t... (cached) yes
creating ./config.status
creating Makefile
creating Makefile.common
creating source/Makefile
creating source/missing/Makefile
creating doc/Makefile
creating source/config.h
source/config.h is unchanged

Configuration:
   ipfm is in               /usr/local/sbin
   man pages are in         /usr/local/man
   configuration file is    /usr/local/etc/ipfm.conf
   pid file is              /usr/local/var/run/ipfm.pid
   log files are            /usr/local/var/log/ipfm/%d-%b.%H-%M

Please check this is correct and modify Makefile.common
and source/config.h in consequence.
You can now type `` make ''.


And whe I type "make"

gcc -g -O2  -Wall  -O2       
-DDEFAULT_OPTIONS_PIDFILE=\"/usr/local/var/run/ipfm.pid\"  
-DDEFAULT_OPTIONS_CONFIGFILE=\"/usr/local/etc/ipfm.conf\"  
-DDEFAULT_OPTIONS_LOGFILE=\"/usr/local/var/log/ipfm/%d-%b.%H-%M\"   -c pcap.c
*** Error code 1

Stop.
make: stopped in /home/rpereyra/ipfm/ipfm-0.11.5/source
*** Error code 1

Stop.
make: stopped in /home/rpereyra/ipfm/ipfm-0.11.5

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'