Subrata, On Fri, Aug 22, 2008 at 11:55 PM, Subrata Modak <[EMAIL PROTECTED]> wrote: > On Fri, 2008-08-22 at 10:44 +0800, Shi Weihua wrote: >> Michael Kerrisk wrote: >> > Hi Subrata, >> > >> > On Thu, Aug 21, 2008 at 5:00 PM, Subrata Modak >> > <[EMAIL PROTECTED]> wrote: >> >> Hi Martin/Shi/Michael, >> >> >> >> utimensat01.c is generating some build failure(s) on the following 1a64 >> >> machine. Can you please look in to this ? >> >> http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/syscalls/utimensat/utimensat01.c >> >> >> >> 1) Linux 2.6.23.13 #1 SMP Wed Jan 9 18:14:28 PST 2008 ia64 GNU/Linux >> >> >> >> cc -Wall -I../../include -g -Wall -I../../../../include -Wall >> >> -I../../../../include -Wall utimensat01.c -L../../../../lib -lltp -o >> >> utimensat01 >> >> utimensat01.c: In function 'main': >> >> utimensat01.c:115: error: 'AT_FDCWD' undeclared (first use in this >> >> function) >> >> utimensat01.c:115: error: (Each undeclared identifier is reported only >> >> once >> >> utimensat01.c:115: error: for each function it appears in.) >> >> utimensat01.c:126: error: 'AT_SYMLINK_NOFOLLOW' undeclared (first use in >> >> this function) >> >> make[5]: *** [utimensat01] Error 1 >> > >> > What glibc version is on that system? Are AT_FDCWD and >> > AT_SYMLINK_NOFOLLOW defined in <fcntl.h> on that sytem? >> >> I checked the 2.6.23.13's source,AT_FDCWD and AT_SYMLINK_NOFOLLOW >> defined in include/linux/fcntl.h. >> >> The kernel commit 5590ff0d5528b60153c0b4e7b771472b5a95e297 added AT_FDCWD and >> AT_SYMLINK_NOFOLLOW on "Wed Jan 18 17:43:53 2006 -0800". > > Michael and Jin, > > The following patch will probably solve the issue(s): > > --- > ltp-intermediate-20080820/testcases/kernel/syscalls/utimensat/utimensat01.c.orig > 2008-08-23 03:19:41.000000000 +0530 > +++ > ltp-intermediate-20080820/testcases/kernel/syscalls/utimensat/utimensat01.c > 2008-08-23 03:19:58.000000000 +0530 > @@ -38,7 +38,7 @@ > #include <stdlib.h> > #include <unistd.h> > #include <sys/syscall.h> > -#include <fcntl.h> > +#include <sys/fcntl.h> > #include <string.h> > #include <sys/stat.h> > #include <test.h> > > Can you please confirm whether it solves the issue for you.
I'm not even seeing the issue. (On x86 at least <sys/fcntl.h> is a one liner that includes <fcntl.h>, so I don't know what the above would fix?) -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html ------------------------------------------------------------------------- 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