Subject: toolchain/23214: tools/stat doesn't compile on RH Linux.
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <cgd@broadcom.com>
List: netbsd-bugs
Date: 10/21/2003 05:15:35
>Number:         23214
>Category:       toolchain
>Synopsis:       tools/stat doesn't compile on RH Linux.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 21 05:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Chris Demetriou
>Release:        current, 2003-10-19 00:00 UTC.
>Organization:
>Environment:
compiling on RH Linux 7.2 host.
>Description:
build fails with:

#   compile  stat.lo
cc -O -I/projects/bbp_ext13/systems/users/cgd/proj/sb/systemsw/netbsd/build-obj/tools/compat -I/projects/bbp_ext13/systems/users/cgd/proj/sb/systemsw/netbsd/build-obj/tools/compat/include  -I/projects/bbp_ext13/systems/users/cgd/proj/sb/systemsw/netbsd/src/tools/stat/../compat -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE  -c -o stat.lo.o /projects/bbp_ext13/systems/users/cgd/proj/sb/systemsw/netbsd/src/tools/stat/../../usr.bin/stat/stat.c
/projects/bbp_ext13/systems/users/cgd/proj/sb/systemsw/netbsd/src/tools/stat/../../usr.bin/stat/stat.c: In function `format1':
/projects/bbp_ext13/systems/users/cgd/proj/sb/systemsw/netbsd/src/tools/stat/../../usr.bin/stat/stat.c:667: structure has no member named `st_atimespec'
/projects/bbp_ext13/systems/users/cgd/proj/sb/systemsw/netbsd/src/tools/stat/../../usr.bin/stat/stat.c:671: structure has no member named `st_mtimespec'
/projects/bbp_ext13/systems/users/cgd/proj/sb/systemsw/netbsd/src/tools/stat/../../usr.bin/stat/stat.c:675: structure has no member named `st_ctimespec'


looks like the patch from 22504 wasn't completely applied.

note that on linux (and other systems, I guess), st_mtime et al are
only time_t variables, not timespecs, taking a pointer to them as
a pointer to a timespec probably isn't the right thing.h
>How-To-Repeat:
build on RH 7.2 linux.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: