<199802100732.QAA19629 / picachu.netlab.co.jp> の、
   "[ruby-dev:1419] Re: 1.1b6 on FreeBSD2.1.5" において、
   "matz / netlab.co.jp (Yukihiro Matsumoto)"さんは書きました:

> |> おかしいな.freebsdでは<sya/stat.h>でstruct statが定義されて
> |> いないんでしょうか? うーむ.
> |
> |/usr/include/sys/stat.h の中は、以下のようになってました:
> 
> stはstruct stat型の変数名ですから.ということはsys/stat.hの
> 中にstruct statの定義があるわけですね.なんでエラーになった
> んだろう?

それまでの経過は、以下な感じです……。

M.Kanemitsu


masao-k@ewb02% make
gcc -g -O2 -I.  -c hash.c
In file included from hash.c:17:
/usr/include/sys/stat.h:55: parse error before `ino_t'
/usr/include/sys/stat.h:55: warning: no semicolon at end of struct or union
/usr/include/sys/stat.h:56: warning: data definition has no type or storage class
/usr/include/sys/stat.h:57: parse error before `st_nlink'
/usr/include/sys/stat.h:57: warning: data definition has no type or storage class
/usr/include/sys/stat.h:69: parse error before `}'
/usr/include/sys/stat.h:73: parse error before `dev_t'
/usr/include/sys/stat.h:73: warning: no semicolon at end of struct or union
/usr/include/sys/stat.h:74: warning: data definition has no type or storage class
/usr/include/sys/stat.h:75: parse error before `st_mode'
/usr/include/sys/stat.h:75: warning: data definition has no type or storage class
/usr/include/sys/stat.h:76: parse error before `st_nlink'
/usr/include/sys/stat.h:76: warning: data definition has no type or storage class
/usr/include/sys/stat.h:77: parse error before `st_uid'
/usr/include/sys/stat.h:77: conflicting types for `st_uid'
/usr/include/sys/stat.h:58: previous declaration of `st_uid'
/usr/include/sys/stat.h:77: warning: data definition has no type or storage class
/usr/include/sys/stat.h:78: parse error before `st_gid'
/usr/include/sys/stat.h:78: conflicting types for `st_gid'
/usr/include/sys/stat.h:59: previous declaration of `st_gid'
/usr/include/sys/stat.h:78: warning: data definition has no type or storage class
/usr/include/sys/stat.h:79: parse error before `st_rdev'
/usr/include/sys/stat.h:79: conflicting types for `st_rdev'
/usr/include/sys/stat.h:60: previous declaration of `st_rdev'
/usr/include/sys/stat.h:79: warning: data definition has no type or storage class
/usr/include/sys/stat.h:83: parse error before `st_size'
/usr/include/sys/stat.h:83: conflicting types for `st_size'
/usr/include/sys/stat.h:61: previous declaration of `st_size'
/usr/include/sys/stat.h:83: warning: data definition has no type or storage class
/usr/include/sys/stat.h:84: parse error before `st_blocks'
/usr/include/sys/stat.h:84: conflicting types for `st_blocks'
/usr/include/sys/stat.h:66: previous declaration of `st_blocks'
/usr/include/sys/stat.h:84: warning: data definition has no type or storage class
/usr/include/sys/stat.h:85: conflicting types for `st_blksize'
/usr/include/sys/stat.h:65: previous declaration of `st_blksize'
/usr/include/sys/stat.h:89: parse error before `st_qspare'
/usr/include/sys/stat.h:89: warning: data definition has no type or storage class
/usr/include/sys/stat.h:90: parse error before `}'
/usr/include/sys/stat.h:188: parse error before `mode_t'
/usr/include/sys/stat.h:190: parse error before `mode_t'
/usr/include/sys/stat.h:191: parse error before `mode_t'
/usr/include/sys/stat.h:193: parse error before `umask'
/usr/include/sys/stat.h:193: warning: parameter names (without types) in function 
declaration
/usr/include/sys/stat.h:193: warning: data definition has no type or storage class
/usr/include/sys/stat.h:195: parse error before `u_long'
/usr/include/sys/stat.h:196: parse error before `u_long'
/usr/include/sys/stat.h:197: parse error before `mode_t'
hash.c: In function `path_check_1':
hash.c:798: storage size of `st' isn't known
*** Error code 1

Stop.