我该如何解决错误,使mtree

问题描述:

你好,我是新来的,我不明白,发生了什么事。 我需要mtree为我的iPhone,并得到一个错误。 而这就是我得到:我该如何解决错误,使mtree

In file included from compare.c:62: 
vis.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘size_t’ 
In file included from compare.c:65: 
extern.h:52: warning: redundant redeclaration of ‘compare’ 
extern.h:40: warning: previous declaration of ‘compare’ was here 
extern.h:59: warning: redundant redeclaration of ‘getmode’ 
/usr/include/unistd.h:700: warning: previous declaration of ‘getmode’ was here 
extern.h:60: warning: redundant redeclaration of ‘setmode’ 
/usr/include/unistd.h:736: warning: previous declaration of ‘setmode’ was here 
compare.c: In function ‘compare’: 
compare.c:186: error: ‘struct stat’ has no member named ‘st_mtim’ 
compare.c:187: error: ‘struct stat’ has no member named ‘st_mtim’ 
compare.c:192: error: ‘struct stat’ has no member named ‘st_mtim’ 
make[1]: *** [compare.o] Error 1 
make: *** [all] Error 2 

完整的消息是在http://pastebin.com/rVUfVP75

compare.c:186: error: ‘struct stat’ has no member named ‘st_mtim’ 

应该st_mtime。它看起来像一个错字。

结构的定义是在这里: http://pubs.opengroup.org/onlinepubs/007908799/xsh/sysstat.h.html

+0

我不知道该怎么办。有人可以帮我吗? – Adem 2013-02-26 17:50:09