Subject: Re: current isn't building and I think it's /usr/src/sys/sys/endian.h
To: None <current-users@netbsd.org>
From: Marc Tooley <netbsdMLpostNO@spam.quake.ca>
List: current-users
Date: 01/16/2006 11:23:07
Hello,

I've been trying to cross-build a few platforms on my i386 machine 
running NetBSD-3.99.7 (w/ 3.99.15 kernel) for a while now and I'm 
getting warnings like this:

In file included 
from /v/netbsd-build/netbsd-3.99.15/i386/OBJ/v/src-current/tools/compat/nbtool_config.h:137,
                 from /v/src-current/include/heimdal/config.h:5,
from /v/src-current/crypto/dist/heimdal/lib/vers/make-print-version.c:35:
/v/src-current/tools/compat/compat_defs.h:587:1: warning: "htobe32" 
redefined

In file included from /usr/include/machine/endian.h:3,
                 from /usr/include/sys/types.h:98,
                 from /v/src-current/tools/compat/compat_defs.h:32,
                 
from /v/netbsd-build/netbsd-3.99.15/i386/OBJ/v/src-current/tools/compat/nbtool_config.h:137,
                 from /v/src-current/include/heimdal/config.h:5,
                
from /v/src-current/crypto/dist/heimdal/lib/vers/make-print-version.c:35:
/usr/include/sys/endian.h:154:1: warning: this is the location of the 
previous definition

Other problems have thus far prevented me from building successfully, 
but might this warning be a result of the recent changes discussed in 
this thread?

I have an otherwise stock system. I'm using the build.sh command:

./build.sh -m i386 -B 20060116 
-D /v/netbsd-build/netbsd-3.99.15/i386/DEST 
-R /v/netbsd-build/netbsd-3.99.15/i386/REL 
-T /v/netbsd-build/netbsd-3.99.15/i386/TOOLS 
-M /v/netbsd-build/netbsd-3.99.15/i386/OBJ -N0 release

... using sources sync'd from around 2:00 a.m. this morning.

As as aside, I know -M sets a prefix and -O sets a directory (as 
described in make(1),) but is there ever a time when build.sh -O might 
be necessary or even useful?

On Wednesday 28 December 2005 11:11, Perry E. Metzger wrote:
> I think I've fixed this now, but I haven't finished testing yet. I'll
> probably be doing more backouts of the "inline" stuff.
>
> Perry