Subject: Re: problems following -CURRENT
To: pasquale minervini <minervini@neuralnoise.com>
From: Jonathan A. Kollasch <jakllsch@kollasch.net>
List: port-sparc64
Date: 04/23/2006 02:41:42
--RASg3xLB4tUQ4RcS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Apr 23, 2006 at 12:58:18AM +0200, pasquale minervini wrote:
> Hi there,=20
>=20
> It's a few days I'm trying to compile a kernel (a GENERIC with GRE and IP=
SEC
> support I called SUN) without success, since it seems to fail on each war=
ning;
> for example:
>=20
> #   compile  SUN/ns_ip.o
> cc -mcmodel=3Dmedlow -mno-fpu -ffreestanding -O2 -Werror -Wall -Wno-main =
-Wno-fo
> rmat-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes=
 -Wre
> turn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare=
 -fno
> -zero-initialized-in-bss -Dsparc64 -D__sparc64__ -D_LP64 -Wa,-Av9a -I. -I=
/usr/
> src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DIPSEC_DEBUG -DDIRECTED_BROA=
DCAST
>  -DMAXUSERS=3D64 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../..=
/../com
> mon/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/str=
ing -
> I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/sparc64/string -I=
/usr/
> src/sys/dist/pf -I/usr/src/sys/dist/ipf -c /usr/src/sys/netns/ns_ip.c
> /usr/src/sys/netns/ns_ip.c: In function `nsipoutput':
> /usr/src/sys/netns/ns_ip.c:281: warning: cast from pointer to integer of =
diffe
> rent size
> *** Error code 1
>=20
> Stop.
> make: stopped in /usr/obj/sys/arch/sparc64/compile/SUN
>=20
> I tried to fix some warnings and i got some files to compile successfully=
, but maybe I did something wrong, since this is the first time this proble=
m happens to me.
>=20
> Any idea ?=20
> Thanks a lot in advance.

Did you un-comment the NSIP options line? (this error would seem
to be in that code) That's not enabled in the generic kernel, so
it's not subject to being a failure point of the bulk builds.
Anyway, I usually turn off all non-IP protocols in my custom
kernels.

	Jonathan Kollasch

--RASg3xLB4tUQ4RcS
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)

iD4DBQFESy+2Ojx1ye3hmokRAiL4AJd4YUe0StYHaVc5/jeJguidT+o/AJ4ujT3J
fXcpsBgicTi3ByHrCleo1A==
=zZV8
-----END PGP SIGNATURE-----

--RASg3xLB4tUQ4RcS--