From owner-freebsd-stable Mon Jun 17 10:21:30 2002 Delivered-To: freebsd-stable@freebsd.org Received: from grant.org (grant.org [206.190.164.98]) by hub.freebsd.org (Postfix) with ESMTP id E2A8F37B40F for ; Mon, 17 Jun 2002 10:21:24 -0700 (PDT) Received: from splat.grant.org (mgrant@splat.grant.org [213.39.2.177]) by grant.org (8.11.6/8.11.6) with ESMTP id g5HHLMk61536 for ; Mon, 17 Jun 2002 13:21:22 -0400 (EDT) (envelope-from mgrant@splat.grant.org) Received: (from mgrant@localhost) by splat.grant.org (8.11.6+Sun/8.11.6) id g5HHKN108114; Mon, 17 Jun 2002 19:20:23 +0200 (MEST) Date: Mon, 17 Jun 2002 19:20:23 +0200 (MEST) Message-Id: <200206171720.g5HHKN108114@splat.grant.org> From: Michael Grant To: freebsd-stable@freebsd.org Subject: making kernel with ipfilter Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm still having trouble making a 4.6 kernel with ipfilter (using the version in the contrib directory. When I cvsup RELENG_4_6, I get the following files (note the dates): ls -l /usr/src/sys/contrib/ipfilter/netinet/ total 408 -rw-r--r-- 1 root wheel 49761 Apr 27 13:37 fil.c -rw-r--r-- 1 root wheel 13692 Apr 27 13:37 ip_auth.c -rw-r--r-- 1 root wheel 1564 Apr 27 13:37 ip_auth.h -rw-r--r-- 1 root wheel 34148 Apr 27 13:37 ip_compat.h -rw-r--r-- 1 root wheel 46942 Apr 27 13:37 ip_fil.c -rw-r--r-- 1 root wheel 21840 Apr 27 13:37 ip_fil.h -rw-r--r-- 1 root wheel 13789 Apr 27 13:37 ip_frag.c -rw-r--r-- 1 root wheel 1905 Apr 27 13:37 ip_frag.h -rw-r--r-- 1 root wheel 19942 Apr 27 13:37 ip_ftp_pxy.c -rw-r--r-- 1 root wheel 6891 Apr 27 13:37 ip_h323_pxy.c -rw-r--r-- 1 root wheel 6940 Apr 27 13:37 ip_ipsec_pxy.c -rw-r--r-- 1 root wheel 10886 Apr 27 13:37 ip_log.c -rw-r--r-- 1 root wheel 70882 Apr 27 13:37 ip_nat.c -rw-r--r-- 1 root wheel 8826 Apr 27 13:37 ip_nat.h -rw-r--r-- 1 root wheel 3252 Apr 27 13:37 ip_netbios_pxy.c -rw-r--r-- 1 root wheel 12032 Apr 27 13:37 ip_proxy.c -rw-r--r-- 1 root wheel 4559 Apr 27 13:37 ip_proxy.h -rw-r--r-- 1 root wheel 7177 Apr 27 13:37 ip_raudio_pxy.c -rw-r--r-- 1 root wheel 3690 Apr 27 13:37 ip_rcmd_pxy.c -rw-r--r-- 1 root wheel 54294 Apr 27 13:37 ip_state.c -rw-r--r-- 1 root wheel 5621 Apr 27 13:37 ip_state.h -rw-r--r-- 1 root wheel 324 Apr 27 13:37 ipl.h -rw-r--r-- 1 root wheel 6238 Apr 27 13:37 mlfk_ipl.c These files appear to be quite old relative to what's in /usr/src/contrib/ipfilter. When building a kernel, the old version of these files are included and the build bombs out here: cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 /usr/src/sys/contrib/ipfilter/netinet/ip_proxy.c In file included from /usr/src/sys/contrib/ipfilter/netinet/ip_proxy.c:102: /usr/src/sys/netinet/ip_ipsec_pxy.c: In function `ippr_ipsec_new': /usr/src/sys/netinet/ip_ipsec_pxy.c:49: too many arguments to function `nat_outlookup' /usr/src/sys/netinet/ip_ipsec_pxy.c:60: structure has no member named `ipsc_spi' /usr/src/sys/netinet/ip_ipsec_pxy.c:88: warning: passing arg 1 of `nat_new' from incompatible pointer type /usr/src/sys/netinet/ip_ipsec_pxy.c:88: warning: passing arg 3 of `nat_new' from incompatible pointer type /usr/src/sys/netinet/ip_ipsec_pxy.c:88: too few arguments to function `nat_new' /usr/src/sys/netinet/ip_ipsec_pxy.c:90: too few arguments to function `fr_addstate' /usr/src/sys/contrib/ipfilter/netinet/ip_proxy.c: At top level: /usr/src/sys/contrib/ipfilter/netinet/ip_proxy.c:122: `ippr_ipsec_del' undeclared here (not in a function) /usr/src/sys/contrib/ipfilter/netinet/ip_proxy.c:122: initializer element is not constant /usr/src/sys/contrib/ipfilter/netinet/ip_proxy.c:122: (near initialization for `ap_proxies[3].apr_del') /usr/src/sys/contrib/ipfilter/netinet/ip_proxy.c:123: `ippr_ipsec_match' undeclared here (not in a function) /usr/src/sys/contrib/ipfilter/netinet/ip_proxy.c:123: initializer element is not constant /usr/src/sys/contrib/ipfilter/netinet/ip_proxy.c:123: (near initialization for `ap_proxies[3].apr_match') *** Error code 1 So, 2 questions: 1) How do I get around this problem, am I (as usual) the only one having it? 2) What's the right way to build a kernel using the latest ipfilter (3.4.28) *and* use the files in /usr/src rather than the ones installed in /usr/sys (which is 4.5 because I haven't installed 4.6 yet). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message