Hi Poornima, On Thu, 2009-04-02 at 18:55 +0530, Poornima Nayak wrote: Hi > > This could be issue with automake in fedora11, is there any way to fix it ? > > make[5]: Entering directory > `/root/ltp-full-20090331/testcases/kernel/io/aio/aio02' > cc -Wall --static -Wall -g -O -I../../../../../include -Wall > -DTEST_NAME=\"cases/aio_tio.c\" -o cases/aio_tio main.c > -L../../../../../lib -lltp > main.c: In function âmainâ: > main.c:38: warning: control reaches end of non-void function > /usr/bin/ld: cannot find -lc
This seems to be some Linker issue in Fedora. Doesn´t occur on any of my systems. Can you please try out the following patch, and see if it works: Signed-Off-By: Subrata Modak <[email protected]>, --- diff -uprN ltp-full-20090331/testcases/kernel/io/aio/aio02.orig/main.c ltp-full-20090331/testcases/kernel/io/aio/aio02/main.c --- ltp-full-20090331/testcases/kernel/io/aio/aio02.orig/main.c 2009-04-03 12:46:39.000000000 +0530 +++ ltp-full-20090331/testcases/kernel/io/aio/aio02/main.c 2009-04-03 12:44:20.000000000 +0530 @@ -8,6 +8,7 @@ #include <sys/stat.h> #include <unistd.h> #include "test.h" +#include TEST_NAME #ifdef HAVE_LIBAIO_H @@ -15,8 +16,6 @@ char test_name[] = TEST_NAME; -#include TEST_NAME - int main(void) { int res; > collect2: ld returned 1 exit status > make[5]: *** [cases/aio_tio] Error 1 > make[5]: Leaving directory > `/root/ltp-full-20090331/testcases/kernel/io/aio/aio02' > make[4]: *** [all] Error 2 > make[4]: Leaving directory > `/root/ltp-full-20090331/testcases/kernel/io/aio' > make[3]: *** [all] Error 2 > make[3]: Leaving directory `/root/ltp-full-20090331/testcases/kernel/io' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/root/ltp-full-20090331/testcases/kernel' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/root/ltp-full-20090331/testcases' > make: *** [all] Error 2 > > Regards > Poornima > Regards-- Subrata
------------------------------------------------------------------------------
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
