Subject: stat.h/stat killing tool builds on FreeBSD 5-current
To: None <tech-toolchain@netbsd.org>
From: sgimips NetBSD list <sgimips@mrynet.com>
List: tech-toolchain
Date: 07/03/2004 19:52:40
Recently (a week or more ago) a change to the build tools broke NetBSD crossbuilds
on my FreeBSD 5 hosts (both alpha and i386).  I haven't been able to track down the
exact change yet.

I also notice some incidental warning building pwd_mkdb.

The build errors do not occur on FreeBSD 4 hosted cross-builds.

Relevant log follows.

-scott

dependall ===> pwd_mkdb
#    create  pwd_mkdb/pwd_mkdb.d
/tiny/obj/hp300-2-0/tooldir.FreeBSD-5.2-CURRENT-i386/bin/nbhost-mkdep -f pwd_mkdb.d --     -I/tiny/obj/hp300-2-0/tools/compat -I/tiny/obj/hp300-2-0/tools/compat/include  -I/tiny/src/hp300-2-0/tools/pwd_mkdb/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64  -I/tiny/src/hp300-2-0/lib/libc/include -D__DBINTERFACE_PRIVATE  /tiny/src/hp300-2-0/tools/pwd_mkdb/../../usr.sbin/pwd_mkdb/pwd_mkdb.c
In file included from /tiny/src/hp300-2-0/usr.sbin/pwd_mkdb/pwd_mkdb.c:72:
/tiny/src/hp300-2-0/tools/compat/compat_pwd.h:45:1: warning: "user_from_uid" redefined
In file included from /tiny/obj/hp300-2-0/tools/compat/nbtool_config.h:134,
                 from /tiny/src/hp300-2-0/usr.sbin/pwd_mkdb/pwd_mkdb.c:58:
/tiny/src/hp300-2-0/tools/compat/compat_defs.h:306:1: warning: this is the location of the previous definition
In file included from /tiny/src/hp300-2-0/usr.sbin/pwd_mkdb/pwd_mkdb.c:72:
/tiny/src/hp300-2-0/tools/compat/compat_pwd.h:46:1: warning: "group_from_gid" redefined
In file included from /tiny/obj/hp300-2-0/tools/compat/nbtool_config.h:134,
                 from /tiny/src/hp300-2-0/usr.sbin/pwd_mkdb/pwd_mkdb.c:58:
/tiny/src/hp300-2-0/tools/compat/compat_defs.h:308:1: warning: this is the location of the previous definition
#    create  pwd_mkdb/.depend
rm -f .depend
/tiny/obj/hp300-2-0/tooldir.FreeBSD-5.2-CURRENT-i386/bin/nbhost-mkdep -d -f .depend -s .lo\ .ln pwd_mkdb.d
#   compile  pwd_mkdb/pwd_mkdb.lo
cc -O -I/tiny/obj/hp300-2-0/tools/compat -I/tiny/obj/hp300-2-0/tools/compat/include  -I/tiny/src/hp300-2-0/tools/pwd_mkdb/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64  -I/tiny/src/hp300-2-0/lib/libc/include -D__DBINTERFACE_PRIVATE -c -o pwd_mkdb.lo.o    /tiny/src/hp300-2-0/usr.sbin/pwd_mkdb/pwd_mkdb.c
In file included from /tiny/src/hp300-2-0/usr.sbin/pwd_mkdb/pwd_mkdb.c:72:
/tiny/src/hp300-2-0/tools/compat/compat_pwd.h:45:1: warning: "user_from_uid" redefined
In file included from /tiny/obj/hp300-2-0/tools/compat/nbtool_config.h:134,
                 from /tiny/src/hp300-2-0/usr.sbin/pwd_mkdb/pwd_mkdb.c:58:
/tiny/src/hp300-2-0/tools/compat/compat_defs.h:306:1: warning: this is the location of the previous definition
In file included from /tiny/src/hp300-2-0/usr.sbin/pwd_mkdb/pwd_mkdb.c:72:
/tiny/src/hp300-2-0/tools/compat/compat_pwd.h:46:1: warning: "group_from_gid" redefined
In file included from /tiny/obj/hp300-2-0/tools/compat/nbtool_config.h:134,
                 from /tiny/src/hp300-2-0/usr.sbin/pwd_mkdb/pwd_mkdb.c:58:
/tiny/src/hp300-2-0/tools/compat/compat_defs.h:308:1: warning: this is the location of the previous definition
mv pwd_mkdb.lo.o pwd_mkdb.lo
#      link  pwd_mkdb/pwd_mkdb
cc -O -I/tiny/obj/hp300-2-0/tools/compat -I/tiny/obj/hp300-2-0/tools/compat/include  -I/tiny/src/hp300-2-0/tools/pwd_mkdb/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64  -I/tiny/src/hp300-2-0/lib/libc/include -D__DBINTERFACE_PRIVATE   -o pwd_mkdb pwd_mkdb.lo -L/tiny/obj/hp300-2-0/tools/compat -lnbcompat -lz
dependall ===> stat
#    create  stat/stat.d
/tiny/obj/hp300-2-0/tooldir.FreeBSD-5.2-CURRENT-i386/bin/nbhost-mkdep -f stat.d --     -I/tiny/obj/hp300-2-0/tools/compat -I/tiny/obj/hp300-2-0/tools/compat/include  -I/tiny/src/hp300-2-0/tools/stat/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64   /tiny/src/hp300-2-0/tools/stat/../../usr.bin/stat/stat.c
#    create  stat/.depend
rm -f .depend
/tiny/obj/hp300-2-0/tooldir.FreeBSD-5.2-CURRENT-i386/bin/nbhost-mkdep -d -f .depend -s .lo\ .ln stat.d
#   compile  stat/stat.lo
cc -O -I/tiny/obj/hp300-2-0/tools/compat -I/tiny/obj/hp300-2-0/tools/compat/include  -I/tiny/src/hp300-2-0/tools/stat/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64  -c -o stat.lo.o    /tiny/src/hp300-2-0/usr.bin/stat/stat.c
/tiny/src/hp300-2-0/usr.bin/stat/stat.c: In function `format1':
/tiny/src/hp300-2-0/usr.bin/stat/stat.c:710: error: structure has no member named `st_birthtimensec'

*** Failed target:  stat.lo
*** Failed command: cc -O -I/tiny/obj/hp300-2-0/tools/compat -I/tiny/obj/hp300-2-0/tools/compat/include -I/tiny/src/hp300-2-0/tools/stat/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -c -o stat.lo.o /tiny/src/hp300-2-0/usr.bin/stat/stat.c
*** Error code 1

Stop.
nbmake: stopped in /tiny/src/hp300-2-0/tools/stat