From: Jonathan D. <im...@ya...> - 2005-01-14 16:16:34
|
Hi, This is just to let you know that kernel/syscalls/setrlimit/setrlimit02.c has problems compiling under the Linux 2.6.10 kernel. I get the following compile-time error: cc -Wall -I../../include -g -Wall -I../../../../include -Wall setrlimit02.c -L../../../../lib -lltp -o setrlimit02 In file included from /usr/include/linux/fs.h:19, from setrlimit02.c:46: /usr/include/linux/prio_tree.h:45: error: syntax error before "pgoff_t" /usr/include/linux/prio_tree.h:50: error: syntax error before "pgoff_t" /usr/include/linux/prio_tree.h: In function `prio_tree_iter_init': /usr/include/linux/prio_tree.h:52: error: `iter' undeclared (first use in this function) /usr/include/linux/prio_tree.h:52: error: (Each undeclared identifier is reported only once /usr/include/linux/prio_tree.h:52: error: for each function it appears in.) /usr/include/linux/prio_tree.h:52: error: `root' undeclared (first use in this function) /usr/include/linux/prio_tree.h:53: error: `r_index' undeclared (first use in this function) make[4]: *** [setrlimit02] Error 1 The necessary definition of pgoff_t is in linux/types.h. I haven't gone through all the headers used, but linux/types.h MUST be included before __KERNEL_STRICT_NAMES is defined. Otherwise, the header file does nothing. __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 |