From owner-freebsd-ipfw@FreeBSD.ORG Sat May 5 19:08:38 2007 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B9FA16A401 for ; Sat, 5 May 2007 19:08:38 +0000 (UTC) (envelope-from jimsiff@yahoo.com) Received: from web55403.mail.re4.yahoo.com (web55403.mail.re4.yahoo.com [206.190.58.197]) by mx1.freebsd.org (Postfix) with SMTP id EFBB413C44C for ; Sat, 5 May 2007 19:08:37 +0000 (UTC) (envelope-from jimsiff@yahoo.com) Received: (qmail 2977 invoked by uid 60001); 5 May 2007 18:41:57 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=sz7J7ognCp8wcE2SGl371GLvqx0UefrSkqa6H/rLiS3lN1cWpBvje+CZQKH+6pbmeCVDGtlA0Tdueslylp+nC6hv/8L4Mst0GD/Oq2lWJK+o0Er7k/vSqDMvxc3CNAI+EDdwap49kTwU1RRQvoBYKE00gV52bATQlfIELQisigk=; X-YMail-OSG: a6eAt2cVM1k81T63RU2ao_KgJyEbZBUqKY0rKqijLV.O0q55Z4Ddz2Un89A9OKR2mcblRk4nRdA.eMRzHyGJNk6izlp20GFmC5igJrtRF8jXWr1X7GMj5tC6z_DceA-- Received: from [71.59.219.253] by web55403.mail.re4.yahoo.com via HTTP; Sat, 05 May 2007 11:41:57 PDT X-Mailer: YahooMailRC/478 YahooMailWebService/0.7.41.10 Date: Sat, 5 May 2007 11:41:57 -0700 (PDT) From: Jim Sifferle To: freebsd-ipfw@freebsd.org MIME-Version: 1.0 Message-ID: <339646.2974.qm@web55403.mail.re4.yahoo.com> Content-Type: text/plain; charset=ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Problem applying TOS/DSCP patch in 6.2 RELEASE X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 19:08:38 -0000 All, I'm having problems compiling ipfw on 6.2-RELEASE after patching with the TOS / DSCP patch referenced here http://www.freebsd.org/cgi/query-pr.cgi?pr=102471. The patch seems to apply okay with the following output: [root@demon /]# patch -p0 < ipfw_tos_dscp_20060824_1.diff Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -ru src/sbin/ipfw/ipfw.8 /usr/src/sbin/ipfw/ipfw.8 |--- src/sbin/ipfw/ipfw.8 Sat Jul 29 12:24:12 2006 |+++ /usr/src/sbin/ipfw/ipfw.8 Thu Aug 24 10:42:19 2006 -------------------------- Patching file /usr/src/sbin/ipfw/ipfw.8 using Plan A... Hunk #1 succeeded at 817 (offset -6 lines). Hunk #2 succeeded at 1275 (offset -6 lines). Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -ru src/sbin/ipfw/ipfw2.c /usr/src/sbin/ipfw/ipfw2.c |--- src/sbin/ipfw/ipfw2.c Mon Aug 7 23:32:57 2006 |+++ /usr/src/sbin/ipfw/ipfw2.c Thu Aug 24 10:14:10 2006 -------------------------- Patching file /usr/src/sbin/ipfw/ipfw2.c using Plan A... Hunk #1 succeeded at 133. Hunk #2 succeeded at 301. Hunk #3 succeeded at 337. Hunk #4 succeeded at 404. Hunk #5 succeeded at 443. Hunk #6 succeeded at 1583. Hunk #7 succeeded at 1894. Hunk #8 succeeded at 2674. Hunk #9 succeeded at 2685. Hunk #10 succeeded at 4008 (offset 5 lines). Hunk #11 succeeded at 4506 (offset 5 lines). Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -ru src/sys/netinet/ip_fw.h /usr/src/sys/netinet/ip_fw.h |--- src/sys/netinet/ip_fw.h Sat Jul 29 12:24:12 2006 |+++ /usr/src/sys/netinet/ip_fw.h Wed Aug 23 17:22:43 2006 -------------------------- Patching file /usr/src/sys/netinet/ip_fw.h using Plan A... Hunk #1 succeeded at 160. Hunk #2 succeeded at 567. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -ru src/sys/netinet/ip_fw2.c /usr/src/sys/netinet/ip_fw2.c |--- src/sys/netinet/ip_fw2.c Sat Jul 29 12:24:12 2006 |+++ /usr/src/sys/netinet/ip_fw2.c Thu Aug 24 10:43:17 2006 -------------------------- Patching file /usr/src/sys/netinet/ip_fw2.c using Plan A... Hunk #1 succeeded at 149 (offset 4 lines). Hunk #2 succeeded at 2470 (offset 28 lines). Hunk #3 succeeded at 2754 (offset 4 lines). Hunk #4 succeeded at 3104 (offset 31 lines). Hunk #5 succeeded at 3702 (offset 4 lines). Hunk #6 succeeded at 3750 (offset 31 lines). Hmm... Ignoring the trailing garbage. done When I run make from /usr/src/sbin/ipfw, I get the following output: [root@demon /usr/src/sbin/ipfw]# make Warning: Object directory not changed from original /usr/src/sbin/ipfw cc -O2 -fno-strict-aliasing -pipe -c ipfw2.c ipfw2.c: In function `show_ipfw': ipfw2.c:1586: error: `O_SET_IPTOS' undeclared (first use in this function) ipfw2.c:1586: error: (Each undeclared identifier is reported only once ipfw2.c:1586: error: for each function it appears in.) ipfw2.c:1589: error: `O_SET_DSCP' undeclared (first use in this function) ipfw2.c:1897: error: `O_IPDSCP' undeclared (first use in this function) ipfw2.c: In function `add': ipfw2.c:4014: error: `O_SET_IPTOS' undeclared (first use in this function) ipfw2.c:4020: error: `O_SET_DSCP' undeclared (first use in this function) ipfw2.c:4514: error: `O_IPDSCP' undeclared (first use in this function) *** Error code 1 Stop in /usr/src/sbin/ipfw. Am I missing some intermediate steps? Thanks for any help... Jim ____________________________________________________________________________________ TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/