On Fri, Aug 22, 2008 at 3:59 AM, Subrata Modak <[EMAIL PROTECTED]> wrote: > I will test and get back to you. > > Regards-- > Subrata > > On Fri, 2008-08-22 at 12:28 +0400, Andrew Vagin wrote: >> On Thu, Aug 21, 2008 at 08:15:20PM +0530, Subrata Modak wrote: >> > Hi Andrew, >> > >> > inotify01 is introducing compile error on the following x86_64 machine. >> > This is unexpected as cross compilation of it on other machines earlier >> > did not yield such failures. Can you please look in to this: >> > >> > >> > 1) Linux 2.6.16-1.2080_FC5 #1 SMP Tue Mar 28 03:38:47 EST 2006 x86_64 >> > x86_64 x86_64 GNU/Linux >> > >> > make[4]: Entering directory >> > `/root/subrata/ltp/ltp-intermediate-20080820/testcases/kernel/syscalls/inotify' >> > cc -Wall -I../../include -g -Wall -I../../../../include -Wall >> > inotify01.c -L../../../../lib -lltp -o inotify01 >> > inotify01.c:53:27: error: linux/inotify.h: No such file or directory >> inotify.h should be included from sys/inotify.h >> >> [EMAIL PROTECTED] ~]# rpm -qf /usr/include/linux/inotify.h >> kernel-headers-2.6.25.11-97.fc9.i386 >> [EMAIL PROTECTED] ~]# rpm -qf /usr/include/sys/inotify.h >> glibc-headers-2.8-3.i386 >> >> see the attached patch >> > inotify01.c:76: error: invalid application of 'sizeof' to incomplete >> > type 'struct inotify_event' >> > inotify01.c: In function 'main': >> > inotify01.c:124: error: 'IN_ATTRIB' undeclared (first use in this >> > function) >> > inotify01.c:124: error: (Each undeclared identifier is reported only >> > once >> > inotify01.c:124: error: for each function it appears in.) >> > inotify01.c:132: error: 'IN_OPEN' undeclared (first use in this >> > function) >> > inotify01.c:140: error: 'IN_ACCESS' undeclared (first use in this >> > function) >> > inotify01.c:148: error: 'IN_CLOSE_NOWRITE' undeclared (first use in this >> > function) >> > inotify01.c:165: error: 'IN_MODIFY' undeclared (first use in this >> > function) >> > inotify01.c:173: error: 'IN_CLOSE_WRITE' undeclared (first use in this >> > function) >> > inotify01.c:186: error: invalid application of 'sizeof' to incomplete >> > type 'struct inotify_event' >> > inotify01.c:189: error: invalid application of 'sizeof' to incomplete >> > type 'struct inotify_event' >> > inotify01.c:204: error: dereferencing pointer to incomplete type >> > inotify01.c:204: error: dereferencing pointer to incomplete type >> > inotify01.c:205: error: dereferencing pointer to incomplete type >> > inotify01.c:205: error: dereferencing pointer to incomplete type >> > inotify01.c:206: error: dereferencing pointer to incomplete type >> > inotify01.c:209: error: dereferencing pointer to incomplete type >> > inotify01.c:209: error: dereferencing pointer to incomplete type >> > inotify01.c:210: error: dereferencing pointer to incomplete type >> > inotify01.c:210: error: dereferencing pointer to incomplete type >> > inotify01.c:215: error: dereferencing pointer to incomplete type >> > inotify01.c:215: error: dereferencing pointer to incomplete type >> > inotify01.c:217: error: dereferencing pointer to incomplete type >> > inotify01.c:217: error: dereferencing pointer to incomplete type >> > inotify01.c:220: error: invalid application of 'sizeof' to incomplete >> > type 'struct inotify_event' >> > inotify01.c:220: error: dereferencing pointer to incomplete type >> > inotify01.c: In function 'setup': >> > inotify01.c:281: error: 'IN_ALL_EVENTS' undeclared (first use in this >> > function) >> > make[4]: *** [inotify01] Error 1 >> > >> > >> > Regards-- >> > Subrata
>From Gentoo: [EMAIL PROTECTED] /usr $ uname -a Linux headless-horseman 2.6.25.11 #1 SMP Mon Aug 11 02:17:05 PDT 2008 i686 Intel(R) Xeon(R) CPU 5140 @ 2.33GHz GenuineIntel GNU/Linux [EMAIL PROTECTED] /usr $ find /usr/include/ /usr/src/ -name inotify.h /usr/include/sys/inotify.h /usr/include/linux/inotify.h /usr/src/linux-2.6.23.17/include/config/inotify.h /usr/src/linux-2.6.25.11/include/linux/inotify.h /usr/src/linux-2.6.25.11/include/config/inotify.h /usr/src/linux-2.6.25.14/include/linux/inotify.h Cheers, -Garrett ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list