From owner-freebsd-questions Thu Feb 11 09:42:39 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA18187 for freebsd-questions-outgoing; Thu, 11 Feb 1999 09:42:39 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pmpro.com (dyn000979.belt.digex.net [199.125.236.217]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA18113 for ; Thu, 11 Feb 1999 09:42:12 -0800 (PST) (envelope-from thomas@pmpro.com) Received: from squash.pmpro.com (squash.pmpro.com [192.168.201.254]) by pmpro.com (8.6.13/8.6.12) with SMTP id MAA28844 for ; Thu, 11 Feb 1999 12:39:30 -0500 Message-Id: <3.0.6.32.19990211124559.00a3d7d0@pmpro.com> X-Sender: thomas@pmpro.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Thu, 11 Feb 1999 12:45:59 -0500 To: freebsd-questions@FreeBSD.ORG From: Mark Thomas Subject: IPFILTER - Can't be made? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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