On Wed, 2008-11-12 at 20:13 +0900, Masatake YAMATO wrote: > > Hi, > > > > In today´s CVS snapshot, signalfd01.c failed to compile. Did i mess up > > somewhere during patch application ? > > > > cc -Wall -I../../include -g -Wall -I../../../../include -Wall > > signalfd01.c -L../../../../lib -lltp -o signalfd01 > > ../../include/linux_syscall_numbers.h:19: warning: ‘cleanup’ used but > > never defined > > /tmp/ccY2Njik.o: In function `signalfd': > > ltp-intermediate-20081112/testcases/kernel/syscalls/signalfd/signalfd01.c:80: > > undefined reference to `cleanup' > > collect2: ld returned 1 exit status > > make[4]: *** [signalfd01] Error 1 > > > This one? > >
Now i have another problem here. The error seems to have changed to a different category altogether with today´s snapshot. When i tried building signalfd01.c after updating to Mike´s changes, i got the following error: > make cc -Wall -I../../include -g -Wall -I../../../../include -Wall signalfd01.c -L../../../../lib -lltp -o signalfd01 signalfd01.c:58:26: error: sys/signalfd.h: No such file or directory signalfd01.c: In function ‘do_test1’: signalfd01.c:105: error: storage size of ‘fdsi’ isn’t known signalfd01.c:116: warning: implicit declaration of function ‘signalfd’ signalfd01.c:146: error: invalid application of ‘sizeof’ to incomplete type ‘struct signalfd_siginfo’ signalfd01.c:147: error: invalid application of ‘sizeof’ to incomplete type ‘struct signalfd_siginfo’ signalfd01.c:151: error: invalid application of ‘sizeof’ to incomplete type ‘struct signalfd_siginfo’ signalfd01.c:181: error: ‘signo’ undeclared (first use in this function) signalfd01.c:181: error: (Each undeclared identifier is reported only once signalfd01.c:181: error: for each function it appears in.) signalfd01.c:105: warning: unused variable ‘fdsi’ signalfd01.c: In function ‘do_test2’: signalfd01.c:197: error: storage size of ‘fdsi’ isn’t known signalfd01.c:236: error: invalid application of ‘sizeof’ to incomplete type ‘struct signalfd_siginfo’ signalfd01.c:237: error: invalid application of ‘sizeof’ to incomplete type ‘struct signalfd_siginfo’ signalfd01.c:241: error: invalid application of ‘sizeof’ to incomplete type ‘struct signalfd_siginfo’ signalfd01.c:197: warning: unused variable ‘fdsi’ make[4]: *** [signalfd01] Error 1 I thought .configure will solve this. But here is: $ ./configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for signalfd... no ./configure: line 2303: syntax error near unexpected token `linux/types.h' ./configure: line 2303: `AC_CHECK_HEADERS_ONCE(linux/types.h)' And then again the same error from make. Even any of the patches posted by Jiri yesterday does not solve the problem. Yamato/Mike, Am i doing something wrong here ? I have the following in my system: $ rpm -qa | grep header glibc-headers-2.5-24 kernel-headers-2.6.18-92.el5 compat-glibc-headers-2.3.4-2.26 $ gcc --version gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42) Regards-- Subrata > ltp-git/include/linux_syscall_numbers.h: > /************************************************ > * GENERATED FILE: DO NOT EDIT/PATCH THIS FILE * > * change your arch specific .in file instead * > ************************************************/ > > /* > * Here we stick all the ugly *fallback* logic for linux > * system call numbers (those __NR_ thingies). > * > * Licensed under the GPLv2 or later, see the COPYING file. > */ > > #ifndef __LINUX_SYSCALL_NUMBERS_H__ > #define __LINUX_SYSCALL_NUMBERS_H__ > > #include <sys/syscall.h> > > > static void cleanup(void); > > I have no idea where I comes from. > Masatake ------------------------------------------------------------------------- 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
