Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2002 04:53:10 -0700
From:      Maxime Henrion <mux@freebsd.org>
To:        Bri <brian@ukip.com>
Cc:        freebsd-sparc@FreeBSD.ORG
Subject:   Re: Compile from recent sources
Message-ID:  <20021024115309.GL26605@elvis.mu.org>
In-Reply-To: <NEBBKKNOEKKNLLNMEOHFAEIJKLAA.brian@ukip.com>
References:  <20021024100052.GK26605@elvis.mu.org> <NEBBKKNOEKKNLLNMEOHFAEIJKLAA.brian@ukip.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021024115309.GL26605>