From owner-freebsd-questions Wed Feb 12 17:21:35 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA08527 for questions-outgoing; Wed, 12 Feb 1997 17:21:35 -0800 (PST) Received: from molhub.mol.net.my (molhub.mol.net.my [202.190.128.10]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id RAA08521 for ; Wed, 12 Feb 1997 17:21:31 -0800 (PST) Received: from pc-55kl1.mol.net.my by molhub.mol.net.my; Thu, 13 Feb 97 09:20:40 +0800 Message-ID: <33026AF7.1B02@mol.net.my> Date: Thu, 13 Feb 1997 09:14:31 +0800 From: Andy Reply-To: mfwong@mol.net.my X-Mailer: Mozilla 3.0 (Win95; U) MIME-Version: 1.0 To: questions@freebsd.org Subject: [2.1R] Error compiling ip_fil3.1.7, help Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I'm (still) running 2.1R and have just ftp'ed ip_fil3.1.7. However when I compiled it, I got the following errors: if [ ! -d BSD/`uname -m` ] ; then mkdir BSD/`uname -m`; fi rm -f BSD/`uname -m`/Makefile BSD/`uname -m`/Makefile.ipsend ln -s ../Makefile BSD/`uname -m`/Makefile ln -s ../Makefile.ipsend BSD/`uname -m`/Makefile.ipsend (cd BSD/`uname -m`; make build "TOP=../.." "BINDEST=/usr/local/ip_fil3.1.1/bin" "SBINDEST=/usr/local/ip_fil3.1.1/sbin" "MANDIR=/usr/local/ip_fil3.1.1/man" "C C=gcc" 'CFLAGS=-I$(TOP) ' "IPFLKM=-DIPFILTER_LKM" "IPFLOG=-DIPFILTER_LOG" "LOG FAC=-DLOGFAC=LOG_LOCAL0" "POLICY=-DNOMATCH=FR_PASS" "SOLARIS2=" "DEBUG=-g" "AR CH=" ; cd ..) /bin/rm -f vnode_if.c gcc -I. -I../.. -DIPFILTER_LKM -DIPFILTER_LOG -D`uname -m` -D__`uname -m`__ -D INET -DKERNEL -D_KERNEL -I/usr/include -I/sys -I/sys/sys -I/sys/arch -DIPL_NAME =\"/dev/ipl\" -c ../../mln_ipl.c -o ml_ipl.o In file included from ../../mln_ipl.c:53: ../../ip_fil.h:84: field `fi_src' has incomplete type ../../ip_fil.h:85: field `fi_dst' has incomplete type ../../ip_fil.h:114: field `fd_ip' has incomplete type ../../ip_fil.h:115: `IFNAMSIZ' undeclared here (not in a function) ../../ip_fil.h:145: `IFNAMSIZ' undeclared here (not in a function) *** Error code 1 Stop. *** Error code 1 Stop. Can anyone tell mw what's going on ? Looked at /usr/include/net/if.h where IFNAMSIZ is #defined's as 16. Is it just a matter of #include that file in ip_fil.h to make it work as I do not want to do anything that is *not* intended by the author. How about fi_src, fi_dst and fd_ip ? Thanks in advance.