From owner-freebsd-questions@FreeBSD.ORG Mon Jun 13 11:28:40 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51C3216A41C for ; Mon, 13 Jun 2005 11:28:40 +0000 (GMT) (envelope-from paulh@bdug.org.au) Received: from mail.bdug.org.au (mail.bdug.org.au [202.72.170.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 674E743D1D for ; Mon, 13 Jun 2005 11:28:38 +0000 (GMT) (envelope-from paulh@bdug.org.au) Received: from w2k2 (unknown [192.168.0.102]) by mail.bdug.org.au (Postfix) with ESMTP id 30ECCDC6 for ; Mon, 13 Jun 2005 19:29:43 +0800 (WST) From: "Paul Hamilton" To: "Freebsd-Questions" Date: Mon, 13 Jun 2005 19:30:57 +0800 Message-ID: <060c01c5700b$5dde0630$6600a8c0@w2k2> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Error compiling ipfw2 on FreeBSD 4.11-RELEASE and 4.11-p10 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2005 11:28:40 -0000 Hi, =20 I have upgraded from FreeBSD 4.7 to 4.11-RELEASE via booting from CD 1. =20 I have IPFW2 options already set in my kernel config file, and in /etc/make.conf =20 Next, I recompile the kernel, and install it. Then I went to the /usr/src/sbin/ipfw dir:- =20 /usr/src/sbin/ipfw-121 = # make clean rm -f ipfw ipfw2.o ipfw.8.gz ipfw.8.cat.gz /usr/src/sbin/ipfw-122 = # make -DIPFW2 cc -O -pipe -Wall -DIPFW2 -c /usr/src/sbin/ipfw/ipfw2.c /usr/src/sbin/ipfw/ipfw2.c: In function `list': /usr/src/sbin/ipfw/ipfw2.c:1698: warning: `last' might be used = uninitialized in this function cc -O -pipe -Wall -DIPFW2 -static -o ipfw ipfw2.o=20 gzip -cn /usr/src/sbin/ipfw/ipfw.8 > ipfw.8.gz /usr/src/sbin/ipfw-123 = # l total 226 2 drwxr-xr-x 2 root wheel 512 Apr 10 17:32 ./ 2 drwxr-xr-x 82 root wheel 1536 Apr 10 17:20 ../ 2 -rw-r--r-- 1 root wheel 196 Jul 24 2002 Makefile 64 -rw-r--r-- 1 root wheel 65358 Jun 16 2004 ipfw.8 62 -rw-r--r-- 1 root wheel 62391 Apr 10 17:20 ipfw.c 94 -rw-r--r-- 1 root wheel 95621 Nov 9 2004 ipfw2.c =20 I have also tried running 'make' by itself (with out the -DIPFW2 switch) =20 So just as a test, I tried doing the same thing from another FreeBSD 4.11-p10 server (IPFW2 was installed during the buildworld-installworld process). I got the same error when manually trying to compile IPFW2! = I have never had a problem before. =20 What am I doing wrong here? Any clues? =20 Cheers, =20 Paul