I have no Ia64 machines and havn't met the problem on the x86 or ppc/ppc64 machines before. On ppc/ppc64 at least <sys/fcntl.h> is a one liner that includes <fcntl.h>.
Best regards! Jin Bing Guo 郭晋兵 Subrata Modak <[EMAIL PROTECTED] et.ibm.com> To Shi Weihua <[EMAIL PROTECTED]> 08/23/2008 05:55 cc AM Michael Kerrisk <[EMAIL PROTECTED]>, Martin Habets Please respond to <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ltp-list t.ibm.com <ltp-list@lists.sourceforge.net>, Masatake YAMATO <[EMAIL PROTECTED]>, Li Zefan <[EMAIL PROTECTED]>, Jin Bing Guo/China/[EMAIL PROTECTED], Garrett Cooper <[EMAIL PROTECTED]>, Mike Frysinger <[EMAIL PROTECTED]>, Vijay Kumar <[EMAIL PROTECTED]> Subject Re: [BUILD ERRORS #4] utimensat01 for ia64 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. Regards-- Subrata > > > > > Cheers, > > > > Michael > > >
<<inline: graycol.gif>>
<<inline: pic09977.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------- 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