Yamato,

I found this error on the following machine:

# uname -a
Linux 2.6.27.5-2-default #1 SMP 2008-11-11 15:15:33 +0100 x86_64 x86_64
x86_64 GNU/Linux

cc -Wall  -I../../include -g -Wall -I../../../../include -Wall
signalfd01.c  -L../../../../lib -lltp -o signalfd01
In file included from /usr/include/asm/fcntl.h:1,
                 from /usr/include/linux/fcntl.h:4,
                 from /usr/include/linux/signalfd.h:12,
                 from signalfd01.c:60:
/usr/include/asm-generic/fcntl.h:117: error: redefinition of ‘struct
flock’
/usr/include/asm-generic/fcntl.h:140: error: redefinition of ‘struct
flock64’
make[4]: *** [signalfd01] Error 1

May be you would like to handle it using autoconf in future. However,
commenting out the following code from signalfd01.c makes the error
vanish.

--
--- testcases/kernel/syscalls/signalfd/signalfd01.c.orig        2008-11-20
02:09:03.000000000 -0600
+++ testcases/kernel/syscalls/signalfd/signalfd01.c     2008-11-20
02:09:19.000000000 -0600
@@ -56,8 +56,8 @@ extern int Tst_count;
 
 #if defined HAVE_SYS_SIGNALFD_H
 #include <sys/signalfd.h>
-#elif defined HAVE_LINUX_SIGNALFD_H
-#include <linux/signalfd.h>
+//#elif defined HAVE_LINUX_SIGNALFD_H
+//#include <linux/signalfd.h>
 #elif defined HAVE_SIGNALFD_H
 #include <signalfd.h>
 #else


Regards--
Subrata



-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to