Subject: Re: Compiling NetBSD on other OS's.
To: None <thorpej@wasabisystems.com>
From: John Clark <j1clark@ucsd.edu>
List: netbsd-help
Date: 04/13/2002 16:15:43
Am Samstag den, 13. April 2002, um 13:30, schrieb Jason R Thorpe:

> On Sat, Apr 13, 2002 at 01:16:47PM -0700, John Clark wrote:
>
>> NetBSD build.sh seems to fail trying to build the netbsd-tools set,
>> and at the particular point seems to expect an 'endian.h' file 
>> somewhere
>> where FreeBSD environment doesn't have it.
>
> Can you post the exact error you get, in context?  With that, fixing
> it should be pretty easy.

Here's the build log to failure... abrieviated to the last few lines...

(cd /usr/cvs/NetBSD/src/tools && /usr/local/netbsd-tools/bin/nbmake  
dependall)
dependall ===> host-mkdep
rm -f host-mkdep
CC=cc CFLAGS=-O LDFLAGS=  /usr/cvs/NetBSD/src/tools/host-mkdep/configure 
--cache-file=config.cache
configure: creating cache config.cache
checking for mawk... mawk
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E
updating cache config.cache
configure: creating ./config.status
config.status: creating host-mkdep
install ===> host-mkdep
mkdir -p /usr/local/netbsd-tools/bin
cp host-mkdep /usr/local/netbsd-tools/bin/nbhost-mkdep
chmod +x /usr/local/netbsd-tools/bin/nbhost-mkdep
dependall ===> compat
mkdir -p include/sys include/machine include/rpc
CC=cc CFLAGS=-O LDFLAGS=  sh /usr/cvs/NetBSD/src/tools/compat/configure 
--cache-file=config.cache
configure: creating cache config.cache
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking whether byte ordering is bigendian... no
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for zlib.h... yes
checking for gzdopen in -lz... yes
checking for sys/ioctl.h... yes
checking for sys/mman.h... yes
checking for sys/mtio.h... yes
checking for sys/param.h... yes
checking for sys/stat.h... yes
checking for sys/time.h... yes
checking for sys/types.h... yes
checking for sys/utsname.h... yes
checking for sys/wait.h... yes
checking for assert.h... yes
checking for ctype.h... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for grp.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for netdb.h... yes
checking for pwd.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for sys/sysmacros.h... no
checking for sys/syslimits.h... yes
checking for features.h... no
checking for malloc.h... yes
checking for stddef.h... yes
checking for stdint.h... no
checking for machine/bswap.h... no
checking for sys/cdefs.h... yes
checking for sys/featuretest.h... no
checking for err.h... yes
checking for inttypes.h... yes
checking for libgen.h... yes
checking for paths.h... yes
checking for util.h... no
checking for rpc/types.h... yes
checking for fts.h... yes
checking for getopt.h... no
checking for md2.h... yes
checking for md4.h... yes
checking for md5.h... yes
checking for netconfig.h... no
checking for rmd160.h... no
checking for sha1.h... no
checking for vis.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) no
checking for unistd.h... (cached) yes
checking for size_t... yes
checking for id_t... no
checking for long long... yes
checking for u_quad_t... yes
checking for uint8_t... yes
checking for u_int8_t... yes
checking for uint16_t... yes
checking for u_int16_t... yes
checking for uint32_t... yes
checking for u_int32_t... yes
checking for uint64_t... yes
checking for u_int64_t... yes
checking for DIR.dd_fd... yes
checking for struct dirent.d_namlen... yes
checking for struct stat.st_flags... yes
checking for struct stat.st_gen... yes
checking for struct stat.st_mtimensec... no
checking for struct statfs.f_iosize... no
checking whether optind is declared... yes
checking whether optreset is declared... yes
checking whether sys_signame is declared... yes
checking for library containing fparseln... -lutil
checking for asprintf... yes
checking for asnprintf... no
checking for basename... yes
checking for dirfd... no
checking for dirname... yes
checking for fgetln... yes
checking for flock... yes
checking for fparseln... yes
checking for futimes... yes
checking for getopt... yes
checking for getopt_long... no
checking for isblank... yes
checking for lchmod... yes
checking for lchown... yes
checking for lutimes... yes
checking for pread... yes
checking for pwcache_userdb... no
checking for pwrite... yes
checking for setenv... yes
checking for setgroupent... yes
checking for setprogname... yes
checking for setpassent... yes
checking for snprintf... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strsep... yes
checking for vasprintf... yes
checking for vasnprintf... no
checking for vsnprintf... yes
checking whether setgroupent is declared... yes
checking whether setpassent is declared... yes
checking for regfree in -lregex... no
checking for library containing regfree... none required
updating cache config.cache
configure: creating ./config.status
config.status: creating defs.mk
config.status: creating config.h
/usr/local/netbsd-tools/bin/nbhost-mkdep -a  -I. -I./include 
-I/usr/cvs/NetBSD/src/tools/compat -DHAVE_CONFIG_H  
-D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/basename.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/dirname.c 
/usr/cvs/NetBSD/src/tools/compat/fgetln.c 
/usr/cvs/NetBSD/src/tools/compat/flock.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libutil/fparseln.c 
/usr/cvs/NetBSD/src/tools/compat/getmode.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/stdlib/getopt_long.c 
/usr/cvs/NetBSD/src/tools/compat/../../usr.bin/lex/libyywrap.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/md/md2c.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/md/md2hl.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/md/md4c.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/md/md4hl.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/md/md5c.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/md/md5hl.c 
/usr/cvs/NetBSD/src/tools/compat/pread.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/pwcache.c 
/usr/cvs/NetBSD/src/tools/compat/pwrite.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/pw_scan.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/hash/rmd160.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/hash/rmd160hl.c 
/usr/cvs/NetBSD/src/tools/compat/setenv.c 
/usr/cvs/NetBSD/src/tools/compat/setgroupent.c 
/usr/cvs/NetBSD/src/tools/compat/setpassent.c 
/usr/cvs/NetBSD/src/tools/compat/setprogname.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/hash/sha1.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/hash/sha1hl.c 
/usr/cvs/NetBSD/src/tools/compat/snprintf.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/string/strlcat.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/string/strlcpy.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/string/strmode.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/string/strsep.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/unvis.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/vis.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/_err.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/_errx.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/_verr.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/_verrx.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/_vwarn.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/_vwarnx.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/_warn.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/_warnx.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/__fts13.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_close.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_conv.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_debug.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_delete.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_get.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_open.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_overflow.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_page.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_put.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_search.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_seq.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_split.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/btree/bt_utils.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/db/db.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/hash/hash.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/hash/hash_bigkey.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/hash/hash_buf.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/hash/hash_func.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/hash/hash_log2.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/hash/hash_page.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/mpool/mpool.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/recno/rec_close.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/recno/rec_delete.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/recno/rec_get.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/recno/rec_open.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/recno/rec_put.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/recno/rec_search.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/recno/rec_seq.c 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/db/recno/rec_utils.c
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/hash/rmd160.c:32: 
sys/endian.h: No such file or directory
cc -O  -I. -I./include -I/usr/cvs/NetBSD/src/tools/compat 
-DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o 
basename.lo 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/basename.c
In file included from config.h:101,
                  from /usr/cvs/NetBSD/src/tools/compat/namespace.h:9,
                  from 
/usr/cvs/NetBSD/src/tools/compat/../../lib/libc/gen/basename.c:44:
/usr/cvs/NetBSD/src/tools/compat/compat_defs.h:189: conflicting types 
for `user_from_uid'
/usr/include/stdlib.h:178: previous declaration of `user_from_uid'
/usr/cvs/NetBSD/src/tools/compat/compat_defs.h:193: conflicting types 
for `group_from_gid'
/usr/include/stdlib.h:160: previous declaration of `group_from_gid'
*** Error code 1

Stop.
nbmake: stopped in /usr/cvs/NetBSD/src/tools/compat
*** Error code 1

Stop.
nbmake: stopped in /usr/cvs/NetBSD/src/tools/compat
*** Error code 1

Stop.
nbmake: stopped in /usr/cvs/NetBSD/src/tools
*** Error code 1

Stop.
nbmake: stopped in /usr/cvs/NetBSD/src
*** Error code 1

Stop.
nbmake: stopped in /usr/cvs/NetBSD/src