Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 1997 09:14:31 +0800
From:      Andy <mfwong@mol.net.my>
To:        questions@freebsd.org
Subject:   [2.1R] Error compiling ip_fil3.1.7, help
Message-ID:  <33026AF7.1B02@mol.net.my>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33026AF7.1B02>