From owner-freebsd-sparc Thu Oct 24 4:53:11 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78E1137B401 for ; Thu, 24 Oct 2002 04:53:10 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E3F043E3B for ; Thu, 24 Oct 2002 04:53:10 -0700 (PDT) (envelope-from mux@freebsd.org) Received: by elvis.mu.org (Postfix, from userid 1920) id 10FB5AE33E; Thu, 24 Oct 2002 04:53:10 -0700 (PDT) Date: Thu, 24 Oct 2002 04:53:10 -0700 From: Maxime Henrion To: Bri Cc: freebsd-sparc@FreeBSD.ORG Subject: Re: Compile from recent sources Message-ID: <20021024115309.GL26605@elvis.mu.org> References: <20021024100052.GK26605@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Bri wrote: > thanks now ip_divert.c compiles great no errors but a few secounds after > that i get > > /arch/sparc64/hosted/bin/gcc -c -O -pipe -Wall -Wredundant-decls -Wnested-e > xterns -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -W > cast-qual -ansi -g -nostdinc -I- -I. -I../../.. -I../../../dev -I../../../ > contrib/dev/acpica -I../../../contrib/ipfilter -D_KERNEL -include > opt_global.h -mcmodel=medlow -msoft-float -fno-common -ffreestanding -Werro > r ../../../netinet/ip_fw2.c > cc1: warnings being treated as errors > ../../../netinet/ip_fw2.c: In function `ipfw_ctl': > ../../../netinet/ip_fw2.c:2507: warning: cast from pointer to integer of > different size > ../../../netinet/ip_fw2.c:2520: warning: cast from pointer to integer of > different size > *** Error code 1 Yes, this is a known problem. ipfw2 will panic your sparc if you attempt to use it. Search in the current@ mailing list archive, I posted a patch to fix this (the subject is something like "patch to fix ipfw2 on sparc64"). It should fix the warnings and the panics you would have if you attempted to use ipfw2 as is (you can't compile it in the kernel because of the -Werror flag, but you could load it as a module). Cheers, Maxime To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message