From: Masatake Y. <ya...@re...> - 2008-11-20 08:37:16
|
> 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 I'll look. BTW, Maybe following patch is nothing to do with the bug you reported but could you apply following patch? Signed-off-by: Masatake YAMATO<ya...@re...> index 083e9ab..9b6380d 100644 --- a/m4/ltp-signalfd.m4 +++ b/m4/ltp-signalfd.m4 @@ -63,7 +63,7 @@ AC_CHECK_HEADERS(sys/signalfd.h linux/signalfd.h signalfd.h,[dnl LTP_SYSCALL_SIGNALFD_HEADER=yes],[],[dnl #ifdef HAVE_LINUX_TYPES_H #include <linux/types.h> -#endif) +#endif ]dnl )dnl ]dnl |