Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 1999 12:45:59 -0500
From:      Mark Thomas <thomas@pmpro.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   IPFILTER - Can't be made?
Message-ID:  <3.0.6.32.19990211124559.00a3d7d0@pmpro.com>

next in thread | raw e-mail | index | archive | help

I'm trying to build ipfilter and I'm running into a few build problems.
Here are the two courses I've tried without success, and the results. All
this is on a machine that was successfully cvsupped (from
cvsup4.freebsd.org)/build world on February 10th running full elf. I'm
about 99% sure the kernel is configured correctly to support ipfilter.

1. Using /usr/src/contrib/ipfilter, and following the directions in
INST.FreeBSD-2.2. Results are below marked TRY 1.

There is no BSD subdirectory here, which appears to be a problem.

I've also tried rebuilding this directory from scratch by ftp'ing it from
ftp.freebsd.org. Same results.

2. Using ip-fil3.2.10.tar.gz downloaded from the main ipfilter site. Again
following INST.FreeBSD-2.2. Results are below marked TRY 2. This one is a
bit beyond me.

If anyone out there can shed some light on this or point to a method for
installing ipfilter that works, it would be greatly appreciated.

-------------- TRY 1 -------------------

bash-2.02# make freebsd22 IPFILKERN=SCIMITAR-IPFILTER
if [ ! -d netinet -o ! -f netinet/done ] ; then  mkdir -p netinet;  (cd
netinet; ln -s ../*.h .; ln -s ../ip_ftp_pxy.c .);  (cd netinet; ln -s
../ipsend/tcpip.h tcpip.h);  touch netinet/done;  fi
make setup "TARGOS=BSD" "CPUDIR=`uname -s|sed -e 's@/@@g'`-`uname
-r`-`uname -m`"
if [ ! -d BSD/FreeBSD-3.1-BETA-i386 ] ; then mkdir
BSD/FreeBSD-3.1-BETA-i386; fi
mkdir: BSD/FreeBSD-3.1-BETA-i386: No such file or directory
*** Error code 1 (ignored)
rm -f BSD/FreeBSD-3.1-BETA-i386/Makefile
BSD/FreeBSD-3.1-BETA-i386/Makefile.ipsend
ln -s ../Makefile BSD/FreeBSD-3.1-BETA-i386/Makefile
ln: BSD/FreeBSD-3.1-BETA-i386/Makefile: No such file or directory
*** Error code 1 (ignored)
ln -s ../Makefile.ipsend BSD/FreeBSD-3.1-BETA-i386/Makefile.ipsend
ln: BSD/FreeBSD-3.1-BETA-i386/Makefile.ipsend: No such file or directory
*** Error code 1 (ignored)
rm -f BSD/`uname -s|sed -e 's@/@@g'`-`uname -r`-`uname -m`/ioconf.h
ln: BSD/FreeBSD-3.1-BETA-i386: No such file or directory
*** Error code 1

Stop.

-------------- TRY 2 -------------------

bash-2.02# make freebsd22 IPFILKERN=SCIMITAR-IPFILTER
if [ ! -f netinet/done ] ; then  (cd netinet; ln -s ../*.h .; ln -s
../ip_ftp_pxy.c .);  (cd netinet; ln -s ../ipsend/tcpip.h tcpip.h);  touch
netinet/done;  fi
make setup "TARGOS=BSD" "CPUDIR=`uname -s|sed -e 's@/@@g'`-`uname
-r`-`uname -m`"
if [ ! -d BSD/FreeBSD-3.1-BETA-i386 ] ; then mkdir
BSD/FreeBSD-3.1-BETA-i386; fi
rm -f BSD/FreeBSD-3.1-BETA-i386/Makefile
BSD/FreeBSD-3.1-BETA-i386/Makefile.ipsend
ln -s ../Makefile BSD/FreeBSD-3.1-BETA-i386/Makefile
ln -s ../Makefile.ipsend BSD/FreeBSD-3.1-BETA-i386/Makefile.ipsend
rm -f BSD/`uname -s|sed -e 's@/@@g'`-`uname -r`-`uname -m`/ioconf.h
make freebsd
if [ ! -f netinet/done ] ; then  (cd netinet; ln -s ../*.h .; ln -s
../ip_ftp_pxy.c .);  (cd netinet; ln -s ../ipsend/tcpip.h tcpip.h);  touch
netinet/done;  fi
make setup "TARGOS=BSD" "CPUDIR=`uname -s|sed -e 's@/@@g'`-`uname
-r`-`uname -m`"
if [ ! -d BSD/FreeBSD-3.1-BETA-i386 ] ; then mkdir
BSD/FreeBSD-3.1-BETA-i386; fi
rm -f BSD/FreeBSD-3.1-BETA-i386/Makefile
BSD/FreeBSD-3.1-BETA-i386/Makefile.ipsend
ln -s ../Makefile BSD/FreeBSD-3.1-BETA-i386/Makefile
ln -s ../Makefile.ipsend BSD/FreeBSD-3.1-BETA-i386/Makefile.ipsend
(cd BSD/`uname -s|sed -e 's@/@@g'`-`uname -r`-`uname -m`; make build
TOP=../.. "BINDEST=/usr/local/bin" "SBINDEST=/sbin" "MANDIR=/usr/local/man"
 'CFLAGS=-I$(TOP) ' "IPFLKM=-DIPFILTER_LKM"  "IPFLOG=-DIPFILTER_LOG"
"LOGFAC=-DLOGFAC=LOG_LOCAL0" "POLICY=-DIPF_DEFAULT_PASS=FR_PASS"
"SOLARIS2=" "DEBUG=-g" "DCPU=`uname -m`"  "CPUDIR=`uname -s|sed -e
's@/@@g'`-`uname -r`-`uname -m`"  "ML=mlf_ipl.c"; cd ..)
cc -g -I../..  -c ../../ipf.c -o ipf.o
cc -g -I../..  -c ../../parse.c -o parse.o
In file included from ../../parse.c:33:
../../ip_fil.h:388: warning: `struct ifnet' declared inside parameter list
../../ip_fil.h:388: warning: its scope is only this definition or declaration,
../../ip_fil.h:388: warning: which is probably not what you want.
../../ip_fil.h:389: warning: `struct ifnet' declared inside parameter list
cc -g -I../..  -c ../../opt.c -o opt.o
cc -g -I../..  ipf.o parse.o opt.o -o ipf 
/bin/rm -f ../../ipf
ln -s `pwd`/ipf ../..
cc -g -I../..  -c ../../fils.c -o fils.o
In file included from ../../fils.c:35:
../../netinet/ip_fil.h:388: warning: `struct ifnet' declared inside
parameter list
../../netinet/ip_fil.h:388: warning: its scope is only this definition or
declaration,
../../netinet/ip_fil.h:388: warning: which is probably not what you want.
../../netinet/ip_fil.h:389: warning: `struct ifnet' declared inside
parameter list
cc -g -I../..  -c ../../kmem.c -o kmem.o
cc -g -I../..  fils.o parse.o kmem.o opt.o -o ipfstat 
cc -g -I../..  -c ../../ipt.c -o ipt.o
cc -g -I../..  -c ../../fil.c -o fil.o
cc -g -I../..  -c ../../ipft_sn.c -o ipft_sn.o
cc -g -I../..  -c ../../ipft_ef.c -o ipft_ef.o
cc -g -I../..  -c ../../ipft_td.c -o ipft_td.o
cc -g -I../..  -c ../../ipft_pc.c -o ipft_pc.o
cc -g -I../..  -c ../../ipft_tx.c -o ipft_tx.o
cc -g -I../..  -c ../../misc.c -o misc.o
cc -g -I../..  -c ../../ip_frag.c -o ip_frag_u.o
cc -g -I../..  -c ../../ip_state.c -o ip_state_u.o
cc -g -I../..  -c ../../ip_nat.c -o ip_nat_u.o
cc -g -I../..  -c ../../ip_proxy.c -o ip_proxy_u.o
cc -g -I../..  -c ../../ip_auth.c -o ip_auth_u.o
In file included from ../../ip_auth.c:78:
/usr/include/netinet/in_var.h:49: field `ia_ifa' has incomplete type
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

-----
Mark
Mark Thomas -- pmpro, inc. -- thomas@pmpro.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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